public abstract class

AbstractPropertyInspectorController

extends Object
implements PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
java.lang.Object
   ↳ com.pspdfkit.ui.inspector.AbstractPropertyInspectorController
Known Direct Subclasses

Class Overview

Abstract base class for all inspector controllers. Handles state restoration and showing/hiding inspector with PropertyInspectorCoordinatorLayoutController.

Summary

Public Constructors
AbstractPropertyInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
Public Methods
void hideInspector(boolean animate)
Hides inspector if it is shown.
boolean isInspectorVisible()
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()
PropertyInspectorCoordinatorLayoutController getCoordinatorController()
PropertyInspector getPropertyInspector()
boolean isBoundToController()
Called to test if inspector controller is bound to its editing controller.
boolean isRestoringState()
boolean onRestoreState()
Call this method when inspector controller is bound to its editing controller.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener

Public Constructors

public AbstractPropertyInspectorController (Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)

Parameters
context The context.
coordinatorController Controller managing inspector coordinator layout.

Public Methods

public void hideInspector (boolean animate)

Hides inspector if it is shown.

public boolean isInspectorVisible ()

Returns
  • true when inspector is shown.

public void onDisplayPropertyInspector (PropertyInspector inspector)

Called when PropertyInspector is displayed in the PropertyInspectorCoordinatorLayout.

Parameters
inspector Property inspector that is displayed in the coordinator.

public void onPreparePropertyInspector (PropertyInspector inspector)

Called when PropertyInspector is prepared to be displayed in the PropertyInspectorCoordinatorLayout. Here you can change the inspector views.

Parameters
inspector Property inspector prepared for displaying in the coordinator.

public void onRemovePropertyInspector (PropertyInspector inspector)

Called when PropertyInspector is removed from the PropertyInspectorCoordinatorLayout.

Parameters
inspector Property inspector that is removed from the coordinator.

public void onRestoreInstanceState (Bundle savedState)

Restore property inspector state.

public void onSaveInstanceState (Bundle outState)

Save property inspector state.

public void showInspector (boolean animate)

Shows inspector if it was not shown yet.

Protected Methods

protected void cancel ()

Cancels inspector.

protected Context getContext ()

Returns
  • Used context.

protected PropertyInspectorCoordinatorLayoutController getCoordinatorController ()

Returns
  • Controller for controlling property inspector coordinator.

protected PropertyInspector getPropertyInspector ()

Returns
  • Property inspector instance.

protected boolean isBoundToController ()

Called to test if inspector controller is bound to its editing controller.

protected boolean isRestoringState ()

Returns
  • true while state restoration is in progress.

protected boolean onRestoreState ()

Call this method when inspector controller is bound to its editing controller.

Returns
  • true when inspector has been shown.