javax.swing.plaf.basic
Class BasicEditorPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicEditorPaneUI
- All Implemented Interfaces:
- ViewFactory
- Direct Known Subclasses:
- BasicTextPaneUI
public class BasicEditorPaneUI
- extends BasicTextUI
The UI class for JEditorPane
s.
Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicEditorPaneUI
public BasicEditorPaneUI()
- Creates a new
BasicEditorPaneUI
createUI
public static ComponentUI createUI(JComponent comp)
- Creates an instance of
BasicEditorPaneUI
for the text
component comp
.
- Parameters:
comp
- the component for which to create an UI
- Returns:
- the UI for
comp
getPropertyPrefix
protected String getPropertyPrefix()
- Returns the property prefix to be used by this UI class. This is
EditorPane
in this case.
- Specified by:
getPropertyPrefix
in class BasicTextUI
- Returns:
EditorPane
getEditorKit
public EditorKit getEditorKit(JTextComponent textComponent)
- Gets the EditorKit for the text component.
- Overrides:
getEditorKit
in class BasicTextUI
- Parameters:
textComponent
- the text component for which to fetch the editor kit
- Returns:
- the
EditorKit
used for the text component that is managed
by this UI