Top Fields Constructors Methods
impl.com.calendarfx.view

public Class AllDayViewSkin

extends DateControlSkin<AllDayView>
implements LoadDataSettingsProvider
Class Inheritance
All Implemented Interfaces
impl.com.calendarfx.view.LoadDataSettingsProvider
Imports
com.calendarfx.model.Calendar, .CalendarEvent, .CalendarSource, .Entry, com.calendarfx.util.LoggingDomain, com.calendarfx.view.AllDayEntryView, .AllDayView, .DraggedEntry, .EntryViewBase, impl.com.calendarfx.view.util.Placement, .TimeBoundsResolver, .Util, javafx.beans.InvalidationListener, javafx.geometry.Insets, javafx.scene.Group, .Node, javafx.scene.control.Control, javafx.scene.layout.HBox, .Priority, .Region, javafx.util.Callback, java.time.LocalDate, .ZoneId, java.time.temporal.ChronoUnit, java.util.ArrayList, .HashMap, .HashSet, .List, .Map, .Optional, .Set, java.util.logging.Level, java.util.stream.Collectors

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private final HBox
private final DataLoader
private final Group

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
addEntryViews(Entry<?> entry, String reason)

protected void
protected double
computeMinHeight(double
The width of the Skin, in case this value might dictate the minimum height.
width
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.SkinBase.computeMinHeight.

Computes the minimum allowable height of the Skin, based on the provided width.

protected double
computePrefHeight(double
the width that should be used if preferred height depends on it
width
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase.

private AllDayEntryView
protected void
protected void
protected void
protected void
protected void
protected void
protected void
private List<EntryViewBase<T extends DateControl>>
private int
findIndex(Entry<?> entry)

private Map<LocalDate, Entry<?>>
public List<CalendarSource>
public Control
private LocalDate
getDate(LocalDate startDate, int dayCount)

public LocalDate
public String
public LocalDate
public ZoneId
public boolean
protected void
layoutChildren(double
the x position
contentX
,
double
the y position
contentY
,
double
the width
contentWidth
,
double
the height
contentHeight
)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

protected void
private boolean
removeEntryViews(Entry<?> entry, String reason)

private void
private void
private void
updateRegion(Region region, int day)

Inherited from impl.com.calendarfx.view.DateControlSkin:
calendarVisibilityChangedisRelevantisRelevantzoneIdChanged

Field Detail

ALL_DAY_BACKGROUND_REGIONback to summary
private static final String ALL_DAY_BACKGROUND_REGION
ALL_DAY_BACKGROUND_REGION_TODAYback to summary
private static final String ALL_DAY_BACKGROUND_REGION_TODAY
ALL_DAY_BACKGROUND_REGION_WEEKENDback to summary
private static final String ALL_DAY_BACKGROUND_REGION_WEEKEND
containerback to summary
private final HBox container
dataLoaderback to summary
private final DataLoader dataLoader
entryViewGroupback to summary
private final Group entryViewGroup

Constructor Detail

AllDayViewSkinback to summary
public AllDayViewSkin(AllDayView view)

Method Detail

addEntryViewsback to summary
private void addEntryViews(Entry<?> entry, String reason)
calendarChangedback to summary
protected void calendarChanged(Calendar<T> calendar)

Overrides impl.com.calendarfx.view.DateControlSkin.calendarChanged.

Annotations
@Override
computeMinHeightback to summary
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinHeight.

Doc from javafx.scene.control.SkinBase.computeMinHeight.

Computes the minimum allowable height of the Skin, based on the provided width.

Parameters
width:double

The width of the Skin, in case this value might dictate the minimum height.

topInset:double

the pixel snapped top inset

rightInset:double

the pixel snapped right inset

bottomInset:double

the pixel snapped bottom inset

leftInset:double

the pixel snapped left inset

Returns:double

A double representing the minimum height of this Skin.

Annotations
@Override
computePrefHeightback to summary
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Doc from javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.

Parameters
width:double

the width that should be used if preferred height depends on it

topInset:double

the pixel snapped top inset

rightInset:double

the pixel snapped right inset

bottomInset:double

the pixel snapped bottom inset

leftInset:double

the pixel snapped left inset

Returns:double

the calculated preferred height

Annotations
@Override
doAddEntryViewback to summary
private AllDayEntryView doAddEntryView(Entry<?> entry)
entryCalendarChangedback to summary
protected void entryCalendarChanged(CalendarEvent evt)

Overrides impl.com.calendarfx.view.DateControlSkin.entryCalendarChanged.

Annotations
@Override
entryFullDayChangedback to summary
protected void entryFullDayChanged(CalendarEvent evt)

Overrides impl.com.calendarfx.view.DateControlSkin.entryFullDayChanged.

Annotations
@Override
entryIntervalChangedback to summary
protected void entryIntervalChanged(CalendarEvent evt)

Overrides impl.com.calendarfx.view.DateControlSkin.entryIntervalChanged.

Annotations
@Override
entryLocationChangedback to summary
protected void entryLocationChanged(CalendarEvent evt)

Overrides impl.com.calendarfx.view.DateControlSkin.entryLocationChanged.

Annotations
@Override
entryRecurrenceRuleChangedback to summary
protected void entryRecurrenceRuleChanged(CalendarEvent evt)

Overrides impl.com.calendarfx.view.DateControlSkin.entryRecurrenceRuleChanged.

Annotations
@Override
entryTitleChangedback to summary
protected void entryTitleChanged(CalendarEvent evt)

Overrides impl.com.calendarfx.view.DateControlSkin.entryTitleChanged.

Annotations
@Override
entryUserObjectChangedback to summary
protected void entryUserObjectChanged(CalendarEvent evt)

Overrides impl.com.calendarfx.view.DateControlSkin.entryUserObjectChanged.

Annotations
@Override
findEntryViewsback to summary
private List<EntryViewBase<T extends DateControl>> findEntryViews(Entry<?> entry)
findIndexback to summary
private int findIndex(Entry<?> entry)
findRecurrenceEntriesback to summary
private Map<LocalDate, Entry<?>> findRecurrenceEntries(Entry<?> entry)
getCalendarSourcesback to summary
public List<CalendarSource> getCalendarSources()

Implements impl.com.calendarfx.view.LoadDataSettingsProvider.getCalendarSources.

Annotations
@Override
getControlback to summary
public Control getControl()

Implements impl.com.calendarfx.view.LoadDataSettingsProvider.getControl.

Annotations
@Override
getDateback to summary
private LocalDate getDate(LocalDate startDate, int dayCount)
getLoadEndDateback to summary
public LocalDate getLoadEndDate()

Implements impl.com.calendarfx.view.LoadDataSettingsProvider.getLoadEndDate.

Annotations
@Override
getLoaderNameback to summary
public String getLoaderName()

Implements impl.com.calendarfx.view.LoadDataSettingsProvider.getLoaderName.

Annotations
@Override
getLoadStartDateback to summary
public LocalDate getLoadStartDate()

Implements impl.com.calendarfx.view.LoadDataSettingsProvider.getLoadStartDate.

Annotations
@Override
getZoneIdback to summary
public ZoneId getZoneId()

Implements impl.com.calendarfx.view.LoadDataSettingsProvider.getZoneId.

Annotations
@Override
isCalendarVisibleback to summary
public boolean isCalendarVisible(Calendar<T> calendar)

Implements impl.com.calendarfx.view.LoadDataSettingsProvider.isCalendarVisible.

Annotations
@Override
layoutChildrenback to summary
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Parameters
contentX:double

the x position

contentY:double

the y position

contentWidth:double

the width

contentHeight:double

the height

Annotations
@Override
refreshDataback to summary
protected void refreshData()

Overrides impl.com.calendarfx.view.DateControlSkin.refreshData.

Annotations
@Override
removeEntryViewsback to summary
private boolean removeEntryViews(Entry<?> entry, String reason)
updateBackgroundsback to summary
private void updateBackgrounds()
updateEntriesback to summary
private void updateEntries(String reason)
updateRegionback to summary
private void updateRegion(Region region, int day)