|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AbstractDocumentInterface
An interface designed to augment the Swing Document interface with useful operations including operations like append that cannot be safely implemented in terms of the methods provided by the Document interface. Operations like append require write locking the document which cannot be done using the Document interface.
| Method Summary | |
|---|---|
void |
append(String str,
AttributeSet set)
Appends given string with specified attributes to end of this document. |
Position |
createPosition(int offs)
Creates a "sticky" position within a document |
int |
getLength()
|
String |
getText()
|
String |
getText(int offset,
int length)
|
void |
insertString(int offset,
String str,
AttributeSet a)
|
void |
remove(int offset,
int length)
|
| Method Detail |
|---|
int getLength()
String getText(int offset,
int length)
throws BadLocationException
BadLocationExceptionString getText()
void insertString(int offset,
String str,
AttributeSet a)
throws BadLocationException
BadLocationException
void remove(int offset,
int length)
throws BadLocationException
BadLocationException
Position createPosition(int offs)
throws BadLocationException
BadLocationException
void append(String str,
AttributeSet set)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||