Top Inners Fields Constructors Methods
impl.com.calendarfx.view

public Class MonthSheetViewSkin

extends DateControlSkin<MonthSheetView>
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.DateControl.DateDetailsParameter, .DateSelectionModel, .MonthSheetView, .MonthSheetView.DateCell, .MonthSheetView.WeekDayLayoutStrategy, javafx.beans.InvalidationListener, .Observable, javafx.beans.value.ChangeListener, javafx.event.EventHandler, .WeakEventHandler, javafx.geometry.Bounds, javafx.scene.Node, javafx.scene.control.Control, javafx.scene.input.KeyEvent, .MouseButton, .MouseEvent, javafx.scene.layout.ColumnConstraints, .GridPane, .Priority, .Region, .RowConstraints, javafx.util.Callback, java.time.DayOfWeek, .LocalDate, .YearMonth, .ZoneId, java.util.ArrayList, .Collections, .HashMap, .List, .Map, java.util.logging.Level

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final EventHandler<MouseEvent>
private final Map<LocalDate, MonthSheetView.DateCell>
private final DataLoader
private final Map<LocalDate, List<Entry<?>>>
private final Map<LocalDate, MonthSheetViewSkin.Position>
private final GridPane
private final Map<MonthSheetViewSkin.Position, MonthSheetView.DateCell>
private final WeakEventHandler<MouseEvent>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private MonthSheetView.DateCell
private void
private void
buildCells(YearMonth yearMonth, int colIndex)

private void
private Node
protected void
protected void
protected void
protected void
protected void
protected void
public List<CalendarSource>
public Control
public LocalDate
public String
public LocalDate
public ZoneId
public boolean
private void
private void
private void
private void
private void
Inherited from impl.com.calendarfx.view.DateControlSkin:
entryLocationChangedentryTitleChangedentryUserObjectChangedisRelevantisRelevantrefreshDatazoneIdChanged

Field Detail

cellClickedHandlerback to summary
private final EventHandler<MouseEvent> cellClickedHandler
cellMapback to summary
private final Map<LocalDate, MonthSheetView.DateCell> cellMap
dataLoaderback to summary
private final DataLoader dataLoader
dataMapback to summary
private final Map<LocalDate, List<Entry<?>>> dataMap
dateToPositionMapback to summary
private final Map<LocalDate, MonthSheetViewSkin.Position> dateToPositionMap
gridback to summary
private final GridPane grid
positionToDateCellMapback to summary
private final Map<MonthSheetViewSkin.Position, MonthSheetView.DateCell> positionToDateCellMap
weakCellClickedHandlerback to summary
private final WeakEventHandler<MouseEvent> weakCellClickedHandler

Constructor Detail

MonthSheetViewSkinback to summary
public MonthSheetViewSkin(MonthSheetView control)

Method Detail

buildCellback to summary
private MonthSheetView.DateCell buildCell(LocalDate date)
buildCellsback to summary
private void buildCells()
buildCellsback to summary
private void buildCells(YearMonth yearMonth, int colIndex)
buildEmptyCellBottomback to summary
private void buildEmptyCellBottom(List<Node> cells)
buildHeaderCellback to summary
private Node buildHeaderCell(YearMonth yearMonth)
calendarChangedback to summary
protected void calendarChanged(Calendar<T> calendar)

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

Annotations
@Override
calendarVisibilityChangedback to summary
protected void calendarVisibilityChanged()

Overrides impl.com.calendarfx.view.DateControlSkin.calendarVisibilityChanged.

Annotations
@Override
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
entryRecurrenceRuleChangedback to summary
protected void entryRecurrenceRuleChanged(CalendarEvent evt)

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

Annotations
@Override
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
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
showDateDetailsback to summary
private void showDateDetails(LocalDate date)
updateEntriesback to summary
private void updateEntries(String reason)
updateRowConstraintsback to summary
private void updateRowConstraints()
updateSelectedback to summary
private void updateSelected()
updateTodayback to summary
private void updateToday()
impl.com.calendarfx.view back to summary

private final Class MonthSheetViewSkin.Position

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
private
Position(int column, int row)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public int
public int
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
pack-priv int column
rowback to summary
pack-priv int row

Constructor Detail

Positionback to summary
private Position(int column, int row)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getColumnback to summary
public int getColumn()
getRowback to summary
public int getRow()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override