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 classBorder with "lock" indication. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleantrueif this widget is uninstalling.private static final StringName for client property that stores the original border.private PropertyChangeListenerListens on all properties to decide whether a lock border should be shown / hidden.Fields inherited from class RadianceThemingWidget
jcomp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanhasLockIcon(Component comp) Checks whether the specified component should show a lock icon.voidInstalls default settings for the associated component.voidInstalls listeners for the associated component.private voidInstalls the lock border on 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 lock border should be shown / hidden. -
isUninstalling
private boolean isUninstallingtrueif 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:RadianceThemingWidgetInstalls listeners for the associated component.- Overrides:
installListenersin classRadianceThemingWidget<JTextComponent>
-
uninstallListeners
public void uninstallListeners()Description copied from class:RadianceThemingWidgetUninstalls listeners for the associated component.- Overrides:
uninstallListenersin classRadianceThemingWidget<JTextComponent>
-
uninstallUI
public void uninstallUI()Description copied from class:RadianceThemingWidgetUninstalls UI on the associated component.- Overrides:
uninstallUIin classRadianceThemingWidget<JTextComponent>
-
installDefaults
public void installDefaults()Description copied from class:RadianceThemingWidgetInstalls default settings for the associated component.- Overrides:
installDefaultsin classRadianceThemingWidget<JTextComponent>
-
uninstallDefaults
public void uninstallDefaults()Description copied from class:RadianceThemingWidgetUninstalls default settings for the associated component.- Overrides:
uninstallDefaultsin 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 theLockBorderWidgetwidget.- Parameters:
comp- Component.- Returns:
trueif the specified component should show a lock icon,falseotherwise.
-