Package com.pspdfkit.ui.inspector.forms
Class FormEditingInspectorController
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
,com.pspdfkit.ui.special_mode.manager.FormManager.OnFormElementEditingModeChangeListener
,com.pspdfkit.ui.special_mode.manager.FormManager.OnFormElementUpdatedListener
public class FormEditingInspectorController extends AbstractPropertyInspectorController implements FormManager.OnFormElementUpdatedListener, FormManager.OnFormElementEditingModeChangeListener
Controller for form editing inspector. Meant to be used with FormEditingController.
-
-
Constructor Summary
Constructors Constructor Description FormEditingInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
-
Method Summary
Modifier and Type Method Description void
bindFormEditingController(@NonNull() FormEditingController controller)
Binds controller for managing form editing mode. void
unbindFormEditingController()
Unbinds controller for managing form editing mode. void
onPreparePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is prepared to be displayed in the . void
onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is removed from the . void
onFormElementUpdated(@NonNull() FormElement formElement)
Called when form element gets updated. void
onEnterFormElementEditingMode(@NonNull() FormEditingController controller)
Called when form element editing mode has been entered. void
onChangeFormElementEditingMode(@NonNull() FormEditingController controller)
Called then form element editing mode changes, meaning another form element is being selected for editing. void
onExitFormElementEditingMode(@NonNull() FormEditingController controller)
Called when form element editing mode has been exited. void
setFormEditingBarEnabled(boolean isFormEditingBarEnabled)
Sets to true
when form editing bar is enabled and form editing inspector should be drawn above it.-
-
Constructor Detail
-
FormEditingInspectorController
FormEditingInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
- Parameters:
context
- The context.coordinatorController
- Controller managing inspector coordinator layout.
-
-
Method Detail
-
bindFormEditingController
void bindFormEditingController(@NonNull() FormEditingController controller)
Binds controller for managing form editing mode.
- Parameters:
controller
- Form editing controller provided when entering form editing mode.
-
unbindFormEditingController
void unbindFormEditingController()
Unbinds controller for managing form editing mode.
-
onPreparePropertyInspector
void onPreparePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is prepared to be displayed in the . Here you can change the inspector views.
- Parameters:
inspector
- Property inspector prepared for displaying in the coordinator.
-
onRemovePropertyInspector
void onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is removed from the .
- Parameters:
inspector
- Property inspector that is removed from the coordinator.
-
onFormElementUpdated
void onFormElementUpdated(@NonNull() FormElement formElement)
Called when form element gets updated.
- Parameters:
formElement
- Form element that has been updated.
-
onEnterFormElementEditingMode
void onEnterFormElementEditingMode(@NonNull() FormEditingController controller)
Called when form element editing mode has been entered.
- Parameters:
controller
- Controller for managing form element editing.
-
onChangeFormElementEditingMode
void onChangeFormElementEditingMode(@NonNull() FormEditingController controller)
Called then form element editing mode changes, meaning another form element is being selected for editing.
- Parameters:
controller
- Controller for managing form element editing.
-
onExitFormElementEditingMode
void onExitFormElementEditingMode(@NonNull() FormEditingController controller)
Called when form element editing mode has been exited.
- Parameters:
controller
- Controller for managing form element editing.
-
setFormEditingBarEnabled
void setFormEditingBarEnabled(boolean isFormEditingBarEnabled)
Sets to
true
when form editing bar is enabled and form editing inspector should be drawn above it.
-
-
-
-