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 classCustom password view.Nested classes/interfaces inherited from class BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JPasswordFieldThe associated password field.private PropertyChangeListenerProperty change listener.private RolloverTextControlListenerListener for transition animations.private StateTransitionTrackerprivate Set<RadianceThemingWidget<JComponent>> private ButtonModelSurrogate button model for tracking the state transitions. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates the UI delegate for the specified component (password field). -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIcreateUI(JComponent comp) Returns the model for tracking the transitions.protected voidprotected voidvoidbooleanisInside(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.protected voidprotected voidprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods inherited from class BasicPasswordFieldUI
getPropertyPrefixMethods inherited from class BasicTextFieldUI
getBaseline, getBaselineResizeBehaviorMethods inherited from class 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, viewToModel2DMethods inherited from class TextUI
getToolTipText2DMethods inherited from class 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:
installUIin classBasicTextUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicTextUI
-
create
- Specified by:
createin interfaceViewFactory- Overrides:
createin classBasicPasswordFieldUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicTextUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicPasswordFieldUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicTextUI
-
paintBackground
- Overrides:
paintBackgroundin classBasicTextUI
-
isInside
Description copied from interface:TransitionAwareUIChecks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInsidein interfaceTransitionAwareUI- Parameters:
me- Mouse event.- Returns:
trueif the mouse position of the specified event lies inside the area of the component designated for transition effects,falseotherwise.
-
getTransitionTracker
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
update
- Overrides:
updatein classBasicTextUI
-