Home » openjdk-7 » javax » swing » text » [javadoc | source]
public class: TabSet [javadoc | source]

All Implemented Interfaces:

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 JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder .

 public TabSet(TabStop[] tabs) 
    Creates and returns an instance of TabSet. The array of Tabs passed in must be sorted in ascending order.
Method from javax.swing.text.TabSet Summary:
equals,   getTab,   getTabAfter,   getTabCount,   getTabIndex,   getTabIndexAfter,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.TabSet Detail:
 public boolean equals(Object o) 
    Indicates whether this TabSet is equal to another one.
 public TabStop getTab(int index) 
    Returns the TabStop at index index. This will throw an IllegalArgumentException if index is outside the range of tabs.
 public TabStop getTabAfter(float location) 
    Returns the Tab instance after location. This will return null if there are no tabs after location.
 public int getTabCount() 
    Returns the number of Tab instances the receiver contains.
 public int getTabIndex(TabStop tab) 
 public int getTabIndexAfter(float location) 
    Returns the index of the Tab to be used after location. This will return -1 if there are no tabs after location.
 public int hashCode() 
    Returns a hashcode for this set of TabStops.
 public String toString() 
    Returns the string representation of the set of tabs.