Class AgendaDaysFromDisplayedSkin
java.lang.Object
javafx.scene.control.SkinBase<Agenda>
jfxtras.internal.scene.control.skin.agenda.AgendaDaysFromDisplayedSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<Agenda>, AgendaSkin
- Author:
- Tom Eugelink
-
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<Integer> daysAfterFurthestPropertyfinal javafx.beans.property.ObjectProperty<Integer> daysBeforeFurthestPropertyfinal javafx.beans.property.ObjectProperty<Double> snapToMinutes I am clueless why the Integer version of this property gets a double pushed in (which results in a ClassCastException) -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertClickInSceneToDateTime(double x, double y) final javafx.beans.property.ObjectProperty<Integer> daysAfterFurthestPropertyfinal javafx.beans.property.ObjectProperty<Integer> daysBeforeFurthestPropertyAssign a calendar to each day, so it knows what it must draw.voiddispose()static List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> This method should delegate toNode.getClassCssMetaData()so that a Node's CssMetaData can be accessed without the need for reflection.final intGets the value of thedaysAfterFurthestproperty.final intGets the value of thedaysBeforeFurthestproperty.javafx.scene.layout.PanegetNodeForPopup(Agenda.Appointment appointment) Finds rendered node for appointment.final doublevoidprint(javafx.print.PrinterJob job) Prints the current skin using the given printer job.protected voidReconstruct the UI partvoidrefresh()Complete refreshfinal voidsetDaysAfterFurthest(int value) Sets the value of thedaysAfterFurthestproperty.final voidsetDaysBeforeFurthest(int value) Sets the value of thedaysBeforeFurthestproperty.final voidsetSnapToMinutes(double value) voidHave all days reconstruct the appointmentsfinal javafx.beans.property.ObjectProperty<Double> snapToMinutes I am clueless why the Integer version of this property gets a double pushed in (which results in a ClassCastException)withDaysAfterFurthest(int value) withDaysBeforeFurthest(int value) withSnapToMinutes(double value) Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Property Details
-
daysBeforeFurthest
daysBeforeFurthestProperty- See Also:
-
daysAfterFurthest
daysAfterFurthestProperty- See Also:
-
snapToMinutes
snapToMinutes I am clueless why the Integer version of this property gets a double pushed in (which results in a ClassCastException)- See Also:
-
-
Field Details
-
control
-
borderPane
protected javafx.scene.layout.BorderPane borderPane
-
-
Constructor Details
-
AgendaDaysFromDisplayedSkin
-
-
Method Details
-
reconstruct
protected void reconstruct()Reconstruct the UI part -
determineDisplayedLocalDates
-
daysBeforeFurthestProperty
daysBeforeFurthestProperty- Returns:
- the
daysBeforeFurthestproperty - See Also:
-
setDaysBeforeFurthest
public final void setDaysBeforeFurthest(int value) Sets the value of thedaysBeforeFurthestproperty.- Property description:
- daysBeforeFurthestProperty
- Parameters:
value- the value for thedaysBeforeFurthestproperty- See Also:
-
getDaysBeforeFurthest
public final int getDaysBeforeFurthest()Gets the value of thedaysBeforeFurthestproperty.- Property description:
- daysBeforeFurthestProperty
- Returns:
- the value of the
daysBeforeFurthestproperty - See Also:
-
withDaysBeforeFurthest
-
daysAfterFurthestProperty
daysAfterFurthestProperty- Returns:
- the
daysAfterFurthestproperty - See Also:
-
setDaysAfterFurthest
public final void setDaysAfterFurthest(int value) Sets the value of thedaysAfterFurthestproperty.- Property description:
- daysAfterFurthestProperty
- Parameters:
value- the value for thedaysAfterFurthestproperty- See Also:
-
getDaysAfterFurthest
public final int getDaysAfterFurthest()Gets the value of thedaysAfterFurthestproperty.- Property description:
- daysAfterFurthestProperty
- Returns:
- the value of the
daysAfterFurthestproperty - See Also:
-
withDaysAfterFurthest
-
getClassCssMetaData
- Returns:
- The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
-
getCssMetaData
This method should delegate toNode.getClassCssMetaData()so that a Node's CssMetaData can be accessed without the need for reflection.- Returns:
- The CssMetaData associated with this node, which may include the CssMetaData of its super classes.
-
dispose
public void dispose()- Specified by:
disposein interfacejavafx.scene.control.Skin<T>- Overrides:
disposein classjavafx.scene.control.SkinBase<Agenda>
-
setupAppointments
public void setupAppointments()Have all days reconstruct the appointments- Specified by:
setupAppointmentsin interfaceAgendaSkin
-
refresh
public void refresh()Description copied from interface:AgendaSkinComplete refresh- Specified by:
refreshin interfaceAgendaSkin
-
getNodeForPopup
Description copied from interface:AgendaSkinFinds rendered node for appointment. The node can be used as the owner for a popup. or finding its x, y coordinates.- Specified by:
getNodeForPopupin interfaceAgendaSkin- Parameters:
appointment-- Returns:
- rendered node that represents appointment
-
snapToMinutesProperty
snapToMinutes I am clueless why the Integer version of this property gets a double pushed in (which results in a ClassCastException)- Returns:
- the
snapToMinutesproperty - See Also:
-
setSnapToMinutes
public final void setSnapToMinutes(double value) -
getSnapToMinutes
public final double getSnapToMinutes() -
withSnapToMinutes
-
convertClickInSceneToDateTime
- Specified by:
convertClickInSceneToDateTimein interfaceAgendaSkin- Parameters:
x- scene coordinatey- scene coordinate- Returns:
- a localDateTime equivalent of the click location, where a drop in the day section has nano seconds == 1, and a drop in a header (wholeday) section has nano seconds == 0
-
print
public void print(javafx.print.PrinterJob job) Prints the current skin using the given printer job.This method does not modify the state of the job, nor does it call
PrinterJob.endJob(), so the job may be safely reused afterwards.- Specified by:
printin interfaceAgendaSkin- Parameters:
job- printer job used for printing- Since:
- JavaFX 8.0
-