|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.TabbedPane
public class TabbedPane
TabbedPane is used to provide a tabbed interface to a
collection of Components.
A TabModel is used to provide the collections of tabs and the
content that should be shown when a given tab is selected.
A SingleSelectionModel is used to track which tab is currently
selected.
| Field Summary | |
|---|---|
static Style |
DEFAULT_STYLE
|
static java.lang.String |
PROPERTY_MODEL
|
static java.lang.String |
PROPERTY_SELECTION_MODEL
|
static java.lang.String |
PROPERTY_TAB_PLACEMENT
|
static java.lang.String |
PROPERTY_TAB_SPACING
|
| Fields inherited from class echopointng.ComponentEx |
|---|
PROPERTY_HIDDEN |
| Fields inherited from interface echopointng.able.AccessKeyable |
|---|
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.MouseCursorable |
|---|
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
|---|
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
TabbedPane()
Constructs a TabbedPane with the a default empty
DefaultTabModel as the TabbedPane's model. |
|
TabbedPane(TabModel tabModel)
Constructs a TabbedPane with the specified
TabModel. |
|
| Method Summary | |
|---|---|
TabModel |
getModel()
|
int |
getSelectedIndex()
|
SingleSelectionModel |
getSelectionModel()
|
int |
getTabPlacement()
Returns where the tabs are placed on the TabbedPane. |
int |
getTabSpacing()
|
void |
processInput(java.lang.String inputName,
java.lang.Object inputValue)
Processes client input specific to the Component
received from the UpdateManager. |
void |
setModel(TabModel model)
Sets the TabModel used to provide the TabbedPane's tabs
and content. |
void |
setSelectedIndex(int index)
Sets the selected index of the TabbedPane. |
void |
setSelectionModel(SingleSelectionModel selectionModel)
Sets the SingleSelectionModel used to track the selected
index of the TabbedPane |
void |
setTabPlacement(int tabPlacement)
Sets where the tabs are placed on the TabbedPane. |
void |
setTabSpacing(int tabSpacing)
Sets the spacing (in pixels) between tabs |
int |
size()
|
void |
validate()
A life-cycle method invoked before the component is rendered to ensure it is in a valid state. |
| Methods inherited from class echopointng.AbleComponent |
|---|
getAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorURI, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorURI, setOutsets, setToolTipText, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_MODEL
public static final java.lang.String PROPERTY_SELECTION_MODEL
public static final java.lang.String PROPERTY_TAB_PLACEMENT
public static final java.lang.String PROPERTY_TAB_SPACING
public static final Style DEFAULT_STYLE
| Constructor Detail |
|---|
public TabbedPane()
TabbedPane with the a default empty
DefaultTabModel as the TabbedPane's model.
You can retrieve this as follows to add content to the TabbedPane:
TabbedPane tabbedPane = new TabbedPane();
DefaultTabModel model = (DefaultTabModel) tabbedPane.getModel();
model.addTab("Tab 1", new ContentThingy());
model.addTab("Tab 2", new ContentThingo());
public TabbedPane(TabModel tabModel)
TabbedPane with the specified
TabModel.
tabModel - -
the TabModel to use for this
TabbedPane| Method Detail |
|---|
public TabModel getModel()
TabModel used to provide the
TabbedPane's tabs and content.public int getSelectedIndex()
public SingleSelectionModel getSelectionModel()
SingleSelectionModel used to track the
selected index of the TabbedPanepublic int getTabPlacement()
Alignment.TOP- the bottom of the TabbedPane
(default)Alignment.BOTTOM- the bottom of the TabbedPane
public int getTabSpacing()
public void processInput(java.lang.String inputName,
java.lang.Object inputValue)
ComponentComponent
received from the UpdateManager.
Derivative implementations should take care to invoke
super.processInput().
processInput in class ComponentinputName - the name of the inputinputValue - the value of the inputComponent.processInput(java.lang.String,
java.lang.Object)public void setModel(TabModel model)
TabModel used to provide the TabbedPane's tabs
and content.
model - -
the TabModel used to provide the TabbedPane's
tabs and content.public void setSelectedIndex(int index)
Shortcurt method to getSelectionModel().setSelectedIndex(index).
index - -
the index to selectpublic void setSelectionModel(SingleSelectionModel selectionModel)
SingleSelectionModel used to track the selected
index of the TabbedPane
selectionModel - -
the SingleSelectionModel used to track the
selected index of the TabbedPanepublic void setTabPlacement(int tabPlacement)
Alignment.TOP- the bottom of the TabbedPane
(default)Alignment.BOTTOM- the bottom of the TabbedPane
tabPlacement - public void setTabSpacing(int tabSpacing)
tabSpacing - -
the spacing (in pixels) between tabspublic int size()
TabModelpublic void validate()
Componentsuper.validate()
out of convention.
validate in class ComponentComponent.validate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||