Class LockBorderWidget
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingWidget<JTextComponent>
org.pushingpixels.radiance.theming.internal.widget.text.LockBorderWidget
Adds visual indication on non-editable text components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Border with "lock" indication. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
true
if this widget is uninstalling.private static final String
Name for client property that stores the original border.private PropertyChangeListener
Listens on all properties to decide whether a 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
hasLockIcon
(Component comp) Checks whether the specified component should show a lock icon.void
Installs default settings for the associated component.void
Installs listeners for the associated component.private void
Installs the lock border on 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 lock border should be shown / hidden. -
isUninstalling
private boolean isUninstallingtrue
if this widget is uninstalling. Fix for defect 7. -
ORIGINAL_BORDER
Name for client property that stores the original border.- See Also:
-
-
Constructor Details
-
LockBorderWidget
public LockBorderWidget()
-
-
Method Details
-
installListeners
public void installListeners()Description copied from class:RadianceThemingWidget
Installs listeners for the associated component.- Overrides:
installListeners
in classRadianceThemingWidget<JTextComponent>
-
uninstallListeners
public void uninstallListeners()Description copied from class:RadianceThemingWidget
Uninstalls listeners for the associated component.- Overrides:
uninstallListeners
in classRadianceThemingWidget<JTextComponent>
-
uninstallUI
public void uninstallUI()Description copied from class:RadianceThemingWidget
Uninstalls UI on the associated component.- Overrides:
uninstallUI
in classRadianceThemingWidget<JTextComponent>
-
installDefaults
public void installDefaults()Description copied from class:RadianceThemingWidget
Installs default settings for the associated component.- Overrides:
installDefaults
in classRadianceThemingWidget<JTextComponent>
-
uninstallDefaults
public void uninstallDefaults()Description copied from class:RadianceThemingWidget
Uninstalls default settings for the associated component.- Overrides:
uninstallDefaults
in classRadianceThemingWidget<JTextComponent>
-
installLockBorder
private void installLockBorder()Installs the lock border on the associated component. -
restoreOriginalBorder
private void restoreOriginalBorder()Restores the original border on the associated component. -
hasLockIcon
Checks whether the specified component should show a lock icon. Is used in theLockBorderWidget
widget.- Parameters:
comp
- Component.- Returns:
true
if the specified component should show a lock icon,false
otherwise.
-