java.lang.Object javax.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)
public boolean equals ( Object o)
public int hashCode ()
public String toString()