swingwtx.swing.text
Interface Document
- All Known Subinterfaces:
- StyledDocument
- All Known Implementing Classes:
- AbstractDocument
- public interface Document
StreamDescriptionProperty
public static final java.lang.String StreamDescriptionProperty
- See Also:
- Constant Field Values
TitleProperty
public static final java.lang.String TitleProperty
- See Also:
- Constant Field Values
getLength
public int getLength()
addDocumentListener
public void addDocumentListener(DocumentListener listener)
removeDocumentListener
public void removeDocumentListener(DocumentListener listener)
addUndoableEditListener
public void addUndoableEditListener(UndoableEditListener listener)
removeUndoableEditListener
public void removeUndoableEditListener(UndoableEditListener listener)
getProperty
public java.lang.Object getProperty(java.lang.Object key)
putProperty
public void putProperty(java.lang.Object key,
java.lang.Object value)
remove
public void remove(int offs,
int len)
throws BadLocationException
- Throws:
BadLocationException
insertString
public void insertString(int offset,
java.lang.String str,
AttributeSet a)
throws BadLocationException
- Throws:
BadLocationException
getText
public java.lang.String getText(int offset,
int length)
throws BadLocationException
- Throws:
BadLocationException
getText
public void getText(int offset,
int length,
Segment txt)
throws BadLocationException
- Throws:
BadLocationException
getStartPosition
public Position getStartPosition()
getEndPosition
public Position getEndPosition()
createPosition
public Position createPosition(int offs)
throws BadLocationException
- Throws:
BadLocationException
getRootElements
public Element[] getRootElements()
getDefaultRootElement
public Element getDefaultRootElement()
render
public void render(java.lang.Runnable r)