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

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

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

Public Member Functions

 FlatLafDatePicker ()
 Creates a new FlatLafDatePicker with FlatLaf styling applied.
 
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 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 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FlatLafDatePicker()

fr.softsf.canscan.ui.FlatLafDatePicker.FlatLafDatePicker ( )

Creates a new FlatLafDatePicker with FlatLaf styling applied.

+ Here is the call graph for this function:

Member Function Documentation

◆ createSettings()

static DatePickerSettings fr.softsf.canscan.ui.FlatLafDatePicker.createSettings ( )
staticprivate

Configures DatePickerSettings with FlatLaf colors and borders.

◆ getInternalTextField()

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

Returns the internal JTextField of the DatePicker.

Implements fr.softsf.canscan.ui.IFlatLafStyledForLGoodDatePicker.

◆ getPreferredSize()

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

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

+ Here is the call graph for this function:

Member Data Documentation

◆ BUTTON_BACKGROUND

final String fr.softsf.canscan.ui.FlatLafDatePicker.BUTTON_BACKGROUND = "Button.background"
staticprivate

◆ BUTTON_FOREGROUND

final String fr.softsf.canscan.ui.FlatLafDatePicker.BUTTON_FOREGROUND = "Button.foreground"
staticprivate

◆ TEXT_FIELD_BACKGROUND

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

◆ TEXT_FIELD_FOREGROUND

final String fr.softsf.canscan.ui.FlatLafDatePicker.TEXT_FIELD_FOREGROUND = "TextField.foreground"
staticprivate

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