Class ReviserDisplayable<T, U extends VDisplayable<U>>

java.lang.Object
jfxtras.scene.control.agenda.icalendar.editors.revisors.ReviserDisplayable<T,U>
Type Parameters:
T - concrete implementation of this class
U - concrete VDisplayable class
All Implemented Interfaces:
Reviser
Direct Known Subclasses:
ReviserLocatable, ReviserVJournal

public abstract class ReviserDisplayable<T, U extends VDisplayable<U>> extends Object implements Reviser
Handles revising one or all recurrences of a VDisplayable
Author:
David Bal
  • Constructor Details

    • ReviserDisplayable

      public ReviserDisplayable(U vComponent)
  • Method Details

    • getVComponentCopyEdited

      public U getVComponentCopyEdited()
      Gets the value of the edited VDisplayable copy. Note: don't pass original or the changes will be instantaneous and cancel is not possible.
    • setVComponentCopyEdited

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

      public T withVComponentCopyEdited(U vComponentEdited)
      Sets the value of the edited VDisplayable
      Returns:
      - this class for chaining
      See Also:
    • getVComponentOriginal

      public U getVComponentOriginal()
      Gets the value of the original VDisplayable
    • setVComponentOriginal

      public void setVComponentOriginal(U vComponentOriginal)
      Sets the value of the original VDisplayable
    • withVComponentOriginal

      public T withVComponentOriginal(U vComponentOriginal)
      Sets the value of the edited VDisplayable
      Returns:
      - this class for chaining
      See Also:
    • getStartOriginalRecurrence

      public Temporal getStartOriginalRecurrence()
      Gets the value of the start of the selected recurrence, before changes
    • setStartOriginalRecurrence

      public void setStartOriginalRecurrence(Temporal startOriginalRecurrence)
      Sets the value of the start of the selected recurrence, before changes
    • withStartOriginalRecurrence

      public T withStartOriginalRecurrence(Temporal startOriginalRecurrence)
      Sets the value of the start of the selected recurrence, before changes
      Returns:
      - this class for chaining
    • getStartRecurrence

      public Temporal getStartRecurrence()
      Gets the value of the start of the selected recurrence, after changes
    • setStartRecurrence

      public void setStartRecurrence(Temporal startRecurrence)
      Sets the value of the start of the selected recurrence, after changes
    • withStartRecurrence

      public T withStartRecurrence(Temporal startRecurrence)
      Sets the value of the start of the selected recurrence, after changes
      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 revision 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 revision 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 revision option
      Returns:
      - this class for chaining
    • revise

      public List<VCalendar> revise()
      Description copied from interface: Reviser
      Revise list of iTIP VCalendar components that represent the changes.
      Specified by:
      revise in interface Reviser
    • dialogRequiredProperties

      public List<VPropertyElement> dialogRequiredProperties()
      Returned list of VPropertyElement values, that when changed, necessitate a user dialog to determine scope of change. If changes do not contain ANY VPropertyElement in the returned list then changes can proceed automatically without a user dialog.
      Returns:
      List<VPropertyElement> that when any are changed require a user dialog to request scope of change (e.g. ONE, ALL or THIS_AND_FUTURE)