Top Description Fields Constructors Methods
com.dlsc.gemsfx

public Class DayOfWeekPicker

extends SelectionBox<DayOfWeek>
Class Inheritance
Imports
com.dlsc.gemsfx.util.SimpleStringConverter, javafx.scene.control.Button, .SelectionMode, javafx.scene.layout.VBox, java.time.DayOfWeek, .LocalDate, java.time.format.TextStyle, java.time.temporal.WeekFields, java.util.ArrayList, .Collections, .Comparator, .HashSet, .List, .Locale, .Set

A custom control that allows users to select days of the week. It provides support for two SelectionMode: single and multiple .
See Also
SelectionBox

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private VBox
public List<DayOfWeek>
getLocalizedDayOrder()

Get the localized order of DayOfWeek.

public List<DayOfWeek>

Returns:

a list of DayOfWeek objects representing the weekdays.
getWeekdays
()

Retrieves a list of the weekdays by excluding weekend days.

public List<DayOfWeek>

Returns:

a list of DayOfWeek objects representing the weekend days.
getWeekendDays
()

Retrieves a list of the weekend days based on the current locale.

public boolean

Returns:

true if the selected days match exactly with the weekdays, otherwise false
isOnlyWeekdaysSelected
()

Checks if only weekdays are selected in the current selection model.

public boolean

Returns:

true if the selected days match exactly with the weekend days, otherwise false
isOnlyWeekendsSelected
()

Checks if only weekend days are selected in the current selection model.

public boolean

Returns:

true if all days are selected, otherwise false
isSelectedAll
()

Checks if all days are selected in the current selection model.

private List<List<DayOfWeek>>
Inherited from com.dlsc.gemsfx.SelectionBox:
animationEnabledPropertyautoHideOnSelectionPropertybottomPropertycreateDefaultSkincreateExtraButtoncreateExtraButtoncurrentSelectionModePropertygetBottomgetClassCssMetaDatagetControlCssMetaDatagetCurrentSelectionModegetGraphicgetItemConvertergetItemsgetLeftgetOnHiddengetOnHidinggetOnShowinggetOnShowngetPlaceholdergetPromptTextgetRightgetSelectedItemsConvertergetSelectionModelgetTopgetUserAgentStylesheetgraphicPropertyhideisAnimationEnabledisAutoHideOnSelectionisReadOnlyitemConverterPropertyitemsPropertyleftPropertyonHiddenPropertyonHidingPropertyonShowingPropertyonShownPropertyplaceholderPropertypromptTextPropertyreadOnlyPropertyrightPropertyselectedItemsConverterPropertyselectionModelPropertysetAnimationEnabledsetAutoHideOnSelectionsetBottomsetGraphicsetItemConvertersetItemssetLeftsetOnHiddensetOnHidingsetOnShowingsetOnShownsetPlaceholdersetPromptTextsetReadOnlysetRightsetSelectedItemsConvertersetSelectionModelsetTopshowtopProperty

Field Detail

DEFAULT_STYLE_CLASSback to summary
private static final String DEFAULT_STYLE_CLASS

Hides com.dlsc.gemsfx.SelectionBox.DEFAULT_STYLE_CLASS.

Constructor Detail

DayOfWeekPickerback to summary
public DayOfWeekPicker()

Method Detail

createExtraButtonsBoxback to summary
private VBox createExtraButtonsBox()

Hides com.dlsc.gemsfx.SelectionBox.createExtraButtonsBox.

getLocalizedDayOrderback to summary
public List<DayOfWeek> getLocalizedDayOrder()

Get the localized order of DayOfWeek.

getWeekdaysback to summary
public List<DayOfWeek> getWeekdays()

Retrieves a list of the weekdays by excluding weekend days.

Returns:List<DayOfWeek>

a list of DayOfWeek objects representing the weekdays.

getWeekendDaysback to summary
public List<DayOfWeek> getWeekendDays()

Retrieves a list of the weekend days based on the current locale.

Returns:List<DayOfWeek>

a list of DayOfWeek objects representing the weekend days.

isOnlyWeekdaysSelectedback to summary
public boolean isOnlyWeekdaysSelected()

Checks if only weekdays are selected in the current selection model.

Returns:boolean

true if the selected days match exactly with the weekdays, otherwise false

isOnlyWeekendsSelectedback to summary
public boolean isOnlyWeekendsSelected()

Checks if only weekend days are selected in the current selection model.

Returns:boolean

true if the selected days match exactly with the weekend days, otherwise false

isSelectedAllback to summary
public boolean isSelectedAll()

Checks if all days are selected in the current selection model.

Returns:boolean

true if all days are selected, otherwise false

mergeConsecutiveItemback to summary
private List<List<DayOfWeek>> mergeConsecutiveItem(List<DayOfWeek> selectedDays)