| Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||
java.lang.Object
|
+----java.awt.swing.text.EditorKit
A kit can safely store editing state as an instance
of the kit will be dedicated to a text component.
New kits will normally be created by cloning a
prototype kit. The kit will have it's
setComponent method called to establish
it's relationship with a JTextComponent.
| Constructor Summary | |
| EditorKit()
|
|
| Method Summary | |
| Object | clone()
|
| Caret | createCaret()
|
| Document | createDefaultDocument()
|
| void | deinstall(JEditorPane c)
|
| Action[] | getActions()
|
| String | getContentType()
|
| ViewFactory | getViewFactory()
|
| void | install(JEditorPane c)
|
| void | read(InputStream in,
Document doc,
int pos)
|
| void | read(Reader in,
Document doc,
int pos)
|
| void | write(OutputStream out,
Document doc,
int pos,
int len)
|
| void | write(Writer out,
Document doc,
int pos,
int len)
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EditorKit()
| Method Detail |
public abstract Object clone()
public void install(JEditorPane c)
c
- the JEditorPane
public void deinstall(JEditorPane c)
c
- the JEditorPane
public abstract String getContentType()
public abstract ViewFactory getViewFactory()
public abstract Action[] getActions()
public abstract Caret createCaret()
public abstract Document createDefaultDocument()
public abstract void read(InputStream in,
Document doc,
int pos) throws IOException, BadLocationException
in
- The stream to read from
doc
- The destination for the insertion.
pos
- The location in the document to place the
content.
public abstract void write(OutputStream out,
Document doc,
int pos,
int len) throws IOException, BadLocationException
out
- The stream to write to
doc
- The source for the write.
pos
- The location in the document to fetch the
content.
len
- The amount to write out.
public abstract void read(Reader in,
Document doc,
int pos) throws IOException, BadLocationException
Since actual text editing is unicode based, this would generally be the preferred way to read in the data. Some types of content are stored in an 8-bit form however, and will favor the InputStream.
in
- The stream to read from
doc
- The destination for the insertion.
pos
- The location in the document to place the
content.
public abstract void write(Writer out,
Document doc,
int pos,
int len) throws IOException, BadLocationException
Since actual text editing is unicode based, this would generally be the preferred way to write the data. Some types of content are stored in an 8-bit form however, and will favor the OutputStream.
out
- The stream to write to
doc
- The source for the write.
pos
- The location in the document to fetch the
content.
len
- The amount to write out.
| Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||