Provides the look and feel for a JEditorPane.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a JEditorPane. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
(*create-ui c)
Creates a UI for the JTextPane.
c - the JTextPane component - javax.swing.JComponent
returns: the UI - javax.swing.plaf.ComponentUI
Creates a UI for the JTextPane. c - the JTextPane component - `javax.swing.JComponent` returns: the UI - `javax.swing.plaf.ComponentUI`
(->basic-editor-pane-ui)
Constructor.
Creates a new BasicEditorPaneUI.
Constructor. Creates a new BasicEditorPaneUI.
(get-editor-kit this tc)
Fetches the EditorKit for the UI. This is whatever is currently set in the associated JEditorPane.
tc - the text component for which this UI is installed - javax.swing.text.JTextComponent
returns: the editor capabilities - javax.swing.text.EditorKit
Fetches the EditorKit for the UI. This is whatever is currently set in the associated JEditorPane. tc - the text component for which this UI is installed - `javax.swing.text.JTextComponent` returns: the editor capabilities - `javax.swing.text.EditorKit`
(install-ui this c)
Installs the UI for a component. This does the following things.
Sets the associated component to opaque if the opaque property has not already been set by the client program. This will cause the component's background color to be painted.
Installs the default caret and highlighter into the associated component. These properties are only set if their current value is either null or an instance of UIResource.
Attaches to the editor and model. If there is no model, a default one is created.
Creates the view factory and the view hierarchy used to represent the model.
c - the editor component - javax.swing.JComponent
Installs the UI for a component. This does the following things. Sets the associated component to opaque if the opaque property has not already been set by the client program. This will cause the component's background color to be painted. Installs the default caret and highlighter into the associated component. These properties are only set if their current value is either null or an instance of UIResource. Attaches to the editor and model. If there is no model, a default one is created. Creates the view factory and the view hierarchy used to represent the model. c - the editor component - `javax.swing.JComponent`
(uninstall-ui this c)
Deinstalls the UI for a component. This removes the listeners, uninstalls the highlighter, removes views, and nulls out the keymap.
c - the editor component - javax.swing.JComponent
Deinstalls the UI for a component. This removes the listeners, uninstalls the highlighter, removes views, and nulls out the keymap. c - the editor component - `javax.swing.JComponent`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close