All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.text.StringContent
java.lang.Object
|
+----com.sun.java.swing.text.StringContent
- public final class StringContent
- extends Object
- implements JDocument. Content, Serializable
An implementation of the JDocument.Content interface that is useful for
relatively small documents. It manages the character content
as a simple string, and does not maintain any history for undo/redo
operations.
-
StringContent()
-
-
getChar(int)
-
-
getString(int, int)
-
-
insertChar(int, char)
-
-
insertString(int, String)
-
-
length()
-
-
remove(int, int)
-
StringContent
public StringContent()
length
public int length()
- See Also:
- length
insertChar
public UndoableEdit insertChar(int where,
char c) throws BadLocation
- See Also:
- insertChar
insertString
public UndoableEdit insertString(int where,
String str) throws BadLocation
- See Also:
- insertString
remove
public UndoableEdit remove(int where,
int nitems) throws BadLocation
- See Also:
- remove
getChar
public char getChar(int where) throws BadLocation
- See Also:
- getChar
getString
public String getString(int where,
int len) throws BadLocation
- See Also:
- getString
All Packages Class Hierarchy This Package Previous Next Index