public class

CustomColorPickerInspectorDetailView

extends ScrollView
implements ColorPickerInspectorView.ColorPickerDetailView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.widget.ScrollView
           ↳ com.pspdfkit.ui.inspector.views.CustomColorPickerInspectorDetailView

Class Overview

Detail view for the ColorPickerInspectorView that provides options for the user to set custom colors. Used in PropertyInspector.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
CustomColorPickerInspectorDetailView(Context context, int[] colors, int defaultValue)
CustomColorPickerInspectorDetailView(Context context, List<Integer> colors, int defaultValue)
Public Methods
void bindController(PropertyInspectorController controller)
Bind to property inspector controller.
int getMaximumHeight()
Called to get the maximum height the detail view will be.
int getMinimumHeight()
int getPropertyInspectorMaxHeight()
Returns maximum height that this view with all its detail views will occupy.
int getPropertyInspectorMinHeight()
Height of the parent PropertyInspector that this view would like it to have.
Parcelable getState()
Called when it's time to save the view state.
int getSuggestedHeight()
Returns best height of this view when shown in inspector.
View getView()
Casts the inspector view to the View class and returns it.
void onHidden()
Called when this inspector view was hidden.
void setOnColorPickedListener(ColorPickerInspectorView.ColorPickerListener listener)
Sets listener for picked colors.
void setState(Parcelable state)
Called to restore the state that was saved before by calling getState().
void unbindController()
Unbind from property inspector controller.
[Expand]
Inherited Methods
From class android.widget.ScrollView
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.pspdfkit.ui.inspector.PropertyInspectorView
From interface com.pspdfkit.ui.inspector.views.ColorPickerInspectorView.ColorPickerDetailView

Public Constructors

public CustomColorPickerInspectorDetailView (Context context, int[] colors, int defaultValue)

public CustomColorPickerInspectorDetailView (Context context, List<Integer> colors, int defaultValue)

Public Methods

public void bindController (PropertyInspectorController controller)

Bind to property inspector controller.

public int getMaximumHeight ()

Called to get the maximum height the detail view will be.

Returns
  • The maximum size this detail view will be.

public int getMinimumHeight ()

public 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 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 Parcelable getState ()

Called when it's time to save the view state. It will later be restored by calling setState(Parcelable) ()}

Returns
  • The state you want to save.

public 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 View getView ()

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

public void onHidden ()

Called when this inspector view was hidden.

public void setOnColorPickedListener (ColorPickerInspectorView.ColorPickerListener listener)

Sets listener for picked colors. Calling this method will replace any previously set listener. You may provide null to clear the listener.

Parameters
listener ColorPickerInspectorView.ColorPickerListener that should be notified, or null to clear the listener.

public void setState (Parcelable state)

Called to restore the state that was saved before by calling getState().

Parameters
state The state to restore.

public void unbindController ()

Unbind from property inspector controller.