JEditorPane

Methods
9
Fields
1

Getting one

JEditorPane.new()

Methods

MethodReturnsDescription
setContentType(string)()Shows the text as type from now on ("text/html" or "text/plain"); the document is a new empty one.
getContentType()stringThe 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)anyThe pane's kit for type, one per type (text/html an HTMLEditorKit whose style sheet styles this pane).
new()JEditorPaneAn empty editor pane (text/plain).
init(JEditorPane)()An empty editor pane (text/plain).
isInstance(any)booleanWhether obj is a JEditorPane object, a class(JEditorPane) subclass's included.

Fields

FieldTypeDescription
superJTextComponentClassJTextComponent's class table: the base class.

Returned by

MethodReturnsDescription
JEditorPaneClass.newJEditorPaneAn empty editor pane (text/plain).

Method details

setContentType

setContentType: (JEditorPane, string) -> ()

Shows the text as type from now on ("text/html" or "text/plain"); the document is a new empty one.

addHyperlinkListener

addHyperlinkListener: (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.

isInstance

isInstance: (any) -> boolean

Whether obj is a JEditorPane object, a class(JEditorPane) subclass's included.