|
Foxit PDF SDK
9.0
|
Classes | |
| enum | TB_Position |
Public Member Functions | |
| boolean | addView (IBaseItem item, TB_Position position) |
| boolean | addView (IBaseItem item, TB_Position position, int index) |
| boolean | removeItemByTag (int tag) |
| boolean | removeItem (IBaseItem item) |
| boolean | removeItemByIndex (TB_Position position, int index) |
| void | removeAllItems () |
| void | setVisible (boolean visible) |
| View | getContentView () |
| IBaseItem | getItem (TB_Position location, int tag) |
| IBaseItem | getItemByIndex (TB_Position location, int index) |
| int | getItemVisibility (TB_Position location, int tag) |
| int | getItemVisibilityByIndex (TB_Position location, int index) |
| void | setItemVisibility (TB_Position location, int tag, int visibility) |
| void | setItemVisibilityByIndex (TB_Position location, int index, int visibility) |
| int | getItemsCount (TB_Position location) |
| void | setOrientation (int orientation) |
| void | setOrientation (int orientation, int width, int height) |
| void | setBackgroundColor (int color) |
| void | setBackgroundResource (int res) |
| void | setItemInterval (int space) |
| void | setWidth (int width) |
| void | setHeight (int height) |
| void | setContentView (View v) |
| void | setInterceptTouch (boolean isInterceptTouch) |
| void | updateLayout () |
| int | getHeight () |
Static Public Attributes | |
| static final int | HORIZONTAL = 0 |
| static final int | VERTICAL = 1 |
Interface that defines information about bar.
| boolean com.foxit.uiextensions.controls.toolbar.BaseBar.addView | ( | IBaseItem | item, |
| TB_Position | position | ||
| ) |
Adds a item.
| item | The item to add. |
| position | The TB_Position to add the item. |
| boolean com.foxit.uiextensions.controls.toolbar.BaseBar.addView | ( | IBaseItem | item, |
| TB_Position | position, | ||
| int | index | ||
| ) |
Adds a item.
| item | The item to add. |
| position | The TB_Position to add the item. |
| index | The position at which to add the item. |
| View com.foxit.uiextensions.controls.toolbar.BaseBar.getContentView | ( | ) |
Retrieve the View attached to this bar, if present.
| int com.foxit.uiextensions.controls.toolbar.BaseBar.getHeight | ( | ) |
| IBaseItem com.foxit.uiextensions.controls.toolbar.BaseBar.getItem | ( | TB_Position | location, |
| int | tag | ||
| ) |
Get a item.
| location | The TB_Position to get the item. |
| tag | The tag to get the item. |
| IBaseItem com.foxit.uiextensions.controls.toolbar.BaseBar.getItemByIndex | ( | TB_Position | location, |
| int | index | ||
| ) |
Get a item at the specified position in the bar.
| location | The TB_Position to get the item. |
| index | The position at which to get the bar |
| int com.foxit.uiextensions.controls.toolbar.BaseBar.getItemsCount | ( | TB_Position | location | ) |
Returns the number of item in the bar at the specified layout direction.
| location | The TB_Position to get the the number of item. |
| int com.foxit.uiextensions.controls.toolbar.BaseBar.getItemVisibility | ( | TB_Position | location, |
| int | tag | ||
| ) |
Returns the visibility status for this item.
| location | The TB_Position to get the item visibility. |
| tag | The tag to get the item visibility. |
| int com.foxit.uiextensions.controls.toolbar.BaseBar.getItemVisibilityByIndex | ( | TB_Position | location, |
| int | index | ||
| ) |
Returns the visibility status for this item.
| location | The TB_Position to get the item visibility. |
| index | The position at which to get the bar visibility. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.removeAllItems | ( | ) |
Remove all items of the bar.
| boolean com.foxit.uiextensions.controls.toolbar.BaseBar.removeItem | ( | IBaseItem | item | ) |
Removes the specified item.
| item | The item to remove. |
| boolean com.foxit.uiextensions.controls.toolbar.BaseBar.removeItemByIndex | ( | TB_Position | position, |
| int | index | ||
| ) |
Removes a item by the specified index.
| position | The TB_Position to remove the item. |
| index | The position at which to remove the item. |
| boolean com.foxit.uiextensions.controls.toolbar.BaseBar.removeItemByTag | ( | int | tag | ) |
Removes a item by the specified tag.
| tag | The tag to remove the item. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setBackgroundColor | ( | int | color | ) |
Sets the background color for this bar.
| color | the color of the background |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setBackgroundResource | ( | int | res | ) |
Set the background to a given resource. The resource should refer to a Drawable object or 0 to remove the background.
| res | The identifier of the resource. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setContentView | ( | View | v | ) |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setHeight | ( | int | height | ) |
Sets the height of the bar.
| height | how tall the bar wants to be. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setInterceptTouch | ( | boolean | isInterceptTouch | ) |
Whether intercepts the touch event.
| isInterceptTouch |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setItemInterval | ( | int | space | ) |
Set space between the items. Must use it after setOrientation(int).
| space | The space between the items. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setItemVisibility | ( | TB_Position | location, |
| int | tag, | ||
| int | visibility | ||
| ) |
Set the visibility state of this item.
| location | The TB_Position to set the item visibility. |
| tag | The tag to set the item visibility. |
| visibility | should be one of View#VISIBLE, View#INVISIBLE, or View#GONE. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setItemVisibilityByIndex | ( | TB_Position | location, |
| int | index, | ||
| int | visibility | ||
| ) |
Set the visibility state of this item by the specified index.
| location | The TB_Position to set the item visibility. |
| index | The position at which to set the bar visibility. |
| visibility | should be one of View#VISIBLE, View#INVISIBLE, or View#GONE. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setOrientation | ( | int | orientation | ) |
Sets a layout direction of this bar view.
| orientation | should one of HORIZONTAL or VERTICAL. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setOrientation | ( | int | orientation, |
| int | width, | ||
| int | height | ||
| ) |
Sets a layout direction of this bar view.
| orientation | should one of HORIZONTAL or VERTICAL. |
| width | the width of this bar |
| height | the height of this bar |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setVisible | ( | boolean | visible | ) |
Set the visibility state of this bar.
| visible |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.setWidth | ( | int | width | ) |
Sets the width of the bar.
| width | how wide the view wants to be. |
| void com.foxit.uiextensions.controls.toolbar.BaseBar.updateLayout | ( | ) |
Update the layout of the toolbar
|
static |
Horizontal layout direction of this bar.
|
static |
Vertical layout direction of this bar.