©
本文档使用
php.cn手册 发布
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
1 2 3 |
|
1 |
|
实现可直接表示某类内容的元素。
警告:此类的已序列化对象与以后的 Swing 版本不兼容。当前的序列化支持适用于短期存储或运行相同 Swing 版本的应用程序之间的 RMI。从 1.4 版本开始,已在 java.beans
包中添加了支持所有 JavaBeansTM 长期存储的功能。请参见 XMLEncoder
。
Element
嵌套类摘要 |
---|
从接口 javax.swing.text.AttributeSet 继承的嵌套类/接口 |
---|
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute |
字段摘要 |
---|
从接口 javax.swing.text.AttributeSet 继承的字段 |
---|
NameAttribute, ResolveAttribute |
构造方法摘要 | |
---|---|
AbstractDocument.LeafElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
构造一个表示文档中内容的元素(没有子元素)。 |
方法摘要 | |
---|---|
Enumeration |
children()
以 Enumeration 的形式返回接收者的子级。 |
boolean |
getAllowsChildren()
如果接收者允许接收子元素,则返回 true。 |
Element |
getElement(int index)
获得一个子元素。 |
int |
getElementCount()
返回子元素的数量。 |
int |
getElementIndex(int pos)
获得与给定模型偏移量最接近的子元素索引。 |
int |
getEndOffset()
获得模型中该元素的结束偏移量。 |
String |
getName()
获得元素名。 |
int |
getStartOffset()
获得模型中该元素的起始偏移量。 |
boolean |
isLeaf()
检查该元素是否为叶元素。 |
String |
toString()
将该元素转换为字符串。 |
从类 javax.swing.text.AbstractDocument.AbstractElement 继承的方法 |
---|
addAttribute, addAttributes, containsAttribute, containsAttributes, copyAttributes, dump, getAttribute, getAttributeCount, getAttributeNames, getAttributes, getChildAt, getChildCount, getDocument, getIndex, getParent, getParentElement, getResolveParent, isDefined, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
1 2 3 4 |
|
parent
- 父元素a
- 元素属性offs0
- 起始偏移量,该偏移量 >= 0offs1
- 结束偏移量,该偏移量 >= offs0方法详细信息 |
---|
1 |
|
Object
中的 toString
1 |
|
Element
中的 getStartOffset
AbstractDocument.AbstractElement
中的 getStartOffset
Document
,
AbstractDocument
1 |
|
Element
中的 getEndOffset
AbstractDocument.AbstractElement
中的 getEndOffset
Document
,
AbstractDocument
1 |
|
Element
中的 getName
AbstractDocument.AbstractElement
中的 getName
1 |
|
Element
中的 getElementIndex
AbstractDocument.AbstractElement
中的 getElementIndex
pos
- 偏移量,该偏移量 >= 0
1 |
|
Element
中的 getElement
AbstractDocument.AbstractElement
中的 getElement
index
- 子元素的索引,该索引 >= 0 && < getElementCount()
1 |
|
Element
中的 getElementCount
AbstractDocument.AbstractElement
中的 getElementCount
1 |
|
Element
中的 isLeaf
TreeNode
中的 isLeaf
AbstractDocument.AbstractElement
中的 isLeaf
1 |
|
TreeNode
中的 getAllowsChildren
AbstractDocument.AbstractElement
中的 getAllowsChildren
1 |
|
Enumeration
的形式返回接收者的子级。
TreeNode
中的 children
AbstractDocument.AbstractElement
中的 children
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。