Class AgendaDaySkin

java.lang.Object
javafx.scene.control.SkinBase<Agenda>
jfxtras.internal.scene.control.skin.agenda.AgendaDaySkin
All Implemented Interfaces:
javafx.scene.control.Skin<Agenda>, AgendaSkin

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

    Properties
    Type
    Property
    Description
    final 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
    Modifier and Type
    Field
    Description
    protected javafx.scene.layout.BorderPane
     
    protected final Agenda
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convertClickInSceneToDateTime(double x, double y)
     
    protected List<LocalDate>
    Assign a calendar to each day, so it knows what it must draw.
    void
     
    static List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>>
     
    List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>>
    This method should delegate to Node.getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.
    javafx.scene.layout.Pane
    Finds rendered node for appointment.
    final double
     
    void
    print(javafx.print.PrinterJob job)
    Prints the current skin using the given printer job.
    protected void
    Reconstruct the UI part
    void
    Complete refresh
    final void
    setSnapToMinutes(double value)
     
    void
    Have all days reconstruct the appointments
    final 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)
    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

  • Field Details

    • control

      protected final Agenda control
    • borderPane

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

    • AgendaDaySkin

      public AgendaDaySkin(Agenda control)
  • Method Details

    • determineDisplayedLocalDates

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

      protected void reconstruct()
      Reconstruct the UI part
    • 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 AgendaDaySkin withSnapToMinutes(double 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.
      Overrides:
      getCssMetaData in class javafx.scene.control.SkinBase<Agenda>
      Returns:
      The CssMetaData associated with this node, which may include the CssMetaData of its super classes.
    • 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