Classes | |
enum | TB_Position |
Public Member Functions | |
boolean | addView (IBaseItem item, TB_Position position) |
boolean | addView (IBaseItem item, TB_Position position, int index) |
View | getContentView () |
IBaseItem | getItem (TB_Position location, int tag) |
IBaseItem | getItemByIndex (TB_Position location, int index) |
int | getItemsCount (TB_Position location) |
int | getItemVisibility (TB_Position location, int tag) |
int | getItemVisibilityByIndex (TB_Position location, int index) |
void | removeAllItems () |
boolean | removeItemByIndex (TB_Position position, int index) |
boolean | removeItemByItem (IBaseItem item) |
boolean | removeItemByTag (int tag) |
void | setBackgroundColor (int color) |
void | setBackgroundResource (int res) |
void | setBarVisible (boolean visible) |
void | setContentView (View v) |
void | setHeight (int height) |
void | setInterceptTouch (boolean isInterceptTouch) |
void | setInterval (boolean interval) |
void | setItemSpace (int space) |
void | setItemVisibility (TB_Position location, int tag, int visibility) |
void | setItemVisibilityByIndex (TB_Position location, int index, int visibility) |
void | setNeedResetItemSize (boolean needResetItemSize) |
void | setOrientation (int orientation) |
void | setWidth (int width) |
void | updateLayout () |
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.
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.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.removeItemByItem | ( | IBaseItem | item | ) |
Removes the specified item.
item | The item to remove. |
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.setBarVisible | ( | boolean | visible | ) |
Set the visibility state of this bar.
visible |
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.setInterval | ( | boolean | interval | ) |
Whether uses interval between items for the center direction layout bar. Only for TB_Position#Position_CENTER.
Note: This method is only used within RDK
interval |
void com.foxit.uiextensions.controls.toolbar.BaseBar.setItemSpace | ( | 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.setNeedResetItemSize | ( | boolean | needResetItemSize | ) |
Whether reset the size of the item in the bar.
needResetItemSize |
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.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.