ViewFactory, TransitionAwareUIpublic class SubstanceFormattedTextFieldUI extends BasicFormattedTextFieldUI implements TransitionAwareUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter| Modifier and Type | Field | Description |
|---|---|---|
protected StateTransitionTracker |
stateTransitionTracker |
|
protected PropertyChangeListener |
substancePropertyChangeListener |
Property change listener.
|
protected JFormattedTextField |
textField |
The associated formatted text field.
|
| Constructor | Description |
|---|---|
SubstanceFormattedTextFieldUI(JComponent c) |
Simple constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ComponentUI |
createUI(JComponent comp) |
|
StateTransitionTracker |
getTransitionTracker() |
Returns the model for tracking the transitions.
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
boolean |
isInside(MouseEvent me) |
Checks whether the mouse position of the specified event lies inside the
area of the component designated for transition effects.
|
protected void |
paintBackground(Graphics g) |
|
protected void |
uninstallListeners() |
getPropertyPrefixcreate, getBaseline, getBaselineResizeBehaviorcreate, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installUI, modelChanged, modelToView, modelToView, modelToView2D, paint, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModel, viewToModel2Dcontains, getAccessibleChild, getAccessibleChildrenCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetToolTipText2Dprotected StateTransitionTracker stateTransitionTracker
protected JFormattedTextField textField
protected PropertyChangeListener substancePropertyChangeListener
public SubstanceFormattedTextFieldUI(JComponent c)
c - Component (formatted text field).public static ComponentUI createUI(JComponent comp)
protected void installListeners()
installListeners in class BasicTextUIprotected void uninstallListeners()
uninstallListeners in class BasicTextUIprotected void installDefaults()
installDefaults in class BasicTextUIprotected void paintBackground(Graphics g)
paintBackground in class BasicTextUIpublic boolean isInside(MouseEvent me)
TransitionAwareUIisInside in interface TransitionAwareUIme - Mouse event.true if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false otherwise.public StateTransitionTracker getTransitionTracker()
TransitionAwareUIgetTransitionTracker in interface TransitionAwareUI