Methods Summary |
---|
public java.lang.Object | clone()Creates a copy of the editor kit. This is implemented
to use Object.clone. If the kit cannot be cloned,
null is returned.
Object o;
try {
o = super.clone();
} catch (CloneNotSupportedException cnse) {
o = null;
}
return o;
|
public abstract javax.swing.text.Caret | createCaret()Fetches a caret that can navigate through views
produced by the associated ViewFactory.
|
public abstract javax.swing.text.Document | createDefaultDocument()Creates an uninitialized text storage model
that is appropriate for this type of editor.
|
public void | deinstall(javax.swing.JEditorPane c)Called when the kit is being removed from the
JEditorPane. This is used to unregister any
listeners that were attached.
|
public abstract javax.swing.Action[] | getActions()Fetches the set of commands that can be used
on a text component that is using a model and
view produced by this kit.
|
public abstract java.lang.String | getContentType()Gets the MIME type of the data that this
kit represents support for.
|
public abstract javax.swing.text.ViewFactory | getViewFactory()Fetches a factory that is suitable for producing
views of any models that are produced by this
kit.
|
public void | install(javax.swing.JEditorPane c)Called when the kit is being installed into the
a JEditorPane.
|
public abstract void | read(java.io.InputStream in, javax.swing.text.Document doc, int pos)Inserts content from the given stream which is expected
to be in a format appropriate for this kind of content
handler.
|
public abstract void | read(java.io.Reader in, javax.swing.text.Document doc, int pos)Inserts content from the given stream which is expected
to be in a format appropriate for this kind of content
handler.
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.
|
public abstract void | write(java.io.OutputStream out, javax.swing.text.Document doc, int pos, int len)Writes content from a document to the given stream
in a format appropriate for this kind of content handler.
|
public abstract void | write(java.io.Writer out, javax.swing.text.Document doc, int pos, int len)Writes content from a document to the given stream
in a format appropriate for this kind of content handler.
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.
|