public class SwingContent
extends java.lang.Object
implements javax.swing.text.AbstractDocument.Content
| Modifier and Type | Field and Description |
|---|---|
CharBuffer |
buffer |
| Constructor and Description |
|---|
SwingContent() |
SwingContent(CharBuffer buffer) |
SwingContent(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.text.Position |
createPosition(int offset) |
void |
getChars(int where,
int len,
javax.swing.text.Segment txt) |
java.lang.String |
getString(int where,
int len) |
javax.swing.undo.UndoableEdit |
insertString(int where,
java.lang.String str) |
javax.swing.undo.UndoableEdit |
insertString(int where,
java.lang.String str,
boolean beforeMarkers) |
int |
length() |
javax.swing.undo.UndoableEdit |
remove(int where,
int nitems) |
public final CharBuffer buffer
public SwingContent(CharBuffer buffer)
public SwingContent(int initialSize)
public SwingContent()
public int length()
length in interface javax.swing.text.AbstractDocument.Contentpublic void getChars(int where,
int len,
javax.swing.text.Segment txt)
throws javax.swing.text.BadLocationException
getChars in interface javax.swing.text.AbstractDocument.Contentjavax.swing.text.BadLocationExceptionpublic java.lang.String getString(int where,
int len)
throws javax.swing.text.BadLocationException
getString in interface javax.swing.text.AbstractDocument.Contentjavax.swing.text.BadLocationExceptionpublic javax.swing.undo.UndoableEdit remove(int where,
int nitems)
throws javax.swing.text.BadLocationException
remove in interface javax.swing.text.AbstractDocument.Contentjavax.swing.text.BadLocationExceptionpublic javax.swing.undo.UndoableEdit insertString(int where,
java.lang.String str,
boolean beforeMarkers)
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationExceptionpublic javax.swing.undo.UndoableEdit insertString(int where,
java.lang.String str)
throws javax.swing.text.BadLocationException
insertString in interface javax.swing.text.AbstractDocument.Contentjavax.swing.text.BadLocationExceptionpublic javax.swing.text.Position createPosition(int offset)
throws javax.swing.text.BadLocationException
createPosition in interface javax.swing.text.AbstractDocument.Contentjavax.swing.text.BadLocationException