Top Fields Constructors Methods
com.calendarfx.view

public Class ResourceCalendarView<T>

extends DayViewBase
Class Inheritance
Imports
com.calendarfx.model.Marker, impl.com.calendarfx.view.ResourceCalendarViewSkin, javafx.beans.binding.Bindings, javafx.beans.property.BooleanProperty, .ObjectProperty, .ReadOnlyMapProperty, .ReadOnlyMapWrapper, .SimpleBooleanProperty, .SimpleObjectProperty, javafx.collections.FXCollections, .ListChangeListener, .ObservableList, .ObservableMap, javafx.scene.Node, javafx.scene.control.Label, .Skin, javafx.util.Callback

Field Summary

Modifier and TypeField and Description
private final ReadOnlyMapProperty<T, DayView>
private final ObjectProperty<Callback<T, Node>>
private final ObservableList<Marker>
private final ObservableList<T>
private final BooleanProperty
private final BooleanProperty
Inherited from com.calendarfx.view.DayViewBase:
MILLIS_PER_HOUR

Constructor Summary

AccessConstructor and Description
public

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 ReadOnlyMapProperty<T, DayView>
public final DayView
getDayView(T resource)

public final ObservableMap<K, V>
public final Callback<T, Node>
public final ObservableList<Marker>

Returns:

visible horizontal markers
getMarkers
()

A list of marker lines that can be added to the view.

public final ObservableList<T>
public final ObjectProperty<Callback<T, Node>>
public final boolean
public boolean
private void
partialUnbinding(DayView otherControl)

public final void
setHeaderFactory(Callback<T, Node> headerFactory)

public final void
setShowScrollBar(boolean showScrollBar)

public void
setShowTimeScale(boolean showTimeScale)

public final BooleanProperty
public BooleanProperty

Returns:

true if the scale should be shown
showTimeScaleProperty
()

Controls whether the timescale should be shown on the left-hand side or not.

Inherited from com.calendarfx.view.DayViewBase:
bindearliestTimeUsedPropertyearlyLateHoursStrategyPropertyenableCurrentTimeCirclePropertyenableCurrentTimeMarkerPropertyenableStartAndEndTimesFlipPropertyentryViewAvailabilityEditingBehaviourPropertyentryViewAvailabilityEditingOpacityPropertyentryWidthPercentagePropertygetEarliestTimeUsedgetEarlyLateHoursStrategygetEntryViewAvailabilityEditingBehaviourgetEntryViewAvailabilityEditingOpacitygetEntryWidthPercentagegetGridLineColorgetGridLinesgetGridTypegetHourHeightgetHourHeightCompressedgetHoursLayoutStrategygetInstantAtgetInstantAtgetLassoColorgetLassoEndgetLassoStartgetLatestTimeUsedgetLocationgetLocationgetMaxHourHeightgetMinHourHeightgetOnLassoFinishedgetOverlapResolutionStrategygetPropertySheetItemsgetScrollTimegetVisibleHoursgetZonedDateTimegetZonedDateTimeAtgetZonedDateTimeAtgetZonedDateTimeEndgetZonedDateTimeMaxgetZonedDateTimeMingetZonedDateTimeStartgridLineColorPropertygridLinesPropertygridTypePropertyhourHeightCompressedPropertyhourHeightPropertyhoursLayoutStrategyPropertyinstallDefaultLassoFinishedBehaviourisEnableCurrentCircleMarkerisEnableCurrentTimeMarkerisEnableStartAndEndTimesFlipisScrollingEnabledisShowCurrentTimeMarkerisShowCurrentTimeTodayMarkerisTrimTimeBoundslassoColorPropertylassoEndPropertylassoStartPropertylatestTimeUsedPropertymaxHourHeightPropertyminHourHeightPropertyonLassoFinishedPropertyoverlapResolutionStrategyPropertyscrollingEnabledPropertyscrollTimePropertysetEarlyLateHoursStrategysetEnableCurrentTimeCirclesetEnableCurrentTimeMarkersetEnableStartAndEndTimesFlipsetEntryViewAvailabilityEditingBehavioursetEntryViewAvailabilityEditingOpacitysetEntryWidthPercentagesetGridLineColorsetGridLinessetGridTypesetHourHeightsetHourHeightCompressedsetHoursLayoutStrategysetLassoColorsetLassoEndsetLassoStartsetMaxHourHeightsetMinHourHeightsetOnLassoFinishedsetOverlapResolutionStrategysetScrollingEnabledsetScrollTimesetTrimTimeBoundssetVisibleHoursshowCurrentTimeMarkerPropertyshowCurrentTimeTodayMarkerPropertytrimTimeBoundsPropertyunbindvisibleHoursProperty

Field Detail

dayViewMapback to summary
private final ReadOnlyMapProperty<T, DayView> dayViewMap
headerFactoryback to summary
private final ObjectProperty<Callback<T, Node>> headerFactory
markersback to summary
private final ObservableList<Marker> markers
resourcesback to summary
private final ObservableList<T> resources
showScrollBarback to summary
private final BooleanProperty showScrollBar
showTimeScaleback to summary
private final BooleanProperty showTimeScale

Constructor Detail

ResourceCalendarViewback to summary
public ResourceCalendarView()

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
dayViewMapPropertyback to summary
public final ReadOnlyMapProperty<T, DayView> dayViewMapProperty()
getDayViewback to summary
public final DayView getDayView(T resource)
getDayViewMapback to summary
public final ObservableMap<K, V> getDayViewMap()
getHeaderFactoryback to summary
public final Callback<T, Node> getHeaderFactory()
getMarkersback to summary
public final ObservableList<Marker> getMarkers()

A list of marker lines that can be added to the view.

Returns:ObservableList<Marker>

visible horizontal markers

getResourcesback to summary
public final ObservableList<T> getResources()
headerFactoryPropertyback to summary
public final ObjectProperty<Callback<T, Node>> headerFactoryProperty()
isShowScrollBarback to summary
public final boolean isShowScrollBar()
isShowTimeScaleback to summary
public boolean isShowTimeScale()
partialUnbindingback to summary
private void partialUnbinding(DayView otherControl)
setHeaderFactoryback to summary
public final void setHeaderFactory(Callback<T, Node> headerFactory)
setShowScrollBarback to summary
public final void setShowScrollBar(boolean showScrollBar)
setShowTimeScaleback to summary
public void setShowTimeScale(boolean showTimeScale)
showScrollBarPropertyback to summary
public final BooleanProperty showScrollBarProperty()
showTimeScalePropertyback to summary
public BooleanProperty showTimeScaleProperty()

Controls whether the timescale should be shown on the left-hand side or not.

Returns:BooleanProperty

true if the scale should be shown