Module is.codion.swing.common.ui
Class UnderlineModifiedIndicator
java.lang.Object
is.codion.swing.common.ui.component.indicator.UnderlineModifiedIndicator
- All Implemented Interfaces:
ModifiedIndicator
Indicates modification by underlining the assocated label text.
Relies on
JLabel.setLabelFor(Component).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Integer> The type of underline to use to indicate a modified value Value type: Integer Default value:TextAttribute.UNDERLINE_LOW_DOTTEDValid values:TextAttribute.UNDERLINE_*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
-
Field Details
-
UNDERLINE_STYLE
The type of underline to use to indicate a modified value- Value type: Integer
- Default value:
TextAttribute.UNDERLINE_LOW_DOTTED - Valid values:
TextAttribute.UNDERLINE_*
-
-
Constructor Details
-
UnderlineModifiedIndicator
public UnderlineModifiedIndicator()
-
-
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
-