Class CapsLockPasswordBorderWidget
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingWidget<JPasswordField>
org.pushingpixels.radiance.theming.internal.widget.text.CapsLockPasswordBorderWidget
Adds visual indication when caps-lock key is on in focused password fields.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classBorder with "caps lock" indication. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleantrueif this widget is uninstalling.private KeyAdapterprivate static final StringName for client property that stores the original border.private PropertyChangeListenerListens on all properties to decide whether a caps lock border should be shown / hidden.Fields inherited from class RadianceThemingWidget
jcomp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanhasCapsLockIcon(Component comp) Checks whether the specified component should show a lock icon.private voidInstalls the lock border on the associated component.voidInstalls default settings for the associated component.voidInstalls listeners for the associated component.private voidRestores the original border on the associated component.voidUninstalls default settings for the associated component.voidUninstalls listeners for the associated component.voidUninstalls UI on the associated component.Methods inherited from class RadianceThemingWidget
installComponents, installUI, setComponent, uninstallComponents
-
Field Details
-
propertyChangeListener
Listens on all properties to decide whether a caps lock border should be shown / hidden. -
keyAdapter
-
isUninstalling
private boolean isUninstallingtrueif this widget is uninstalling. -
ORIGINAL_BORDER
Name for client property that stores the original border.- See Also:
-
-
Constructor Details
-
CapsLockPasswordBorderWidget
public CapsLockPasswordBorderWidget()
-
-
Method Details
-
installListeners
public void installListeners()Description copied from class:RadianceThemingWidgetInstalls listeners for the associated component.- Overrides:
installListenersin classRadianceThemingWidget<JPasswordField>
-
uninstallListeners
public void uninstallListeners()Description copied from class:RadianceThemingWidgetUninstalls listeners for the associated component.- Overrides:
uninstallListenersin classRadianceThemingWidget<JPasswordField>
-
uninstallUI
public void uninstallUI()Description copied from class:RadianceThemingWidgetUninstalls UI on the associated component.- Overrides:
uninstallUIin classRadianceThemingWidget<JPasswordField>
-
installDefaults
public void installDefaults()Description copied from class:RadianceThemingWidgetInstalls default settings for the associated component.- Overrides:
installDefaultsin classRadianceThemingWidget<JPasswordField>
-
uninstallDefaults
public void uninstallDefaults()Description copied from class:RadianceThemingWidgetUninstalls default settings for the associated component.- Overrides:
uninstallDefaultsin classRadianceThemingWidget<JPasswordField>
-
installCapsLockBorder
private void installCapsLockBorder()Installs the lock border on the associated component. -
restoreOriginalBorder
private void restoreOriginalBorder()Restores the original border on the associated component. -
hasCapsLockIcon
Checks whether the specified component should show a lock icon. Is used in theCapsLockPasswordBorderWidgetwidget.- Parameters:
comp- Component.- Returns:
trueif the specified component should show a lock icon,falseotherwise.
-