Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| private int | hashCode
Since this class is immutable the hash code could be calculated once. |
| private TabStop[] | tabs
TabStops this TabSet contains. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if o is the instance of
TabSet, has the same number of TabStops
and they are all equal, false otherwise.the o)TabSet instance which this instance
should be compared to.Overrides java. Indicates whether this |
| public TabStop | Returns: the TabStop at indexindexwhich TapStop to return index)Returns the TabStop at index |
| public TabStop | Returns: the Tab instance afterlocationlocation to find a Tab after location)Returns the Tab instance after |
| public int | Returns: the number of Tab instances the receiver containsReturns the number of Tab instances the receiver contains. |
| public int | Returns: the index of the TabStoptab, or -1 if
tab is not contained in the receiver.the TabStop to find tab)Returns the index of the TabStop |
| public int | Returns: the index of the Tab to be used afterlocationlocation to find a Tab after location)Returns the index of the Tab to be used after |
| public int | Returns: a hashcode value for this set of TabStops.Overrides java. Returns a hashcode for this set of TabStops. |
| public String | toString()
Overrides java. Returns the string representation of the set of tabs. |
| hashCode | back to summary |
|---|---|
| private int hashCode Since this class is immutable the hash code could be calculated once. MAX_VALUE means that it was not initialized yet. Hash code shouldn't has MAX_VALUE value. | |
| tabs | back to summary |
|---|---|
| private TabStop[] tabs TabStops this TabSet contains. | |
| TabSet | back to summary |
|---|---|
| public TabSet(TabStop[] tabs) Creates and returns an instance of TabSet. The array of Tabs passed in must be sorted in ascending order.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Indicates whether this
| |
| getTab | back to summary |
|---|---|
| public TabStop getTab(int index) Returns the TabStop at index
| |
| getTabAfter | back to summary |
|---|---|
| public TabStop getTabAfter(float location) Returns the Tab instance after
| |
| getTabCount | back to summary |
|---|---|
| public int getTabCount() Returns the number of Tab instances the receiver contains.
| |
| getTabIndex | back to summary |
|---|---|
| public int getTabIndex(TabStop tab) Returns the index of the TabStop
| |
| getTabIndexAfter | back to summary |
|---|---|
| public int getTabIndexAfter(float location) Returns the index of the Tab to be used after
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hashcode for this set of TabStops.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of the set of tabs. | |