|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JTabbedPane org.swixml.XTabbedPane
public class XTabbedPane
XSplitPane simple extends JSplitPane to clear components during the construction process
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JTabbedPane |
---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
XTabbedPane()
|
Method Summary | |
---|---|
void |
setDisabledIcons(String icons)
Sets the disabled icon at index to icon
which can be null . |
void |
setDisplayedMnemonics(String displaymnemonics)
Provides a hint to the look and feel as to which character in the text should be decorated to represent the mnemonic. |
void |
setEnabled(String enabled)
Sets whether or not the tab at index is enabled. |
void |
setIcons(String icons)
Sets the icons for all tabs. |
void |
setMnemonics(String mnemonics)
Sets the keyboard mnemonic for accessing the specified tab. |
void |
setTitles(String titles)
Sets the title for all tabs. |
void |
setToolTipTexts(String toolTipTexts)
Sets the tooltip text at index to toolTipText
which can be null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XTabbedPane()
Method Detail |
---|
public void setTitles(String titles)
titles
- String
comma sep. list of titles, for all tabs
IndexOutOfBoundsException
- if index is out of range
(index < 0 || index >= tab count)public void setMnemonics(String mnemonics)
A mnemonic must correspond to a single key on the keyboard
and should be specified using one of the VK_XXX
keycodes defined in java.awt.event.KeyEvent
.
Mnemonics are case-insensitive, therefore a key event
with the corresponding keycode would cause the button to be
activated whether or not the Shift modifier was pressed.
This will update the displayed mnemonic property for the specified tab.
mnemonics
- String
comma sep. list of mnemonic, for all tabs
IndexOutOfBoundsException
- if index is out of range
(index < 0 || index >= tab count)JTabbedPane.getMnemonicAt(int)
,
JTabbedPane.setDisplayedMnemonicIndexAt(int,int)
public void setDisplayedMnemonics(String displaymnemonics)
The value of this is updated as the properties relating to the
mnemonic change (such as the mnemonic itself, the text...).
You should only ever have to call this if
you do not wish the default character to be underlined. For example, if
the text at tab index 3 was 'Apple Price', with a mnemonic of 'p',
and you wanted the 'P'
to be decorated, as 'Apple Price', you would have to invoke
setDisplayedMnemonicIndex(3, 6)
after invoking
setMnemonicAt(3, KeyEvent.VK_P)
.
Note that it is the programmer's responsibility to ensure that each tab has a unique mnemonic or unpredictable results may occur.
displaymnemonics
- String
comma sep. list of index into the String
to underline for all tabs
IndexOutOfBoundsException
- if tabIndex
is
out of range (tabIndex < 0 || tabIndex >= tab
count
)
IllegalArgumentException
- will be thrown if
mnemonicIndex
is >= length of the tab
title , or < -1JTabbedPane.setMnemonicAt(int,int)
,
JTabbedPane.getDisplayedMnemonicIndexAt(int)
public void setEnabled(String enabled)
index
is enabled.
An internal exception is raised if there is no tab at that index.
enabled
- String
comma sep. list of booleans, if or not the tab should be enabled
IndexOutOfBoundsException
- if index is out of range
(index < 0 || index >= tab count)JTabbedPane.isEnabledAt(int)
public void setToolTipTexts(String toolTipTexts)
index
to toolTipText
which can be null
.
An internal exception is raised if there is no tab at that index.
toolTipTexts
- String
comma sep. list of tooltip texts to be displayed for all the tabs
IndexOutOfBoundsException
- if index is out of range
(index < 0 || index >= tab count)JTabbedPane.getToolTipTextAt(int)
public void setIcons(String icons)
icon
To set disabled icon, use setDisableIconAt()
.
An internal exception is raised if there is no tab at that index.
icons
- String
comma sep. list of icons to be displayed in alls tabs
IndexOutOfBoundsException
- if index is out of range
(index < 0 || index >= tab count)JTabbedPane.setDisabledIconAt(int, javax.swing.Icon)
,
JTabbedPane.getIconAt(int)
public void setDisabledIcons(String icons)
index
to icon
which can be null
.
An internal exception is raised if there is no tab at that index.
icons
- String
comma sep. list of icons to be displayed in alls tabs
IndexOutOfBoundsException
- if index is out of range
(index < 0 || index >= tab count)JTabbedPane.getDisabledIconAt(int)
|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |