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.


Constructor Index

 o StringContent()

Method Index

 o getChar(int)
 o getString(int, int)
 o insertChar(int, char)
 o insertString(int, String)
 o length()
 o remove(int, int)

Constructors

 o StringContent
 public StringContent()

Methods

 o length
 public int length()
See Also:
length
 o insertChar
 public UndoableEdit insertChar(int where,
                                char c) throws BadLocation
See Also:
insertChar
 o insertString
 public UndoableEdit insertString(int where,
                                  String str) throws BadLocation
See Also:
insertString
 o remove
 public UndoableEdit remove(int where,
                            int nitems) throws BadLocation
See Also:
remove
 o getChar
 public char getChar(int where) throws BadLocation
See Also:
getChar
 o getString
 public String getString(int where,
                         int len) throws BadLocation
See Also:
getString

All Packages  Class Hierarchy  This Package  Previous  Next  Index