
// Public Methods Overriding AbstractDocument.AbstractElement
public java.util.Enumeration children();
constantpublic boolean getAllowsChildren();
public javax.swing.text.Element getElement(int index);
public int getElementCount();
public int getElementIndex(int offset);
public int getEndOffset();
public String getName();
public int getStar tOffset();
constantpublic boolean isLeaf();
// Public Methods Overriding Object
public String toString();
}
Subc lasses: DefaultStyledDocument.SectionElement, javax.swing .text.html.HTMLDocument.BlockElement
AbstractDocument.Content Ja va 1.2
javax.swing .text
This interface defines an abstract repr esentation of an editable piece of text. An Abstract-
Document.Content object is used to repr esent the contents of any Document derived from
AbstractDocument.AContent implementation must be able to retur n arbitrary text seg-
ments, insert and delete text, and retur n Position objects that mark positions within the
content. If the Content implementation allows undo operations, the inser tString() method
should retur nanUndoableEdit object; otherwise it should retur n null. Applications typi-
cally do not use or implement this interface. See StringContent and GapContent for two
implementations.
public abstract static interface AbstractDocument.Content {
// Public Instance Methods
public abstract Position createPosition(int offset) throws BadLocationException;
public abstract ...