public class

PresetBarState

extends BaseObservable
java.lang.Object
   ↳ com.pdftron.pdf.widget.base.BaseObservable
     ↳ com.pdftron.pdf.widget.preset.component.model.PresetBarState

Summary

Constants
int PRESET_NORMAL
int PRESET_SELECTED
int PRESET_STYLE_DIALOG_DISMISSED
int PRESET_STYLE_DIALOG_SHOWN
Fields
public boolean isSinglePreset
public boolean isVisible
public int styleDialogState
public final ToolbarItem toolbarItem
Public Methods
void addPresetState(PresetButtonState presetButtonState)
void dismissStyleDialog()
static PresetBarState fromSavedState(Context context, ToolbarItem toolbarItem)
Pair<PresetButtonState, Integer> getActivePresetState()
int getButtonId()
int getNumberOfPresetStates()
PresetButtonState getPresetState(int index)
int getToolbarButtonTypeId()
String getToolbarStyleId()
void hidePresetBar()
boolean isPresetSelected(int index)
void openStyleDialog()
void selectPreset(int index)
void showPresetBar()
void updateAnnotStyles(ArrayList<AnnotStyle> annotStyles, int index)
[Expand]
Inherited Methods
From class com.pdftron.pdf.widget.base.BaseObservable
From class java.lang.Object

Constants

public static final int PRESET_NORMAL

Constant Value: 0 (0x00000000)

public static final int PRESET_SELECTED

Constant Value: 1 (0x00000001)

public static final int PRESET_STYLE_DIALOG_DISMISSED

Constant Value: 3 (0x00000003)

public static final int PRESET_STYLE_DIALOG_SHOWN

Constant Value: 2 (0x00000002)

Fields

public boolean isSinglePreset

public boolean isVisible

public int styleDialogState

public final ToolbarItem toolbarItem

Public Methods

public void addPresetState (PresetButtonState presetButtonState)

public void dismissStyleDialog ()

public static PresetBarState fromSavedState (Context context, ToolbarItem toolbarItem)

public Pair<PresetButtonState, Integer> getActivePresetState ()

public int getButtonId ()

public int getNumberOfPresetStates ()

public PresetButtonState getPresetState (int index)

public int getToolbarButtonTypeId ()

public String getToolbarStyleId ()

public void hidePresetBar ()

public boolean isPresetSelected (int index)

public void openStyleDialog ()

public void selectPreset (int index)

public void showPresetBar ()

public void updateAnnotStyles (ArrayList<AnnotStyle> annotStyles, int index)