Top Description Fields Constructors Methods
com.calendarfx.view

public Class WeekFieldsView

extends CalendarFXControl
Class Inheritance
Imports
impl.com.calendarfx.view.WeekFieldsViewSkin, javafx.beans.property.ObjectProperty, .ReadOnlyIntegerProperty, .ReadOnlyIntegerWrapper, .ReadOnlyObjectProperty, .ReadOnlyObjectWrapper, .SimpleObjectProperty, javafx.beans.value.ObservableValue, javafx.collections.ObservableList, javafx.scene.control.Skin, org.controlsfx.control.PropertySheet, java.time.DayOfWeek, java.time.temporal.WeekFields, java.util.Optional

A control used for editing the values of a WeekFields instance. These fields are used for determine which weekday is considered the first day of the week. They also store the minimum number of days that are required by the first week of the year in order to be actually called a full week.

Field Summary

Modifier and TypeField and Description
private static final String
private final ReadOnlyObjectWrapper<DayOfWeek>
private final ReadOnlyIntegerWrapper
private final ObjectProperty<WeekFields>

Constructor Summary

AccessConstructor and Description
public
WeekFieldsView()

Constructs a new view.

Method Summary

Modifier and TypeMethod and Description
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final ReadOnlyObjectProperty<DayOfWeek>

Returns:

the first day of the week
firstDayOfWeekProperty
()

A read-only property storing the "first day of week" as specified by weekFieldsProperty().

public final DayOfWeek

Returns:

the first day of the week
getFirstDayOfWeek
()

Returns the value of firstDayOfWeekProperty().

public int

Returns:

the minimal days in first week value
getMinimalDaysInFirstWeek
()

Returns the value of minimalDaysInFirstWeekProperty().

public ObservableList<PropertySheet.Item>
getPropertySheetItems()

Overrides com.calendarfx.view.CalendarFXControl.getPropertySheetItems.

Returns a list of property items that can be shown by the PropertySheet of ControlsFX.

public final WeekFields

Returns:

the view's value / a week fields instance
getWeekFields
()

Returns the value of weekFieldsProperty().

public final ReadOnlyIntegerProperty

Returns:

the minimal days in first week value
minimalDaysInFirstWeekProperty
()

A read-only property storing the "minimal days in first week" as specified by weekFieldsProperty().

public final void
setWeekFields(WeekFields
the view's value / a week fields instance
fields
)

Sets the value of weekFieldsProperty().

private void
public final ObjectProperty<WeekFields>

Returns:

the view's value / a week fields instance
weekFieldsProperty
()

The property used to store the current value of this view.

Inherited from com.calendarfx.view.CalendarFXControl:
getUserAgentStylesheet

Field Detail

DEFAULT_STYLE_CLASSback to summary
private static final String DEFAULT_STYLE_CLASS
firstDayOfWeekback to summary
private final ReadOnlyObjectWrapper<DayOfWeek> firstDayOfWeek
minimalDaysInFirstWeekback to summary
private final ReadOnlyIntegerWrapper minimalDaysInFirstWeek
weekFieldsPropertyback to summary
private final ObjectProperty<WeekFields> weekFieldsProperty

Constructor Detail

WeekFieldsViewback to summary
public WeekFieldsView()

Constructs a new view.

Method Detail

createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Returns:Skin<?>

new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.

Annotations
@Override
firstDayOfWeekPropertyback to summary
public final ReadOnlyObjectProperty<DayOfWeek> firstDayOfWeekProperty()

A read-only property storing the "first day of week" as specified by weekFieldsProperty().

Returns:ReadOnlyObjectProperty<DayOfWeek>

the first day of the week

getFirstDayOfWeekback to summary
public final DayOfWeek getFirstDayOfWeek()

Returns the value of firstDayOfWeekProperty().

Returns:DayOfWeek

the first day of the week

getMinimalDaysInFirstWeekback to summary
public int getMinimalDaysInFirstWeek()

Returns the value of minimalDaysInFirstWeekProperty().

Returns:int

the minimal days in first week value

getPropertySheetItemsback to summary
public ObservableList<PropertySheet.Item> getPropertySheetItems()

Overrides com.calendarfx.view.CalendarFXControl.getPropertySheetItems.

Doc from com.calendarfx.view.CalendarFXControl.getPropertySheetItems.

Returns a list of property items that can be shown by the PropertySheet of ControlsFX.

Returns:ObservableList<PropertySheet.Item>

the property sheet items

Annotations
@Override
getWeekFieldsback to summary
public final WeekFields getWeekFields()

Returns the value of weekFieldsProperty().

Returns:WeekFields

the view's value / a week fields instance

minimalDaysInFirstWeekPropertyback to summary
public final ReadOnlyIntegerProperty minimalDaysInFirstWeekProperty()

A read-only property storing the "minimal days in first week" as specified by weekFieldsProperty().

Returns:ReadOnlyIntegerProperty

the minimal days in first week value

setWeekFieldsback to summary
public final void setWeekFields(WeekFields fields)

Sets the value of weekFieldsProperty().

Parameters
fields:WeekFields

the view's value / a week fields instance

updateReadOnyPropertiesback to summary
private void updateReadOnyProperties()
weekFieldsPropertyback to summary
public final ObjectProperty<WeekFields> weekFieldsProperty()

The property used to store the current value of this view.

Returns:ObjectProperty<WeekFields>

the view's value / a week fields instance