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 java..
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | FONT_ATTRIBUTE_KEY
Attribute key to reference the default font. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| public static ComponentUI | Returns: the UIthe JTextPane component c)Hides javax. Creates a UI for the JTextPane. |
| pack-priv ActionMap | getActionMap()
Overrides javax. Fetch an action map to use. |
| public EditorKit | Returns: the editor capabilitiesOverrides javax. Fetches the EditorKit for the UI. |
| protected String | Returns: the name ("EditorPane")Implements abstract javax. Fetches the name used as a key to lookup properties through the UIManager. |
| public void | installUI(JComponent c)
Overrides javax. Installs the UI for a component. |
| protected void | propertyChange(PropertyChangeEvent
the property change event evt)Overrides javax. This method gets called when a bound property is changed on the associated JTextComponent. |
| pack-priv void | |
| public void | uninstallUI(JComponent c)
Overrides javax. Deinstalls the UI for a component. |
| private void | |
| pack-priv void | |
| private void | updateFont(Font
the new font to use or null to remove the font attribute
from the document's style font)Update the font in the default style of the document. |
| private void | updateForeground(Color
the new color to use or null to remove the color attribute
from the document's style color)Update the color in the default style of the document. |
| private void |
| FONT_ATTRIBUTE_KEY | back to summary |
|---|---|
| private static final String FONT_ATTRIBUTE_KEY Attribute key to reference the default font. used in javax.swing.text.StyleContext.getFont to resolve the default font. | |
| BasicEditorPaneUI | back to summary |
|---|---|
| public BasicEditorPaneUI() Creates a new BasicEditorPaneUI. | |
| addActions | back to summary |
|---|---|
| pack-priv void addActions(ActionMap map, Action[] actions) | |
| cleanDisplayProperties | back to summary |
|---|---|
| pack-priv void cleanDisplayProperties() | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Creates a UI for the JTextPane.
| |
| getActionMap | back to summary |
|---|---|
| pack-priv ActionMap getActionMap() Overrides javax. Fetch an action map to use. The map for a JEditorPane is not shared because it changes with the EditorKit. | |
| getEditorKit | back to summary |
|---|---|
| public EditorKit getEditorKit(JTextComponent tc) Overrides javax. Fetches the EditorKit for the UI. This is whatever is currently set in the associated JEditorPane.
| |
| getPropertyPrefix | back to summary |
|---|---|
| protected String getPropertyPrefix() Implements abstract javax. 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.
| |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent c) Overrides javax. Doc from javax. Installs the UI for a component. This does the following things.
| |
| propertyChange | back to summary |
|---|---|
| protected void propertyChange(PropertyChangeEvent evt) Overrides javax. 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.
| |
| removeActions | back to summary |
|---|---|
| pack-priv void removeActions(ActionMap map, Action[] actions) | |
| uninstallUI | back to summary |
|---|---|
| public void uninstallUI(JComponent c) Overrides javax. Doc from javax. Deinstalls the UI for a component. This removes the listeners, uninstalls the highlighter, removes views, and nulls out the keymap.
| |
| updateCSS | back to summary |
|---|---|
| private void updateCSS(Font font, Color fg) | |
| updateDisplayProperties | back to summary |
|---|---|
| pack-priv void updateDisplayProperties(Font font, Color fg) | |
| updateFont | back to summary |
|---|---|
| private void updateFont(Font font) Update the font in the default style of the document.
| |
| updateForeground | back to summary |
|---|---|
| private void updateForeground(Color color) Update the color in the default style of the document.
| |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(Font font, Color fg) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| StyleSheetUIResource | back to summary |
|---|---|
| pack-priv StyleSheetUIResource() | |