This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.plaf.basic
class BasicTextPaneUI
- All Implemented Interfaces:
- ViewFactory
public class BasicTextPaneUI
extends BasicEditorPaneUI
Provides the look and feel for a styled text editor.
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 {@link java.beans.XMLEncoder}.
Constructor Summary |
Creates a new BasicTextPaneUI.
|
Method Summary |
static ComponentUI |
Creates a UI for the JTextPane.
|
protected String |
Fetches the name used as a key to lookup properties through the
UIManager.
|
void |
|
protected void |
This method gets called when a bound property is changed
on the associated JTextComponent.
|
Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getPropertyPrefix, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicTextPaneUI
public BasicTextPaneUI()
-
Creates a new BasicTextPaneUI.
createUI
public static ComponentUI createUI(JComponent c)
-
Creates a UI for the JTextPane.
- Parameters:
c
- the JTextPane object
- Returns:
- the UI
getPropertyPrefix
protected String getPropertyPrefix()
-
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.
- Overrides:
getPropertyPrefix
in class BasicEditorPaneUI
- Returns:
- the name ("TextPane")
installUI
public void installUI(JComponent c)
-
- Overrides:
installUI
in class BasicEditorPaneUI
- Parameters:
c
propertyChange
protected void propertyChange(PropertyChangeEvent evt)
-
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.
If the font, foreground or document has changed, the
the appropriate property is set in the default style of
the document.
- Overrides:
propertyChange
in class BasicEditorPaneUI
- Parameters:
evt
- the property change event
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.