java.lang.Object | +----com.sun.java.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 Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
index
.
location
.
location
.
public TabSet(TabStop tabs[])
public int getTabCount()
public TabStop getTab(int index)
index
. This will throw an
IllegalArgumentException if index
is outside the range
of tabs.
public TabStop getTabAfter(float location)
location
. This will
return null if there are no tabs after location
.
public int getTabIndex(TabStop tab)
tab
, or -1 if
tab
is not contained in the receiver.
public int getTabIndexAfter(float location)
location
.
This will return -1 if there are no tabs after location
.
public String toString()