|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.AbstractDocument.AbstractElement | +--com.sun.java.swing.text.AbstractDocument.LeafElement
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.
Element
, Serialized FormConstructor Summary | |
AbstractDocument.LeafElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
Constructs an element that represents content within the document (has no children). |
Method Summary | |
Enumeration | children()
Returns the children of the reciever as an Enumeration. |
boolean | getAllowsChildren()
Returns true if the receiver allows children. |
Element | getElement(int index)
Gets a child element. |
int | getElementCount()
Returns the number of child elements. |
int | getElementIndex(int pos)
Gets the child element index closest to the given model offset. |
int | getEndOffset()
Gets the ending offset in the model for the element. |
String | getName()
Gets the element name. |
int | getStartOffset()
Gets the starting offset in the model for the element. |
boolean | isLeaf()
Checks whether the element is a leaf. |
String | toString()
Converts the element to a string. |
Methods inherited from class com.sun.java.swing.text.AbstractDocument.AbstractElement | |
addAttribute , addAttributes , containsAttribute , containsAttributes , copyAttributes , dump , finalize , getAttribute , getAttributeCount , getAttributeNames , getAttributes , getChildAt , getChildCount , getDocument , getIndex , getParent , getParentElement , getResolveParent , isDefined , isEqual , removeAttribute , removeAttributes , removeAttributes , setResolveParent |
Methods inherited from class java.lang.Object | |
clone , equals , getClass , hashCode , notify , notifyAll , wait , wait , wait |
Constructor Detail |
public AbstractDocument.LeafElement(Element parent, AttributeSet a, int offs0, int offs1)
parent
- The parent element
a
- The element attributes
offs0
- The start offset >= 0
offs1
- The end offset >= offs0Method Detail |
public String toString()
public int getStartOffset()
public int getEndOffset()
public String getName()
public int getElementIndex(int pos)
pos
- the offset >= 0public Element getElement(int index)
index
- the child index, >= 0 && < getElementCount()public int getElementCount()
public boolean isLeaf()
public boolean getAllowsChildren()
public Enumeration children()
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |