Top Description Fields Constructors Methods
com.calendarfx.view.print

public abstract Class ViewTypeControl

extends CalendarFXControl
Class Inheritance
Known Direct Subclasses
com.calendarfx.view.print.OptionsView, com.calendarfx.view.print.PaperView, com.calendarfx.view.print.PrintView, com.calendarfx.view.print.TimeRangeField, com.calendarfx.view.print.TimeRangeView
Imports
com.calendarfx.view.CalendarFXControl, javafx.beans.property.ObjectProperty, .SimpleObjectProperty, javafx.beans.value.ObservableValue, javafx.collections.ObservableList, org.controlsfx.control.PropertySheet, java.util.Objects, .Optional

The abstract superclass of all controls inside the print package that are supporting the different view types listed inside the ViewType enumerator.

Field Summary

Modifier and TypeField and Description
private static final String
private final ObjectProperty<ViewType>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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 ViewType

Returns:

the current view type
getViewType
()

Returns the value of viewTypeProperty().

public final void
setViewType(ViewType
the new view type
type
)

Sets the value of viewTypeProperty().

public final ObjectProperty<ViewType>

Returns:

the current view type
viewTypeProperty
()

A property used to store the currently active view type (e.g. "day").

Inherited from com.calendarfx.view.CalendarFXControl:
getUserAgentStylesheet

Field Detail

VIEW_TYPE_CONTROLback to summary
private static final String VIEW_TYPE_CONTROL
viewTypeback to summary
private final ObjectProperty<ViewType> viewType

Constructor Detail

ViewTypeControlback to summary
public ViewTypeControl()

Method Detail

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

getViewTypeback to summary
public final ViewType getViewType()

Returns the value of viewTypeProperty().

Returns:ViewType

the current view type

setViewTypeback to summary
public final void setViewType(ViewType type)

Sets the value of viewTypeProperty().

Parameters
type:ViewType

the new view type

viewTypePropertyback to summary
public final ObjectProperty<ViewType> viewTypeProperty()

A property used to store the currently active view type (e.g. "day").

Returns:ObjectProperty<ViewType>

the current view type