Class DefaultContentEditingInspectorController
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
,com.pspdfkit.ui.special_mode.controller.ContentEditingInspectorController
public class DefaultContentEditingInspectorController extends AbstractPropertyInspectorController implements ContentEditingInspectorController
Controller for form editing inspector. Meant to be used with ContentEditingController.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DefaultContentEditingInspectorController.ContentEditingPropertyInspector
-
Field Summary
Fields Modifier and Type Field Description public ContentEditingController
controller
-
Constructor Summary
Constructors Constructor Description DefaultContentEditingInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
-
Method Summary
Modifier and Type Method Description void
bindContentEditingController(@NonNull() ContentEditingController contentEditingController)
Binds to the content editing sheet controller for managing content editing views void
unbindContentEditingController()
Unbinds from previously bound content editing sheet controller. void
displayFontNamesSheet(boolean animate, @NonNull() List<FaceListEntry> faceListEntries, @Nullable() StyleInfo preselectStyle)
Called when the user clicks the font name button on the content editing styling bar void
displayFontSizesSheet(boolean animate, @Nullable() StyleInfo preselectStyle)
Called when the user clicks the font size button on the content editing styling bar void
displayColorPicker(boolean animate, @Nullable() StyleInfo preselectStyle)
Called when the user clicks the font color button on the content editing styling bar void
displayLineSpacingSheet(boolean animate, @Nullable() Float preselectLineSpacing)
Called when the user clicks the line spacing button on the content editing styling bar boolean
isContentEditingInspectorVisible()
Check if inspector is currently displayed. void
onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is removed from the . void
onDisplayPropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is displayed in the . -
-
Constructor Detail
-
DefaultContentEditingInspectorController
DefaultContentEditingInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
- Parameters:
context
- The context.coordinatorController
- Controller managing inspector coordinator layout.
-
-
Method Detail
-
bindContentEditingController
void bindContentEditingController(@NonNull() ContentEditingController contentEditingController)
Binds to the content editing sheet controller for managing content editing views
- Parameters:
contentEditingController
- Controller for managing the content editing styling bar
-
unbindContentEditingController
void unbindContentEditingController()
Unbinds from previously bound content editing sheet controller.
-
displayFontNamesSheet
void displayFontNamesSheet(boolean animate, @NonNull() List<FaceListEntry> faceListEntries, @Nullable() StyleInfo preselectStyle)
Called when the user clicks the font name button on the content editing styling bar
- Parameters:
animate
- Whether to animate the change.
-
displayFontSizesSheet
void displayFontSizesSheet(boolean animate, @Nullable() StyleInfo preselectStyle)
Called when the user clicks the font size button on the content editing styling bar
- Parameters:
animate
- Whether to animate the change.
-
displayColorPicker
void displayColorPicker(boolean animate, @Nullable() StyleInfo preselectStyle)
Called when the user clicks the font color button on the content editing styling bar
- Parameters:
animate
- Whether to animate the change.
-
displayLineSpacingSheet
void displayLineSpacingSheet(boolean animate, @Nullable() Float preselectLineSpacing)
Called when the user clicks the line spacing button on the content editing styling bar
- Parameters:
animate
- Whether to animate the change.
-
isContentEditingInspectorVisible
boolean isContentEditingInspectorVisible()
Check if inspector is currently displayed.
- Returns:
True if inspector is showing to the user, false otherwise.
-
onRemovePropertyInspector
void onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is removed from the .
- Parameters:
inspector
- Property inspector that is removed from the coordinator.
-
onDisplayPropertyInspector
void onDisplayPropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is displayed in the .
- Parameters:
inspector
- Property inspector that is displayed in the coordinator.
-
-
-
-