Class LockBorderWidget
- java.lang.Object
-
- org.pushingpixels.radiance.theming.api.RadianceThemingWidget<javax.swing.text.JTextComponent>
-
- org.pushingpixels.radiance.theming.internal.widget.text.LockBorderWidget
-
public class LockBorderWidget extends RadianceThemingWidget<javax.swing.text.JTextComponent>
Adds visual indication on non-editable text components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classLockBorderWidget.LockBorderBorder with "lock" indication.
-
Field Summary
Fields Modifier and Type Field Description private booleanisUninstallingtrueif this widget is uninstalling.private static java.lang.StringORIGINAL_BORDERName for client property that stores the original border.private java.beans.PropertyChangeListenerpropertyChangeListenerListens 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 Constructor Description LockBorderWidget()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanhasLockIcon(java.awt.Component comp)Checks whether the specified component should show a lock icon.voidinstallDefaults()Installs default settings for the associated component.voidinstallListeners()Installs listeners for the associated component.private voidinstallLockBorder()Installs the lock border on the associated component.private voidrestoreOriginalBorder()Restores the original border on the associated component.voiduninstallDefaults()Uninstalls default settings for the associated component.voiduninstallListeners()Uninstalls listeners for the associated component.voiduninstallUI()Uninstalls UI on the associated component.-
Methods inherited from class org.pushingpixels.radiance.theming.api.RadianceThemingWidget
installComponents, installUI, setComponent, uninstallComponents
-
-
-
-
Field Detail
-
propertyChangeListener
private java.beans.PropertyChangeListener propertyChangeListener
Listens on all properties to decide whether a lock border should be shown / hidden.
-
isUninstalling
private boolean isUninstalling
trueif this widget is uninstalling. Fix for defect 7.
-
ORIGINAL_BORDER
private static final java.lang.String ORIGINAL_BORDER
Name for client property that stores the original border.- See Also:
- Constant Field Values
-
-
Method Detail
-
installListeners
public void installListeners()
Description copied from class:RadianceThemingWidgetInstalls listeners for the associated component.- Overrides:
installListenersin classRadianceThemingWidget<javax.swing.text.JTextComponent>
-
uninstallListeners
public void uninstallListeners()
Description copied from class:RadianceThemingWidgetUninstalls listeners for the associated component.- Overrides:
uninstallListenersin classRadianceThemingWidget<javax.swing.text.JTextComponent>
-
uninstallUI
public void uninstallUI()
Description copied from class:RadianceThemingWidgetUninstalls UI on the associated component.- Overrides:
uninstallUIin classRadianceThemingWidget<javax.swing.text.JTextComponent>
-
installDefaults
public void installDefaults()
Description copied from class:RadianceThemingWidgetInstalls default settings for the associated component.- Overrides:
installDefaultsin classRadianceThemingWidget<javax.swing.text.JTextComponent>
-
uninstallDefaults
public void uninstallDefaults()
Description copied from class:RadianceThemingWidgetUninstalls default settings for the associated component.- Overrides:
uninstallDefaultsin classRadianceThemingWidget<javax.swing.text.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
private static boolean hasLockIcon(java.awt.Component comp)
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.
-
-