java.lang.CharSequence
public class DocumentCharSequence
extends java.lang.Object
implements java.lang.CharSequence
Constructor | Description |
---|---|
DocumentCharSequence() |
|
DocumentCharSequence(javax.swing.text.Document doc) |
Modifier and Type | Method | Description |
---|---|---|
char |
charAt(int index) |
|
javax.swing.text.Document |
getDocument() |
|
int |
length() |
|
void |
setDocument(javax.swing.text.Document doc) |
|
java.lang.CharSequence |
subSequence(int start,
int end) |
|
java.lang.String |
toString() |
public DocumentCharSequence()
public DocumentCharSequence(javax.swing.text.Document doc)
public int length()
length
in interface java.lang.CharSequence
public char charAt(int index)
charAt
in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public javax.swing.text.Document getDocument()
public void setDocument(javax.swing.text.Document doc)