Module is.codion.plugin.flatlaf
Class FlatLafValidationIndicator
java.lang.Object
is.codion.plugin.flatlaf.indicator.FlatLafValidationIndicator
- All Implemented Interfaces:
ValidationIndicator
A FlatLaf based ValidationIndicator implementation, using the FlatLaf 'outline' client property.
FlatLaf carries a value for each of the two severities — FlatClientProperties.OUTLINE_ERROR and
FlatClientProperties.OUTLINE_WARNING — so both are drawn as the outline they should be, rather than
borrowing the background the way the look and feel agnostic fallback has to.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.indicator.ValidationIndicator
INDICATOR_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenable(JComponent component, ObservableState valid, ObservableState warned) Enables the validation indicator for the given component
-
Constructor Details
-
FlatLafValidationIndicator
public FlatLafValidationIndicator()
-
-
Method Details
-
enable
Description copied from interface:ValidationIndicatorEnables the validation indicator for the given component- Specified by:
enablein interfaceValidationIndicator- Parameters:
component- the componentvalid- the valid state observer, false while the value may not be savedwarned- the warned state observer, true while the value carries a warning. Independent of [valid] — a value can be both, in which case the invalid presentation wins
-