Class UnderlineModifiedIndicator

java.lang.Object
is.codion.swing.common.ui.component.indicator.UnderlineModifiedIndicator
All Implemented Interfaces:
ModifiedIndicator

public final class UnderlineModifiedIndicator extends Object implements ModifiedIndicator
Indicates modification by underlining the assocated label text. Relies on JLabel.setLabelFor(Component).
See Also:
  • Field Details

  • Constructor Details

    • UnderlineModifiedIndicator

      public UnderlineModifiedIndicator()
  • Method Details

    • enable

      public void enable(JComponent component, ObservableState modified)
      Description copied from interface: ModifiedIndicator
      Enables the modified indicator for the given component, based on the given modified state
      Specified by:
      enable in interface ModifiedIndicator
      Parameters:
      component - the component
      modified - the modified state observer