public class TabSet extends Object implements Serializable
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,对所有JavaBeans的长期存储的支持已经添加到java.beans包中。 请参阅XMLEncoder 。
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
表示此
TabSet是否等于另一个。
|
TabStop |
getTab(int index)
返回TabStop索引
index 。
|
TabStop |
getTabAfter(float location)
location后返回Tab实例。
|
int |
getTabCount()
返回接收器包含的Tab实例数。
|
int |
getTabIndex(TabStop tab) |
int |
getTabIndexAfter(float location)
返回
location后使用的Tab的索引。
|
int |
hashCode()
返回此组TabStops的哈希码。
|
String |
toString()
返回一组选项卡的字符串表示形式。
|
public TabSet(TabStop[] tabs)
public int getTabCount()
public TabStop getTab(int index)
index 。
如果index超出了选项卡的范围,这将抛出一个IllegalArgumentException index 。
public TabStop getTabAfter(float location)
location后返回Tab实例。
如果location之后没有选项卡,则返回null。
public int getTabIndex(TabStop tab)
tab的索引,或-1(如果
tab )不包含在接收器中。
public int getTabIndexAfter(float location)
location后使用的Tab的索引。
如果location后没有选项卡,则返回-1。
public boolean equals(Object o)
TabSet是否等于另一个。
equals在
Object
o - 这个实例应该比较的
TabSet实例。
true如果
o是实例
TabSet ,具有相同数量的
TabStop S和他们都是平等的,
false其他。
Object.hashCode() , HashMap
public int hashCode()
hashCode在类
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.