java.lang.Object | ||||
↳ | javax.swing.plaf.ComponentUI | |||
↳ | javax.swing.plaf.TextUI | |||
↳ | javax.swing.plaf.basic.BasicTextUI | |||
↳ | javax.swing.plaf.basic.BasicEditorPaneUI |
![]() |
![]() |
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 JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new BasicEditorPaneUI.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a UI for the JTextPane.
| |||||||||||
Fetches the EditorKit for the UI.
| |||||||||||
Installs the UI for a component.
| |||||||||||
Deinstalls the UI for a component.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fetches the name used as a key to lookup properties through the
UIManager.
| |||||||||||
This method gets called when a bound property is changed
on the associated JTextComponent.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new BasicEditorPaneUI.
Creates a UI for the JTextPane.
c | the JTextPane component |
---|
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 |
---|
Installs the UI for a component. This does the following things.
c | the editor component |
---|
Deinstalls the UI for a component. This removes the listeners, uninstalls the highlighter, removes views, and nulls out the keymap.
c | the editor component |
---|
Fetches the name used as a key to lookup properties through the UIManager. This is used as a prefix to all the standard text properties.
This method gets called when a bound property is changed on the associated JTextComponent. This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses. This is implemented to rebuild the ActionMap based upon an EditorKit change.
evt | the property change event |
---|