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

public class AgendaDaysFromDisplayedSkin extends javafx.scene.control.SkinBase<Agenda>
Author:
Tom Eugelink
  • Property Details

  • Field Details

    • control

      protected final Agenda control
    • borderPane

      protected javafx.scene.layout.BorderPane borderPane
  • Constructor Details

    • AgendaDaysFromDisplayedSkin

      public AgendaDaysFromDisplayedSkin(Agenda control)
  • Method Details

    • reconstruct

      protected void reconstruct()
      Reconstruct the UI part
    • determineDisplayedLocalDates

      protected List<LocalDate> determineDisplayedLocalDates()
      Assign a calendar to each day, so it knows what it must draw.
    • daysBeforeFurthestProperty

      public final javafx.beans.property.ObjectProperty<Integer> daysBeforeFurthestProperty()
      daysBeforeFurthestProperty
      Returns:
      the daysBeforeFurthest property
      See Also:
    • setDaysBeforeFurthest

      public final void setDaysBeforeFurthest(int value)
      Sets the value of the daysBeforeFurthest property.
      Property description:
      daysBeforeFurthestProperty
      Parameters:
      value - the value for the daysBeforeFurthest property
      See Also:
    • getDaysBeforeFurthest

      public final int getDaysBeforeFurthest()
      Gets the value of the daysBeforeFurthest property.
      Property description:
      daysBeforeFurthestProperty
      Returns:
      the value of the daysBeforeFurthest property
      See Also:
    • withDaysBeforeFurthest

      public final AgendaDaysFromDisplayedSkin withDaysBeforeFurthest(int value)
    • daysAfterFurthestProperty

      public final javafx.beans.property.ObjectProperty<Integer> daysAfterFurthestProperty()
      daysAfterFurthestProperty
      Returns:
      the daysAfterFurthest property
      See Also:
    • setDaysAfterFurthest

      public final void setDaysAfterFurthest(int value)
      Sets the value of the daysAfterFurthest property.
      Property description:
      daysAfterFurthestProperty
      Parameters:
      value - the value for the daysAfterFurthest property
      See Also:
    • getDaysAfterFurthest

      public final int getDaysAfterFurthest()
      Gets the value of the daysAfterFurthest property.
      Property description:
      daysAfterFurthestProperty
      Returns:
      the value of the daysAfterFurthest property
      See Also:
    • withDaysAfterFurthest

      public final AgendaDaysFromDisplayedSkin withDaysAfterFurthest(int value)
    • getClassCssMetaData

      public static List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> getClassCssMetaData()
      Returns:
      The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
    • getCssMetaData

      public List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> getCssMetaData()
      This method should delegate to Node.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:
      dispose in interface javafx.scene.control.Skin<T>
      Overrides:
      dispose in class javafx.scene.control.SkinBase<Agenda>
    • setupAppointments

      public void setupAppointments()
      Have all days reconstruct the appointments
      Specified by:
      setupAppointments in interface AgendaSkin
    • refresh

      public void refresh()
      Description copied from interface: AgendaSkin
      Complete refresh
      Specified by:
      refresh in interface AgendaSkin
    • getNodeForPopup

      public javafx.scene.layout.Pane getNodeForPopup(Agenda.Appointment appointment)
      Description copied from interface: AgendaSkin
      Finds rendered node for appointment. The node can be used as the owner for a popup. or finding its x, y coordinates.
      Specified by:
      getNodeForPopup in interface AgendaSkin
      Parameters:
      appointment -
      Returns:
      rendered node that represents appointment
    • snapToMinutesProperty

      public final javafx.beans.property.ObjectProperty<Double> snapToMinutesProperty()
      snapToMinutes I am clueless why the Integer version of this property gets a double pushed in (which results in a ClassCastException)
      Returns:
      the snapToMinutes property
      See Also:
    • setSnapToMinutes

      public final void setSnapToMinutes(double value)
    • getSnapToMinutes

      public final double getSnapToMinutes()
    • withSnapToMinutes

      public final AgendaDaysFromDisplayedSkin withSnapToMinutes(double value)
    • convertClickInSceneToDateTime

      public LocalDateTime convertClickInSceneToDateTime(double x, double y)
      Specified by:
      convertClickInSceneToDateTime in interface AgendaSkin
      Parameters:
      x - scene coordinate
      y - 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:
      print in interface AgendaSkin
      Parameters:
      job - printer job used for printing
      Since:
      JavaFX 8.0