Class LockBorderWidget


  • public class LockBorderWidget
    extends RadianceThemingWidget<javax.swing.text.JTextComponent>
    Adds visual indication on non-editable text components.
    • 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
        true if 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
    • Constructor Detail

      • LockBorderWidget

        public LockBorderWidget()
    • Method Detail

      • 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 the LockBorderWidget widget.
        Parameters:
        comp - Component.
        Returns:
        true if the specified component should show a lock icon, false otherwise.