Class AgendaWeekSkin
java.lang.Object
javafx.scene.control.SkinBase<Agenda>
jfxtras.internal.scene.control.skin.agenda.AgendaWeekSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<Agenda>, AgendaSkin
- Author:
- Tom Eugelink
-
Property Summary
PropertiesTypePropertyDescriptionfinal 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) Assign 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.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 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)final AgendaWeekSkinwithSnapToMinutes(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
-
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
-
AgendaWeekSkin
-
-
Method Details
-
determineDisplayedLocalDates
-
reconstruct
protected void reconstruct()Reconstruct the UI part -
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
-
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.- Overrides:
getCssMetaDatain classjavafx.scene.control.SkinBase<Agenda>- Returns:
- The CssMetaData associated with this node, which may include the CssMetaData of its super classes.
-
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
-