setContentType
setContentType: (JEditorPane, string) -> ()Shows the text as type from now on ("text/html" or "text/plain"); the document is a new empty one.
JEditorPane.new()| Method | Returns | Description |
|---|---|---|
setContentType(string) | () | Shows the text as type from now on ("text/html" or "text/plain"); the document is a new empty one. |
getContentType() | string | The content type ("text/plain" until set). |
addHyperlinkListener(any) | () | Adds a HyperlinkListener (a table with hyperlinkUpdate, or that function): it hears ENTERED, EXITED and ACTIVATED for the links o… |
removeHyperlinkListener(any) | () | Removes a HyperlinkListener, by identity. |
getHyperlinkListeners() | {any} | The HyperlinkListeners, in registration order. |
getEditorKitForContentType(string) | any | The pane's kit for type, one per type (text/html an HTMLEditorKit whose style sheet styles this pane). |
new() | JEditorPane | An empty editor pane (text/plain). |
init(JEditorPane) | () | An empty editor pane (text/plain). |
isInstance(any) | boolean | Whether obj is a JEditorPane object, a class(JEditorPane) subclass's included. |
| Field | Type | Description |
|---|---|---|
super | JTextComponentClass | JTextComponent's class table: the base class. |
| Method | Returns | Description |
|---|---|---|
JEditorPaneClass.new | JEditorPane | An empty editor pane (text/plain). |
setContentTypesetContentType: (JEditorPane, string) -> ()Shows the text as type from now on ("text/html" or "text/plain"); the document is a new empty one.
getContentTypegetContentType: (JEditorPane) -> stringThe content type ("text/plain" until set).
addHyperlinkListeneraddHyperlinkListener: (JEditorPane, any) -> ()Adds a HyperlinkListener (a table with hyperlinkUpdate, or that function): it hears ENTERED, EXITED and ACTIVATED for the links of a pane showing HTML that is not editable, the last added first.
removeHyperlinkListenerremoveHyperlinkListener: (JEditorPane, any) -> ()Removes a HyperlinkListener, by identity.
getHyperlinkListenersgetHyperlinkListeners: (JEditorPane) -> {any}The HyperlinkListeners, in registration order.
getEditorKitForContentTypegetEditorKitForContentType: (JEditorPane, string) -> anyThe pane's kit for type, one per type (text/html an HTMLEditorKit whose style sheet styles this pane).
newnew: () -> JEditorPaneAn empty editor pane (text/plain).
initinit: (JEditorPane) -> ()An empty editor pane (text/plain).
isInstanceisInstance: (any) -> booleanWhether obj is a JEditorPane object, a class(JEditorPane) subclass's included.