Class SubstancePasswordFieldUI
- 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.substance.internal.ui.SubstancePasswordFieldUI
-
- All Implemented Interfaces:
ViewFactory,TransitionAwareUI
public class SubstancePasswordFieldUI extends BasicPasswordFieldUI implements TransitionAwareUI
UI for password fields in Substance look and feel.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
-
Field Summary
Fields Modifier and Type Field Description protected JPasswordFieldpasswordFieldThe associated password field.protected StateTransitionTrackerstateTransitionTrackerprotected PropertyChangeListenersubstancePropertyChangeListenerProperty change listener.
-
Constructor Summary
Constructors Constructor Description SubstancePasswordFieldUI(JComponent c)Creates the UI delegate for the specified component (password field).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Viewcreate(Element elem)static ComponentUIcreateUI(JComponent comp)StateTransitionTrackergetTransitionTracker()Returns the model for tracking the transitions.protected voidinstallDefaults()protected voidinstallListeners()booleanisInside(MouseEvent me)Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.protected voidpaintBackground(Graphics g)protected voiduninstallListeners()-
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, installUI, modelChanged, modelToView, modelToView, modelToView2D, paint, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
-
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Field Detail
-
stateTransitionTracker
protected StateTransitionTracker stateTransitionTracker
-
passwordField
protected JPasswordField passwordField
The associated password field.
-
substancePropertyChangeListener
protected PropertyChangeListener substancePropertyChangeListener
Property change listener.
-
-
Constructor Detail
-
SubstancePasswordFieldUI
public SubstancePasswordFieldUI(JComponent c)
Creates the UI delegate for the specified component (password field).- Parameters:
c- Component.
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent comp)
-
create
public View create(Element elem)
- 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
-
paintBackground
protected void paintBackground(Graphics g)
- Overrides:
paintBackgroundin classBasicTextUI
-
isInside
public boolean isInside(MouseEvent me)
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
public StateTransitionTracker getTransitionTracker()
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
-