java.lang.Object | |
↳ | com.pspdfkit.ui.inspector.AbstractPropertyInspectorController |
![]() |
Abstract base class for all inspector controllers. Handles state restoration and showing/hiding
inspector with PropertyInspectorCoordinatorLayoutController
.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractPropertyInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
hideInspector(boolean animate)
Hides inspector if it is shown.
| ||||||||||
boolean |
isInspectorVisible()
Returns
true when inspector is shown. | ||||||||||
void |
onDisplayPropertyInspector(PropertyInspector inspector)
Called when
PropertyInspector is displayed in the PropertyInspectorCoordinatorLayout . | ||||||||||
void |
onPreparePropertyInspector(PropertyInspector inspector)
Called when
PropertyInspector is prepared to be displayed in the PropertyInspectorCoordinatorLayout . | ||||||||||
void |
onRemovePropertyInspector(PropertyInspector inspector)
Called when
PropertyInspector is removed from the PropertyInspectorCoordinatorLayout . | ||||||||||
void |
onRestoreInstanceState(Bundle savedState)
Restore property inspector state.
| ||||||||||
void |
onSaveInstanceState(Bundle outState)
Save property inspector state.
| ||||||||||
void |
showInspector(boolean animate)
Shows inspector if it was not shown yet.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
cancel()
Cancels inspector.
| ||||||||||
Context |
getContext()
Returns Used context.
| ||||||||||
PropertyInspectorCoordinatorLayoutController |
getCoordinatorController()
Returns Controller for controlling property inspector coordinator.
| ||||||||||
PropertyInspector |
getPropertyInspector()
Returns Property inspector instance.
| ||||||||||
boolean |
isBoundToController()
Called to test if inspector controller is bound to its editing controller.
| ||||||||||
boolean |
isRestoringState()
Returns
true while state restoration is in progress. | ||||||||||
boolean |
onRestoreState()
Call this method when inspector controller is bound to its editing controller.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
context | The context. |
---|---|
coordinatorController | Controller managing inspector coordinator layout. |
Hides inspector if it is shown.
Returns true
when inspector is shown.
Called when PropertyInspector
is displayed in the PropertyInspectorCoordinatorLayout
.
inspector | Property inspector that is displayed in the coordinator. |
---|
Called when PropertyInspector
is prepared to be displayed in the PropertyInspectorCoordinatorLayout
. Here you can change the inspector views.
inspector | Property inspector prepared for displaying in the coordinator. |
---|
Called when PropertyInspector
is removed from the PropertyInspectorCoordinatorLayout
.
inspector | Property inspector that is removed from the coordinator. |
---|
Shows inspector if it was not shown yet.
Cancels inspector.
Returns Controller for controlling property inspector coordinator.
Called to test if inspector controller is bound to its editing controller.
Returns true
while state restoration is in progress.
Call this method when inspector controller is bound to its editing controller.
true
when inspector has been shown.