|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BContainer
com.jmex.bui.BTabbedPane
public class BTabbedPane
Displays one of a set of components (tabs) depending on which tab is selected.
| Nested Class Summary | |
|---|---|
protected static class |
BTabbedPane.Tab
|
| Nested classes/interfaces inherited from class com.jmex.bui.BContainer |
|---|
BContainer.ChildOp |
| Field Summary | |
|---|---|
protected BContainer |
_buttons
|
protected BButton |
_close
|
protected ActionListener |
_closer
|
protected ActionListener |
_selector
|
protected int |
_selidx
|
protected ArrayList<BTabbedPane.Tab> |
_tabs
|
protected BContainer |
_top
|
| Fields inherited from class com.jmex.bui.BContainer |
|---|
_children, _layout |
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Constructor Summary | |
|---|---|
BTabbedPane()
Creates a tabbed pane with left justified buttons. |
|
BTabbedPane(GroupLayout.Justification tabAlign)
Creates a tabbed pane. |
|
BTabbedPane(GroupLayout.Justification tabAlign,
int gap)
Creates a tabbed pane. |
|
| Method Summary | |
|---|---|
void |
addTab(String title,
BComponent tab)
Adds a tab to the pane using the specified title with no close button. |
void |
addTab(String title,
BComponent tab,
boolean hasClose)
Adds a tab to the pane using the specified tile. |
protected String |
getDefaultStyleClass()
Returns the default stylesheet class to be used for all instances of this component. |
BComponent |
getSelectedTab()
Returns the selected tab component. |
int |
getSelectedTabIndex()
Returns the index of the selected tab. |
BToggleButton |
getTabButton(BComponent tab)
Returns a reference to the tab button for the given tab. |
BToggleButton |
getTabButton(int idx)
Returns a reference to the tab button at the given index. |
int |
getTabCount()
Returns the number of tabs in this pane. |
int |
indexOfTab(BComponent tab)
Returns the index of the given tab. |
void |
removeAllTabs()
Removes all tabs. |
void |
removeTab(BComponent tab)
Removes the specified tab. |
void |
removeTab(int tabidx)
Removes the tab at the specified index. |
void |
removeTab(int tabidx,
boolean btnClose)
Removes the tab at the specified index. |
void |
selectTab(BComponent tab)
Selects the specified tab. |
void |
selectTab(int tabidx)
Selects the tab with the specified index. |
protected void |
tabWasRemoved(BComponent tab,
boolean btnClose)
Called when a tab was removed. |
protected void |
updateClose(boolean showClose)
Updates the visibility of the close tab button. |
| Methods inherited from class com.jmex.bui.BContainer |
|---|
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, getNextFocus, getPreviousFocus, layout, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate, wasAdded, wasRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ActionListener _selector
protected ActionListener _closer
protected ArrayList<BTabbedPane.Tab> _tabs
protected int _selidx
protected BContainer _top
protected BContainer _buttons
protected BButton _close
| Constructor Detail |
|---|
public BTabbedPane()
public BTabbedPane(GroupLayout.Justification tabAlign)
tabAlign - the justification for the tab buttons.
public BTabbedPane(GroupLayout.Justification tabAlign,
int gap)
tabAlign - the justification for the tab buttons.gap - the number of pixels space between each tab button.| Method Detail |
|---|
public void addTab(String title,
BComponent tab)
public void addTab(String title,
BComponent tab,
boolean hasClose)
public void removeTab(BComponent tab)
public void removeTab(int tabidx)
public void removeTab(int tabidx,
boolean btnClose)
btnClose - set to true if the tab was removed by the close buttonpublic void removeAllTabs()
public int getTabCount()
public void selectTab(BComponent tab)
public void selectTab(int tabidx)
public BComponent getSelectedTab()
public int getSelectedTabIndex()
public BToggleButton getTabButton(BComponent tab)
public BToggleButton getTabButton(int idx)
public int indexOfTab(BComponent tab)
protected void updateClose(boolean showClose)
protected void tabWasRemoved(BComponent tab,
boolean btnClose)
btnClose - set to true if the tab was removed by the close buttonprotected String getDefaultStyleClass()
BComponent
getDefaultStyleClass in class BContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||