public interface

PropertyInspectorView

com.pspdfkit.ui.inspector.PropertyInspectorView
Known Indirect Subclasses

Class Overview

An interface to be implemented by views that can be added to PropertyInspector.

Summary

Public Methods
abstract void bindController(PropertyInspectorController controller)
Bind to property inspector controller.
abstract int getPropertyInspectorMaxHeight()
Returns maximum height that this view with all its detail views will occupy.
abstract int getPropertyInspectorMinHeight()
Height of the parent PropertyInspector that this view would like it to have.
abstract int getSuggestedHeight()
Returns best height of this view when shown in inspector.
abstract View getView()
Casts the inspector view to the View class and returns it.
abstract boolean isViewStateRestorationEnabled()
Flag to determine whether to save the state by calling on the view the saveHierarchyState(SparseArray) to save its state and restoreHierarchyState(SparseArray) to restore it.
abstract void onHidden()
Called when this inspector view was hidden.
abstract void onShown()
Called when this inspector view became visible.
abstract void unbindController()
Unbind from property inspector controller.

Public Methods

public abstract void bindController (PropertyInspectorController controller)

Bind to property inspector controller.

public abstract int getPropertyInspectorMaxHeight ()

Returns maximum height that this view with all its detail views will occupy.

Returns
  • Hint for the maximum inspector height or 0 if no max height is specified.

public abstract int getPropertyInspectorMinHeight ()

Height of the parent PropertyInspector that this view would like it to have.

Returns
  • Hint for the minimum inspector height or 0 if no min height is specified.

public abstract int getSuggestedHeight ()

Returns best height of this view when shown in inspector. This is used to suggest initial height to inspector parent.

Returns
  • Hint for the view height after being shown in inspector.

public abstract View getView ()

Casts the inspector view to the View class and returns it.

public abstract boolean isViewStateRestorationEnabled ()

Flag to determine whether to save the state by calling on the view the saveHierarchyState(SparseArray) to save its state and restoreHierarchyState(SparseArray) to restore it. Defaults to false. When enabled, the view must implement View#onSaveInstanceState and View#onRestoreInstanceState, and a unique id must be set by setId(int).

public abstract void onHidden ()

Called when this inspector view was hidden.

public abstract void onShown ()

Called when this inspector view became visible.

public abstract void unbindController ()

Unbind from property inspector controller.