|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface TabBarInterface
TabBarInterface is an interface for containers of TabButtonInterface objects.
It supports creating and adding the TabButtonInterface objects, as well as
laying out the tabButtons in a multi-row or a single row style. The tabButtons
orientation can also be setup using the TabBarInterface. The tabButtons
can also be enabled or hidden using the TabBarInterface.
TabBar,
TabButtonInterface| Field Summary | |
|---|---|
static int |
BOTTOM
|
static int |
LEFT
|
static int |
MULTIGROUP
|
static int |
NONE
|
static int |
RIGHT
|
static int |
SCROLLABLE
|
static int |
TOP
|
| Fields inherited from interface com.sas.visuals.Justification |
|---|
FULL |
| Fields inherited from interface com.sas.visuals.Alignment |
|---|
BEGIN, CENTER, END |
| Fields inherited from interface com.sas.visuals.Direction |
|---|
BOTTOM_TO_TOP, COLUMN_MAJOR, LEFT_TO_RIGHT, RB_KEY, RIGHT_TO_LEFT, ROW_MAJOR, TOP_TO_BOTTOM |
| Fields inherited from interface com.sas.visuals.Sizing |
|---|
PROPORTIONAL, UNIFORM |
| Method Summary | |
|---|---|
abstract void |
add(java.awt.Component comp,
java.lang.Object constraints,
int index)
Add a TabButtonInterface component to the TabBarInterface container with the specified constraints at the specified index. |
abstract java.awt.Component |
addItem(java.lang.Object tabItem,
java.lang.Integer grpIndex,
int index)
Construct and add a TabButtonInterface component to the container with the specified item in the specified group. |
abstract int |
getGroupCount()
Get the number of groups in this TabBar. |
abstract java.awt.LayoutManager |
getLayout()
Get the layout manager of the TabBar. |
abstract int |
getOrientation()
Get the orientation of the panel. |
abstract BorderInterface |
getRowBorder()
Get the Border used to draw the rows. |
abstract int |
getSelectedIndex()
Get the index of the selected tab. |
abstract java.lang.Object |
getSelectedItem()
Get the item property of the selected TabButtonInterface object. |
abstract SelectionGroupInterface |
getSelectionGroup()
Get the SelectionGroupInterface that the tabs belong to. |
abstract int |
getStyle()
Get the style of the RowLayout. |
abstract int |
getTabGroupIndex(TabButtonInterface tab)
Get the index of the group this tab belongs to. |
abstract void |
remove(java.awt.Component comp)
Remove the specified tab from the TabBarInterface. |
abstract void |
removeAll()
Remove all tabs from this TabBarInterface. |
abstract void |
removeItem(java.lang.Object item)
Remove the tab with the specified item property. |
abstract void |
setOrientation(int orient)
Set the orientation of the tabs on this container. |
abstract void |
setRowBorder(BorderInterface border)
Set the row border of the TabBarInterface |
abstract void |
setSelectedIndex(int index)
Select the tab at the specified index. |
abstract void |
setSelectedItem(java.lang.Object item)
Select the tab with specified item property. |
abstract void |
setStyle(int newStyle)
Set the tab layout style. |
abstract void |
setTabButtonClass(java.lang.Class tClass)
Set the class of the default tabs created when an addItem() method is called. |
abstract void |
setTabEnabled(boolean enabled,
int index)
Set the enabled state of the tab at the specified index. |
abstract void |
setTabEnabled(boolean enabled,
java.lang.Object item)
Set the enabled state of the tab with the specified item. |
abstract void |
setTabVisible(boolean visible,
int index)
Set the visisble state of the tab at the specified index. |
abstract void |
setTabVisible(boolean visible,
java.lang.Object item)
Set the visible state of the tab with the specified item. |
| Methods inherited from interface com.sas.awt.ActionSource |
|---|
addActionListener, removeActionListener |
| Field Detail |
|---|
static final int NONE
static final int TOP
static final int BOTTOM
static final int LEFT
static final int RIGHT
static final int SCROLLABLE
static final int MULTIGROUP
| Method Detail |
|---|
void add(java.awt.Component comp,
java.lang.Object constraints,
int index)
comp - the tab component to add to the TabBarInterfaceconstraints - the layout constraintsindex - the position in the container's list at which to insert the component.
-1 means insert at the end.Container
java.awt.Component addItem(java.lang.Object tabItem,
java.lang.Integer grpIndex,
int index)
tabItem - the item to set on the TabButtonInterface.grpIndex - the index of the group to add the tab to.index - the position at which to insert the component.
-1 means insert at the end.
int getGroupCount()
java.awt.LayoutManager getLayout()
int getOrientation()
setOrientation(int)BorderInterface getRowBorder()
setRowBorder(com.sas.visuals.BorderInterface)int getStyle()
setStyle(int)SelectionGroupInterface getSelectionGroup()
int getSelectedIndex()
setSelectedIndex(int)java.lang.Object getSelectedItem()
setSelectedItem(java.lang.Object)int getTabGroupIndex(TabButtonInterface tab)
tab - the tab to determine which group it is in
void remove(java.awt.Component comp)
comp - the TabButtonInterface component to remove from the TabBarInterfacevoid removeItem(java.lang.Object item)
item - the item property of the TabButtonInterface object to removevoid removeAll()
void setOrientation(int orient)
orient - an orientation value: TOP, BOTTOM, LEFT, or RIGHTgetOrientation()void setRowBorder(BorderInterface border)
border - the border drawn for each rowgetRowBorder()void setSelectedIndex(int index)
index - the index of the tab to selectgetSelectedIndex()void setSelectedItem(java.lang.Object item)
item - the item property of the tab to selectgetSelectedItem()void setStyle(int newStyle)
newStyle - a style value: SCROLLABLE or MULTIGROUPgetStyle()void setTabButtonClass(java.lang.Class tClass)
tClass - the class of the tab to create by default
void setTabEnabled(boolean enabled,
java.lang.Object item)
enabled - the enabled state of the tabitem - the item property of the tab to set the enabled property of.
void setTabEnabled(boolean enabled,
int index)
enabled - the enabled state of the tabindex - the index of the tab to set the enabled property of.
void setTabVisible(boolean visible,
java.lang.Object item)
visible - the visible state of the tabitem - the item property of the tab to set the visible property of.
void setTabVisible(boolean visible,
int index)
visisble - the visisble state of the tabindex - the index of the tab to set the visisble property of.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||