Interface PropertyInspectorView
-
- All Implemented Interfaces:
public interface PropertyInspectorView
An interface to be implemented by views that can be added to PropertyInspector.
-
-
Method Summary
Modifier and Type Method Description abstract View
getView()
Casts the inspector view to the View class and returns it. boolean
isViewStateRestorationEnabled()
Flag to determine whether to save the state by calling on the view the saveHierarchyState to save its state and restoreHierarchyState to restore it. abstract void
bindController(@NonNull() PropertyInspectorController controller)
Bind to property inspector controller. abstract void
unbindController()
Unbind from property inspector controller. void
onShown()
Called when this inspector view became visible. void
onHidden()
Called when this inspector view was hidden. abstract int
getPropertyInspectorMinHeight()
Height of the parent PropertyInspector that this view would like it to have. abstract int
getPropertyInspectorMaxHeight()
Returns maximum height that this view with all its detail views will occupy. abstract int
getSuggestedHeight()
Returns best height of this view when shown in inspector. -
-
Method Detail
-
getView
@NonNull() abstract View getView()
Casts the inspector view to the View class and returns it.
-
isViewStateRestorationEnabled
boolean isViewStateRestorationEnabled()
Flag to determine whether to save the state by calling on the view the saveHierarchyState to save its state and restoreHierarchyState to restore it. Defaults to
false
. When enabled, the view must implementView#onSaveInstanceState
andView#onRestoreInstanceState
, and a unique id must be set by setId.
-
bindController
abstract void bindController(@NonNull() PropertyInspectorController controller)
Bind to property inspector controller.
-
unbindController
abstract void unbindController()
Unbind from property inspector controller.
-
onShown
void onShown()
Called when this inspector view became visible.
-
onHidden
void onHidden()
Called when this inspector view was hidden.
-
getPropertyInspectorMinHeight
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.
-
getPropertyInspectorMaxHeight
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.
-
getSuggestedHeight
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.
-
-
-
-