java.lang.Object
jfxtras.internal.scene.control.skin.agenda.icalendar.base24hour.popup.SimpleEditSceneFactory

public class SimpleEditSceneFactory extends Object
Simple factory to create EditDisplayableScene objects. Contains two methods to create scenes. One takes only a VComponent as a parameter and builds an empty EditDisplayableScene. The second takes a VComponent and an array of parameters required to completely initialize the EditDisplayableScene.
  • Constructor Details

    • SimpleEditSceneFactory

      public SimpleEditSceneFactory()
  • Method Details

    • newScene

      public static EditDisplayableScene newScene(VComponent vComponent, Object[] params)
      Create a Stage to edit the type of VComponent passed as a parameter

      Parameters array must contain the following:
      (0) VCalendar - parent VCalendar
      (1) Temporal startRecurrence - start of selected recurrence
      (2) Temporal endRecurrence - end of selected recurrence
      (3) String List categories - available category names

      Parameters:
      vComponent - - VComponent to be edited
      params - - necessary parameters, packed in an array, to edit the VComponent
      Returns:
    • newScene

      public static EditDisplayableScene newScene(VComponent vComponent, Temporal startRecurrence, Temporal endRecurrence, List<String> categories)
      Create a Stage to edit the type of VComponent passed as a parameter
      Parameters:
      vComponent - component to edit
      startRecurrence - start of selected recurrence
      endRecurrence - end of selected recurrence
      categories - available category names
      Returns:
      the new Stage containing an edit popup
    • newScene

      public static EditDisplayableScene newScene(VComponent vComponent)
      Create an empty EditDisplayableScene