DatePicker component with FlatLaf styling applied and maintained. More...
Public Member Functions | |
| FlatLafDatePicker () | |
| Creates a new FlatLafDatePicker with FlatLaf styling applied. | |
| final void | applyTheme () |
| Applies the FlatLaf theme. | |
| JTextField | getInternalTextField () |
| Returns the internal JTextField of the DatePicker. | |
| Dimension | getPreferredSize () |
| Returns preferred size with height adjusted to standard text field height. | |
| Public Member Functions inherited from fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker | |
| default Dimension | computePreferredSize (Dimension original) |
| Adjusts the given dimension to use the standard text field height. | |
Static Private Member Functions | |
| static DatePickerSettings | createSettings () |
| Configures DatePickerSettings with FlatLaf colors and borders. | |
Static Private Attributes | |
| static final String | BUTTON_BACKGROUND = "Button.background" |
| static final String | BUTTON_FOREGROUND = "Button.foreground" |
| static final String | TEXT_FIELD_BACKGROUND = "TextField.background" |
| static final String | TEXT_FIELD_FOREGROUND = "TextField.foreground" |
Additional Inherited Members | |
| Public Attributes inherited from fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker | |
| int | TEXT_FIELD_HEIGHT = new JTextField().getPreferredSize().height |
DatePicker component with FlatLaf styling applied and maintained.
Provides: - FlatLaf-based colors and borders via customized DatePickerSettings. - Automatic application of UIManager defaults to the internal text field and calendar. - Preferred size adjusted to match standard text field height.
| fr.softsf.canscan.ui.FlatLafDatePicker.FlatLafDatePicker | ( | ) |
Creates a new FlatLafDatePicker with FlatLaf styling applied.
| final void fr.softsf.canscan.ui.FlatLafDatePicker.applyTheme | ( | ) |
Applies the FlatLaf theme.
Marked final to prevent MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR.
Implements fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker.
|
staticprivate |
Configures DatePickerSettings with FlatLaf colors and borders.
| JTextField fr.softsf.canscan.ui.FlatLafDatePicker.getInternalTextField | ( | ) |
Returns the internal JTextField of the DatePicker.
Implements fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker.
| Dimension fr.softsf.canscan.ui.FlatLafDatePicker.getPreferredSize | ( | ) |
Returns preferred size with height adjusted to standard text field height.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |