org.swixml
Class XTabbedPane
public class XTabbedPane
extends JTabbedPane
XSplitPane simple extends JSplitPane to clear components
during the construction process
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 .
|
setDisabledIcons
public void setDisabledIcons(String icons)
Sets the disabled icon at 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
setDisplayedMnemonics
public 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. Not all look and
feels may support this. A value of -1 indicates either there is
no mnemonic for this tab, or you do not wish the mnemonic to be
displayed for this tab.
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
setMnemonicAt(int,int)
, getDisplayedMnemonicIndexAt(int)
setEnabled
public void setEnabled(String enabled)
Sets whether or not the tab at 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
setIcons
public void setIcons(String icons)
Sets the icons for all tabs. Does not set disabled icon at 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
setMnemonics
public void setMnemonics(String mnemonics)
Sets the keyboard mnemonic for accessing the specified tab.
The mnemonic is the key which when combined with the look and feel's
mouseless modifier (usually Alt) will activate the specified
tab.
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
getMnemonicAt(int)
, setDisplayedMnemonicIndexAt(int,int)
setTitles
public void setTitles(String titles)
Sets the title for all tabs.
An internal exception is raised if there is no tab at that index.
titles
- String
comma sep. list of titles, for all tabs
setToolTipTexts
public void setToolTipTexts(String toolTipTexts)
Sets the tooltip text at 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
Copyright B) 2002 - 2005 - Wolf Paulus - CarlsbadCubes.com . All rights reserved.