public class TabSet extends Object implements Serializable
警告:序列化该类的对象与以后的Swing版本不兼容。当前的序列化支持适用于短期贮藏或RMI运行相同Swing版本的应用程序之间。为1.4,为所有JavaBeans™长期存储的支持已被添加到java.beans
包。请看XMLEncoder
。
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
指示此
TabSet 等于另一个。
|
TabStop |
getTab(int index)
返回指数
index 的TabStop。
|
TabStop |
getTabAfter(float location)
返回后,
location 标签实例。
|
int |
getTabCount()
返回接收器包含的制表符实例的数目。
|
int |
getTabIndex(TabStop tab) |
int |
getTabIndexAfter(float location)
返回该选项卡索引被使用后,
location 。
|
int |
hashCode()
返回此设置制表位的hashCode。
|
String |
toString()
返回选项卡集的字符串表示形式。
|
public TabSet(TabStop[] tabs)
public int getTabCount()
public TabStop getTab(int index)
index
的TabStop。这将是如果
index
标签的范围外扔IllegalArgumentException。
public TabStop getTabAfter(float location)
location
标签实例。这将返回null,如果没有标签后
location
。
public int getTabIndex(TabStop tab)
tab
指数,或1如果
tab
没有包含在接收机。
public int getTabIndexAfter(float location)
location
。这1如果没有标签后
location
回报。
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.