Module is.codion.swing.common.ui
Class SwapColorsModifiedIndicator
java.lang.Object
is.codion.swing.common.ui.component.indicator.SwapColorsModifiedIndicator
- All Implemented Interfaces:
ModifiedIndicator
Indicates modification by swapping the colors of the assocated label text.
Relies on
JLabel.setLabelFor(Component).- See Also:
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.indicator.ModifiedIndicator
INDICATOR_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenable(JComponent component, ObservableState modified) Enables the modified indicator for the given component, based on the given modified state
-
Constructor Details
-
SwapColorsModifiedIndicator
public SwapColorsModifiedIndicator()
-
-
Method Details
-
enable
Description copied from interface:ModifiedIndicatorEnables the modified indicator for the given component, based on the given modified state- Specified by:
enablein interfaceModifiedIndicator- Parameters:
component- the componentmodified- the modified state observer
-