Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
Position | createPosition(int offset)
Creates a position within the content that will track change as the content is mutated. |
void | getChars(int where,
int len,
Segment txt)
Gets a sequence of characters and copies them into a Segment. |
java.lang.String | getString(int where,
int len)
Fetches a string of characters contained in the sequence. |
UndoableEdit | insertString(int where,
java.lang.String str)
Inserts a string of characters into the sequence. |
int | length()
Current length of the sequence of character content. |
UndoableEdit | remove(int where,
int nitems)
Removes some portion of the sequence. |
Method Detail |
public Position createPosition(int offset) throws BadLocationException
offset
- the offset in the content >= 0public int length()
public UndoableEdit insertString(int where, java.lang.String str) throws BadLocationException
where
- Offset into the sequence to make the insertion >= 0.
str
- String to insert.public UndoableEdit remove(int where, int nitems) throws BadLocationException
where
- The offset into the sequence to make the
insertion >= 0.
nitems
- The number of items in the sequence to remove >= 0.public java.lang.String getString(int where, int len) throws BadLocationException
where
- Offset into the sequence to fetch >= 0.
len
- number of characters to copy >= 0.public void getChars(int where, int len, Segment txt) throws BadLocationException
where
- the starting offset >= 0
len
- the number of characters >= 0
txt
- the target location to copy intoOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |