Class RadiancePasswordFieldUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextFieldUI
javax.swing.plaf.basic.BasicPasswordFieldUI
org.pushingpixels.radiance.theming.internal.ui.RadiancePasswordFieldUI
- All Implemented Interfaces:
ViewFactory
,TransitionAwareUI
UI for password fields in Radiance look and feel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Custom password view.Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JPasswordField
The associated password field.private PropertyChangeListener
Property change listener.private RolloverTextControlListener
Listener for transition animations.private StateTransitionTracker
private Set
<RadianceThemingWidget<JComponent>> private ButtonModel
Surrogate button model for tracking the state transitions. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates the UI delegate for the specified component (password field). -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
createUI
(JComponent comp) Returns the model for tracking the transitions.protected void
protected void
void
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
protected void
protected void
void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicPasswordFieldUI
getPropertyPrefix
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
getBaseline, getBaselineResizeBehavior
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, modelToView2D, paint, paintSafely, propertyChange, setView, uninstallKeyboardActions, viewToModel, viewToModel, viewToModel2D
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
stateTransitionTracker
-
passwordField
The associated password field. -
radiancePropertyChangeListener
Property change listener. -
radianceRolloverListener
Listener for transition animations. -
transitionModel
Surrogate button model for tracking the state transitions. -
themingWidgets
-
-
Constructor Details
-
RadiancePasswordFieldUI
Creates the UI delegate for the specified component (password field).- Parameters:
c
- Component.
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicTextUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicTextUI
-
create
- Specified by:
create
in interfaceViewFactory
- Overrides:
create
in classBasicPasswordFieldUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicTextUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicPasswordFieldUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicTextUI
-
paintBackground
- Overrides:
paintBackground
in classBasicTextUI
-
isInside
Description copied from interface:TransitionAwareUI
Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInside
in interfaceTransitionAwareUI
- Parameters:
me
- Mouse event.- Returns:
true
if the mouse position of the specified event lies inside the area of the component designated for transition effects,false
otherwise.
-
getTransitionTracker
Description copied from interface:TransitionAwareUI
Returns the model for tracking the transitions.- Specified by:
getTransitionTracker
in interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-
update
- Overrides:
update
in classBasicTextUI
-