swingwtx.swing.text
Interface AbstractDocument.Content

All Known Implementing Classes:
StringContent
Enclosing interface:
AbstractDocument

public static interface AbstractDocument.Content

Interfaces:


Method Summary
 Position createPosition(int offset)
           
 void getChars(int where, int len, Segment txt)
           
 java.lang.String getString(int where, int len)
           
 UndoableEdit insertString(int where, java.lang.String str)
           
 int length()
           
 UndoableEdit remove(int where, int nitems)
           
 

Method Detail

createPosition

public Position createPosition(int offset)
                        throws BadLocationException
Throws:
BadLocationException

length

public int length()

insertString

public UndoableEdit insertString(int where,
                                 java.lang.String str)
                          throws BadLocationException
Throws:
BadLocationException

remove

public UndoableEdit remove(int where,
                           int nitems)
                    throws BadLocationException
Throws:
BadLocationException

getString

public java.lang.String getString(int where,
                                  int len)
                           throws BadLocationException
Throws:
BadLocationException

getChars

public void getChars(int where,
                     int len,
                     Segment txt)
              throws BadLocationException
Throws:
BadLocationException