oracle.cabo.image.util
Class Tab
java.lang.Object
|
+--oracle.cabo.image.util.Tab
- Direct Known Subclasses:
- DestinationTab
- public class Tab
- extends java.lang.Object
Simple representation of a Tab that contains a text label and
its disabled state. Clients provide an array of Tab objects to the
TabBarImageRenderer using the TABS_KEY constant.
Constructor Summary |
Tab(java.lang.String text,
boolean disabled)
Create an Tab object. |
Tab(java.lang.String text,
boolean disabled,
char accessKey)
|
Method Summary |
boolean |
equals(java.lang.Object o)
Equals implementation |
char |
getAccessKey()
Gets the access key for the Tab |
java.lang.String |
getText()
Gets the text for the Tab. |
int |
hashCode()
Hash code implementation |
boolean |
isDisabled()
Tests the disabled state for the Tab. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ACCESS_KEY_UNDEFINED
public static final char ACCESS_KEY_UNDEFINED
- Constant for undefined access keys.
Tab
public Tab(java.lang.String text,
boolean disabled)
- Create an Tab object.
Tab
public Tab(java.lang.String text,
boolean disabled,
char accessKey)
getAccessKey
public final char getAccessKey()
- Gets the access key for the Tab
getText
public final java.lang.String getText()
- Gets the text for the Tab.
isDisabled
public final boolean isDisabled()
- Tests the disabled state for the Tab.
equals
public boolean equals(java.lang.Object o)
- Equals implementation
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Hash code implementation
- Overrides:
hashCode
in class java.lang.Object