|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing
Class JTabbedPane.Page

java.lang.Objectjavax.accessibility.AccessibleContext
javax.swing.JTabbedPane.Page
- All Implemented Interfaces:
- javax.accessibility.Accessible
- Enclosing class:
- JTabbedPane
- private class JTabbedPane.Page
- extends javax.accessibility.AccessibleContext
- implements javax.accessibility.Accessible
- extends javax.accessibility.AccessibleContext
A private class that holds all the information for each tab.
| Field Summary | |
private java.awt.Color |
bg
The background color of the tab. |
private java.awt.Component |
component
The component associated with the tab. |
private Icon |
disabledIcon
The disabled icon associated with the tab. |
private boolean |
enabled
The tab's enabled status. |
private java.awt.Color |
fg
The foreground color of the tab. |
private Icon |
icon
The active icon associated with the tab. |
private int |
mnemonicKey
The mnemonic associated with the tab. |
private static long |
serialVersionUID
DOCUMENT ME! |
private java.lang.String |
tip
The tooltip string. |
private java.lang.String |
title
The string painted on the tab. |
private int |
underlinedChar
The index of the underlined character in the string. |
| Constructor Summary | |
protected |
JTabbedPane.Page(java.lang.String title,
Icon icon,
java.awt.Component component,
java.lang.String tip)
Creates a new data storage for the tab. |
| Method Summary | |
javax.accessibility.Accessible |
getAccessibleChild(int i)
Returns the accessible child of this tab, which is the component displayed by the tab. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children, which is always one (the component of this tab). |
javax.accessibility.AccessibleContext |
getAccessibleContext()
Returns the accessible context, which is this object itself. |
int |
getAccessibleIndexInParent()
Gets the index of this object within its accessible parent. |
javax.accessibility.AccessibleRole |
getAccessibleRole()
Returns the accessible role of this tab, which is always AccessibleRole.PAGE_TAB> AccessibleRole.PAGE_TAB 55 . |
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Gets the state set of this object. |
java.awt.Color |
getBackground()
This method returns the background color. |
java.awt.Component |
getComponent()
This method returns the component associated with the tab. |
Icon |
getDisabledIcon()
This method returns the disabled icon. |
int |
getDisplayedMnemonicIndex()
This method returns the mnemonicIndex. |
java.awt.Color |
getForeground()
This method returns the foreground color. |
Icon |
getIcon()
This method returns the active icon. |
java.util.Locale |
getLocale()
Returns the locale of this accessible object. |
int |
getMnemonic()
This method returns the mnemonic. |
java.lang.String |
getTip()
This method returns the tooltip string. |
java.lang.String |
getTitle()
This method returns the title associated with the tab. |
boolean |
isEnabled()
This method returns whether the tab is enabled. |
void |
setBackground(java.awt.Color background)
This method sets the background color. |
void |
setComponent(java.awt.Component c)
This method sets the component associated with the tab. |
void |
setDisabledIcon(Icon disabledIcon)
This method sets the disabled icon. |
void |
setDisplayedMnemonicIndex(int index)
This method sets the mnemonicIndex. |
void |
setEnabled(boolean enabled)
This method sets whether the tab is enabled. |
void |
setForeground(java.awt.Color foreground)
This method sets the foreground color. |
void |
setIcon(Icon icon)
This method sets the active icon. |
void |
setMnemonic(char aChar)
This method sets the mnemonic. |
void |
setMnemonic(int key)
This method sets the mnemonic. |
void |
setTip(java.lang.String tip)
This method sets the tooltip string. |
void |
setTitle(java.lang.String text)
This method sets the title of the tab. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
tip
private java.lang.String tip
- The tooltip string.
component
private java.awt.Component component
- The component associated with the tab.
icon
private transient Icon icon
- The active icon associated with the tab.
disabledIcon
private transient Icon disabledIcon
- The disabled icon associated with the tab.
enabled
private transient boolean enabled
- The tab's enabled status.
title
private transient java.lang.String title
- The string painted on the tab.
bg
private transient java.awt.Color bg
- The background color of the tab.
fg
private transient java.awt.Color fg
- The foreground color of the tab.
mnemonicKey
private transient int mnemonicKey
- The mnemonic associated with the tab.
underlinedChar
private transient int underlinedChar
- The index of the underlined character in the string.
serialVersionUID
private static final long serialVersionUID
- DOCUMENT ME!
- See Also:
- Constant Field Values
| Constructor Detail |
JTabbedPane.Page
protected JTabbedPane.Page(java.lang.String title, Icon icon, java.awt.Component component, java.lang.String tip)
- Creates a new data storage for the tab.
| Method Detail |
getComponent
public java.awt.Component getComponent()
- This method returns the component associated with the tab.
setComponent
public void setComponent(java.awt.Component c)
- This method sets the component associated with the tab.
getTip
public java.lang.String getTip()
- This method returns the tooltip string.
setTip
public void setTip(java.lang.String tip)
- This method sets the tooltip string.
getBackground
public java.awt.Color getBackground()
- This method returns the background color.
setBackground
public void setBackground(java.awt.Color background)
- This method sets the background color.
getForeground
public java.awt.Color getForeground()
- This method returns the foreground color.
setForeground
public void setForeground(java.awt.Color foreground)
- This method sets the foreground color.
getTitle
public java.lang.String getTitle()
- This method returns the title associated with the tab.
setTitle
public void setTitle(java.lang.String text)
- This method sets the title of the tab.
getIcon
public Icon getIcon()
- This method returns the active icon.
setIcon
public void setIcon(Icon icon)
- This method sets the active icon.
getDisabledIcon
public Icon getDisabledIcon()
- This method returns the disabled icon.
setDisabledIcon
public void setDisabledIcon(Icon disabledIcon)
- This method sets the disabled icon.
isEnabled
public boolean isEnabled()
- This method returns whether the tab is enabled.
setEnabled
public void setEnabled(boolean enabled)
- This method sets whether the tab is enabled.
getMnemonic
public int getMnemonic()
- This method returns the mnemonic.
setMnemonic
public void setMnemonic(int key)
- This method sets the mnemonic. If the title is set, it will update the
mnemonicIndex.
setMnemonic
public void setMnemonic(char aChar)
- This method sets the mnemonic. If the title is set, it will update the
mnemonicIndex.
getDisplayedMnemonicIndex
public int getDisplayedMnemonicIndex()
- This method returns the mnemonicIndex.
setDisplayedMnemonicIndex
public void setDisplayedMnemonicIndex(int index)
throws java.lang.IllegalArgumentException
- This method sets the mnemonicIndex.
getAccessibleContext
public javax.accessibility.AccessibleContext getAccessibleContext()
- Returns the accessible context, which is this object itself.
- Specified by:
getAccessibleContextin interfacejavax.accessibility.Accessible
getAccessibleRole
public javax.accessibility.AccessibleRole getAccessibleRole()
- Returns the accessible role of this tab, which is always
AccessibleRole.PAGE_TAB>
AccessibleRole.PAGE_TAB55 .
getAccessibleStateSet
public javax.accessibility.AccessibleStateSet getAccessibleStateSet() throws gnu.classpath.NotImplementedException
- Description copied from class:
javax.accessibility.AccessibleContext - Gets the state set of this object. A change in the state of the object
will fire a PropertyChangeEvent for ACCESSIBLE_STATE_PROPERTY.
getAccessibleIndexInParent
public int getAccessibleIndexInParent()
throws gnu.classpath.NotImplementedException
- Description copied from class:
javax.accessibility.AccessibleContext - Gets the index of this object within its accessible parent.
getAccessibleChildrenCount
public int getAccessibleChildrenCount()
- Returns the number of accessible children, which is always one (the
component of this tab).
getAccessibleChild
public javax.accessibility.Accessible getAccessibleChild(int i)
- Returns the accessible child of this tab, which is the component
displayed by the tab.
getLocale
public java.util.Locale getLocale()
- Returns the locale of this accessible object.
|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC