javax.swing.plaf.basic
public class BasicTextFieldUI extends BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
Constructor and Description |
---|
BasicTextFieldUI() |
Modifier and Type | Method and Description |
---|---|
View |
create(Element elem)
|
static ComponentUI |
createUI(JComponent c) |
protected String |
getPropertyPrefix()
Returns the prefix for entries in the
UIDefaults table. |
void |
installUI(JComponent c)
Installs this UI on the text component.
|
protected void |
propertyChange(PropertyChangeEvent event)
Receives notification whenever one of the text component's bound
properties changes.
|
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel
getToolTipText
contains, getAccessibleChild, getAccessibleChildrenCount
public BasicTextFieldUI()
public View create(Element elem)
BasicTextUI
create
in interface ViewFactory
create
in class BasicTextUI
elem
- the Element
to create a View
forViewFactory
public static ComponentUI createUI(JComponent c)
protected String getPropertyPrefix()
UIDefaults
table.getPropertyPrefix
in class BasicTextUI
public void installUI(JComponent c)
BasicTextUI
installUI
in class BasicTextUI
c
- the text component on which to install the UIComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
protected void propertyChange(PropertyChangeEvent event)
The colors are only changed if they are not a
ColorUIResource
.
propertyChange
in class BasicTextUI
event
- the property change event