Top Description Fields Constructors Methods
com.calendarfx.view

public Class CalendarSelector

extends CalendarFXControl
Class Inheritance
Imports
com.calendarfx.model.Calendar, impl.com.calendarfx.view.CalendarSelectorSkin, javafx.beans.property.ObjectProperty, .SimpleObjectProperty, javafx.collections.FXCollections, .ObservableList, javafx.scene.control.Skin

A control for choosing a calendar from a list of calendars. Calendar Selector

Field Summary

Modifier and TypeField and Description
private final ObjectProperty<Calendar<T>>
private final ObservableList<Calendar<T>>

Constructor Summary

AccessConstructor and Description
public
CalendarSelector()

Constructs a new selector.

Method Summary

Modifier and TypeMethod and Description
public final ObjectProperty<Calendar<T>>

Returns:

the selected calendar
calendarProperty
()

A property used to store the current value of the control, the currently selected calendar.

protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

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

public final Calendar<T>

Returns:

the currently selected calendar
getCalendar
()

Returns the value of calendarProperty().

public final ObservableList<Calendar<T>>

Returns:

the list of calendars
getCalendars
()

The available list of calendars from which the user can select.

public final void
setCalendar(Calendar<T>
the selected calendar
calendar
)

Sets the value of calendarProperty().

Inherited from com.calendarfx.view.CalendarFXControl:
getPropertySheetItemsgetUserAgentStylesheet

Field Detail

calendarback to summary
private final ObjectProperty<Calendar<T>> calendar
calendarsback to summary
private final ObservableList<Calendar<T>> calendars

Constructor Detail

CalendarSelectorback to summary
public CalendarSelector()

Constructs a new selector.

Method Detail

calendarPropertyback to summary
public final ObjectProperty<Calendar<T>> calendarProperty()

A property used to store the current value of the control, the currently selected calendar.

Returns:ObjectProperty<Calendar<T>>

the selected calendar

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
getCalendarback to summary
public final Calendar<T> getCalendar()

Returns the value of calendarProperty().

Returns:Calendar<T>

the currently selected calendar

getCalendarsback to summary
public final ObservableList<Calendar<T>> getCalendars()

The available list of calendars from which the user can select.

Returns:ObservableList<Calendar<T>>

the list of calendars

setCalendarback to summary
public final void setCalendar(Calendar<T> calendar)

Sets the value of calendarProperty().

Parameters
calendar:Calendar<T>

the selected calendar