Class DeleterDisplayable<T, U extends VDisplayable<?>>

java.lang.Object
jfxtras.scene.control.agenda.icalendar.editors.deleters.DeleterDisplayable<T,U>
Type Parameters:
T - concrete implementation of this class
U - concrete VDisplayable class
All Implemented Interfaces:
Deleter
Direct Known Subclasses:
DeleterVEvent, DeleterVJournal, DeleterVTodo

public abstract class DeleterDisplayable<T, U extends VDisplayable<?>> extends Object implements Deleter

Handles deleting recurrences of a VDisplayable (e.g. VEvent, VTodo, VJournal)

Author:
David Bal
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeleterDisplayable(U vComponent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Revise list of iTIP VCalendar components that represent the canceled calendar components.
    javafx.util.Callback<Map<jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption>
    Gets the value of the dialog callback to prompt the user to select delete option
    Gets the value of the original recurrence date or date/time
    Gets the value of the VDisplayable to be deleted.
    void
    setDialogCallback(javafx.util.Callback<Map<jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption> dialogCallback)
    Sets the value of the dialog callback to prompt the user to select delete option
    void
    setStartOriginalRecurrence(Temporal startOriginalRecurrence)
    Sets the value of the original recurrence date or date/time
    void
    setVComponentCopy(U vComponentEdited)
    Sets the value of the edited VDisplayable Note: don't pass original or the changes will be instantaneous and cancel is not possible.
    withDialogCallback(javafx.util.Callback<Map<jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption> dialogCallback)
    Sets the value of the dialog callback to prompt the user to select delete option and returns this class for chaining
    withStartOriginalRecurrence(Temporal startOriginalRecurrence)
    Sets the value of the original recurrence date or date/time and returns this class for chaining
    withVComponentCopy(U vComponentEdited)
    Sets the value of the edited VDisplayable.

    Methods inherited from class Object

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

    • DeleterDisplayable

      public DeleterDisplayable(U vComponent)
  • Method Details

    • getVComponentCopy

      public U getVComponentCopy()
      Gets the value of the VDisplayable to be deleted. Note: don't pass original or the changes will be instantaneous and cancel is not possible.
    • setVComponentCopy

      public void setVComponentCopy(U vComponentEdited)
      Sets the value of the edited VDisplayable Note: don't pass original or the changes will be instantaneous and cancel is not possible.
    • withVComponentCopy

      public T withVComponentCopy(U vComponentEdited)
      Sets the value of the edited VDisplayable. Note: don't pass original or the changes will be instantaneous and cancel is not possible.
      Returns:
      - this class for chaining
      See Also:
    • getStartOriginalRecurrence

      public Temporal getStartOriginalRecurrence()
      Gets the value of the original recurrence date or date/time
    • setStartOriginalRecurrence

      public void setStartOriginalRecurrence(Temporal startOriginalRecurrence)
      Sets the value of the original recurrence date or date/time
    • withStartOriginalRecurrence

      public T withStartOriginalRecurrence(Temporal startOriginalRecurrence)
      Sets the value of the original recurrence date or date/time and returns this class for chaining
      Returns:
      - this class for chaining
    • getDialogCallback

      public javafx.util.Callback<Map<jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption> getDialogCallback()
      Gets the value of the dialog callback to prompt the user to select delete option
    • setDialogCallback

      public void setDialogCallback(javafx.util.Callback<Map<jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption> dialogCallback)
      Sets the value of the dialog callback to prompt the user to select delete option
    • withDialogCallback

      public T withDialogCallback(javafx.util.Callback<Map<jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, jfxtras.scene.control.agenda.icalendar.editors.ChangeDialogOption> dialogCallback)
      Sets the value of the dialog callback to prompt the user to select delete option and returns this class for chaining
      Returns:
      - this class for chaining
    • delete

      public List<VCalendar> delete()
      Description copied from interface: Deleter
      Revise list of iTIP VCalendar components that represent the canceled calendar components.
      Specified by:
      delete in interface Deleter