is new.
java.lang.Objectjavax.swing.text.TabSet
A TabSet is comprised of many TabStops. It offers methods for locating the closest TabStop to a given position and finding all the potential TabStops. It is also immutable.
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 TM has been added to the java.beans package. Please see XMLEncoder .
| Constructor Summary | |
|---|---|
|
TabSet
(
TabStop
[] tabs) Creates and returns an instance of TabSet. |
|
| Method Summary | |
|---|---|
boolean
|
equals
(
Object
Indicates whether this TabSet is equal to another one.
|
| TabStop |
getTab
(int index) Returns the TabStop at index index. |
| TabStop |
getTabAfter
(float location) Returns the Tab instance after location. |
| int |
getTabCount
() Returns the number of Tab instances the receiver contains. |
| int |
getTabIndex
(
TabStop
tab) |
| int |
getTabIndexAfter
(float location) Returns the index of the Tab to be used after location. |
int
|
hashCode
()
Returns a hashcode for this set of TabStops.
|
| String |
toString
() Returns the string representation of the set of tabs. |
| Methods inherited from class java.lang. Object |
|---|
clone
,
|
| Constructor Detail |
|---|
public TabSet(TabStop[] tabs)
| Method Detail |
|---|
public int getTabCount()
public TabStop getTab(int index)
public TabStop getTabAfter(float location)
public int getTabIndex(TabStop tab)
public int getTabIndexAfter(float location)
equals
public boolean
equals
(
Object
o)
Indicates whether this TabSet is equal to another one.
Overrides:
equals
in class
Object
Parameters:
o - the TabSet instance which this instance should be compared to.
Returns:
true if o is the instance of TabSet, has the same number of TabStops and they are all equal, false otherwise.
Since:
1.5
See Also:
Object.hashCode()
,
Hashtable
hashCode
public int
hashCode
()
Returns a hashcode for this set of TabStops.
Overrides:
hashCode
in class
Object
Returns:
a hashcode value for this set of TabStops.
Since:
1.5
See Also:
Object.equals(java.lang.Object)
,
Hashtable
public String toString()