Class SimpleDeleterFactory

java.lang.Object
jfxtras.scene.control.agenda.icalendar.editors.deleters.SimpleDeleterFactory

public class SimpleDeleterFactory extends Object

Simple factory to create Deleter objects. Two methods to create Deleter exist. One takes only a VComponent as a parameter and builds an empty Deleter. The second takes a VComponent and an array of parameters required to completely initialize the Deleter.

The parameters array contains the following (in this order):

  • Callback<Map<ChangeDialogOption, Pair<Temporal, Temporal>>, ChangeDialogOption> - callback for user dialog
  • Temporal - startOriginalRecurrence, start of selected recurrence
  • List-VComponent - list of components that vComponent is a member

Author:
David Bal
  • Constructor Details

    • SimpleDeleterFactory

      public SimpleDeleterFactory()
  • Method Details

    • newDeleter

      public static Deleter newDeleter(VComponent vComponent, Object[] params)
      Parameters:
      vComponent - - VComponent to have delete action acted upon
      params -
      Returns:
      New Deleter
    • newDeleter

      public static Deleter newDeleter(VComponent vComponent, javafx.util.Callback<Map<jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption> changeDialogCallback, Temporal startOriginalRecurrence)
      Parameters:
      vComponent - - VComponent to have delete action acted upon
      params -
      Returns:
      New Deleter
    • newDeleter

      public static Deleter newDeleter(VComponent vComponent)