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 class
Border with "caps lock" indication. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
true
if this widget is uninstalling.private KeyAdapter
private static final String
Name for client property that stores the original border.private PropertyChangeListener
Listens on all properties to decide whether a caps lock border should be shown / hidden.Fields inherited from class org.pushingpixels.radiance.theming.api.RadianceThemingWidget
jcomp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
hasCapsLockIcon
(Component comp) Checks whether the specified component should show a lock icon.private void
Installs the lock border on the associated component.void
Installs default settings for the associated component.void
Installs listeners for the associated component.private void
Restores the original border on the associated component.void
Uninstalls default settings for the associated component.void
Uninstalls listeners for the associated component.void
Uninstalls UI on the associated component.Methods inherited from class org.pushingpixels.radiance.theming.api.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 isUninstallingtrue
if 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:RadianceThemingWidget
Installs listeners for the associated component.- Overrides:
installListeners
in classRadianceThemingWidget<JPasswordField>
-
uninstallListeners
public void uninstallListeners()Description copied from class:RadianceThemingWidget
Uninstalls listeners for the associated component.- Overrides:
uninstallListeners
in classRadianceThemingWidget<JPasswordField>
-
uninstallUI
public void uninstallUI()Description copied from class:RadianceThemingWidget
Uninstalls UI on the associated component.- Overrides:
uninstallUI
in classRadianceThemingWidget<JPasswordField>
-
installDefaults
public void installDefaults()Description copied from class:RadianceThemingWidget
Installs default settings for the associated component.- Overrides:
installDefaults
in classRadianceThemingWidget<JPasswordField>
-
uninstallDefaults
public void uninstallDefaults()Description copied from class:RadianceThemingWidget
Uninstalls default settings for the associated component.- Overrides:
uninstallDefaults
in 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 theCapsLockPasswordBorderWidget
widget.- Parameters:
comp
- Component.- Returns:
true
if the specified component should show a lock icon,false
otherwise.
-