CanScan
Loading...
Searching...
No Matches
fr.softsf.canscan.ui.FlatLafTimePicker Class Reference

TimePicker component with FlatLaf styling applied and maintained. More...

+ Inheritance diagram for fr.softsf.canscan.ui.FlatLafTimePicker:
+ Collaboration diagram for fr.softsf.canscan.ui.FlatLafTimePicker:

Public Member Functions

 FlatLafTimePicker ()
 Creates a new FlatLafTimePicker with FlatLaf styling applied.
 
JTextField getInternalTextField ()
 Returns the internal JTextField of the TimePicker.
 
Dimension getPreferredSize ()
 Returns preferred size with height adjusted to standard text field height.
 
- Public Member Functions inherited from fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker
default void applyTheme ()
 Applies FlatLaf styling to the internal text field.
 
default Dimension computePreferredSize (Dimension original)
 Adjusts the given dimension to use the standard text field height.
 

Static Private Member Functions

static TimePickerSettings createSettings ()
 Configures TimePickerSettings with FlatLaf colors and borders.
 

Static Private Attributes

static final String TEXT_FIELD_BACKGROUND = "TextField.background"
 

Additional Inherited Members

- Public Attributes inherited from fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker
int TEXT_FIELD_HEIGHT = new JTextField().getPreferredSize().height
 

Detailed Description

TimePicker component with FlatLaf styling applied and maintained.

Provides: - FlatLaf-based colors and borders via customized TimePickerSettings. - Automatic application of UIManager defaults to the internal text field. - Preferred size adjusted to match standard text field height.

Constructor & Destructor Documentation

◆ FlatLafTimePicker()

fr.softsf.canscan.ui.FlatLafTimePicker.FlatLafTimePicker ( )

Creates a new FlatLafTimePicker with FlatLaf styling applied.

+ Here is the call graph for this function:

Member Function Documentation

◆ createSettings()

static TimePickerSettings fr.softsf.canscan.ui.FlatLafTimePicker.createSettings ( )
staticprivate

Configures TimePickerSettings with FlatLaf colors and borders.

◆ getInternalTextField()

JTextField fr.softsf.canscan.ui.FlatLafTimePicker.getInternalTextField ( )

Returns the internal JTextField of the TimePicker.

Implements fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker.

◆ getPreferredSize()

Dimension fr.softsf.canscan.ui.FlatLafTimePicker.getPreferredSize ( )

Returns preferred size with height adjusted to standard text field height.

+ Here is the call graph for this function:

Member Data Documentation

◆ TEXT_FIELD_BACKGROUND

final String fr.softsf.canscan.ui.FlatLafTimePicker.TEXT_FIELD_BACKGROUND = "TextField.background"
staticprivate

The documentation for this class was generated from the following file: