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)

  • Field Details

  • 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<ChangeDialogOption,javafx.util.Pair<Temporal,Temporal>>,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<ChangeDialogOption,javafx.util.Pair<Temporal,Temporal>>,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<ChangeDialogOption,javafx.util.Pair<Temporal,Temporal>>,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
    • isValid

      private boolean isValid()
      Tests the object state is valid and revision can proceed. Returns true if valid, false otherwise
    • 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
    • setUpCancelMessage

      private VCalendar setUpCancelMessage(U vComponent)