Class SwapColorsModifiedIndicator

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

public final class SwapColorsModifiedIndicator extends Object implements ModifiedIndicator
Indicates modification by swapping the colors of the assocated label text. Relies on JLabel.setLabelFor(Component).
See Also:
  • Constructor Details

    • SwapColorsModifiedIndicator

      public SwapColorsModifiedIndicator()
  • 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