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 classU- concreteVDisplayableclass
- 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 Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.util.Callback<Map<ChangeDialogOption, javafx.util.Pair<Temporal, Temporal>>, ChangeDialogOption> private Temporalprivate U -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete()Revise list of iTIP VCalendar components that represent the canceled calendar components.javafx.util.Callback<Map<ChangeDialogOption, javafx.util.Pair<Temporal, Temporal>>, ChangeDialogOption> Gets the value of the dialog callback to prompt the user to select delete optionGets the value of the original recurrence date or date/timeGets the value of theVDisplayableto be deleted.private booleanisValid()Tests the object state is valid and revision can proceed.voidsetDialogCallback(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 optionvoidsetStartOriginalRecurrence(Temporal startOriginalRecurrence) Sets the value of the original recurrence date or date/timeprivate VCalendarsetUpCancelMessage(U vComponent) voidsetVComponentCopy(U vComponentEdited) Sets the value of the editedVDisplayableNote: don't pass original or the changes will be instantaneous and cancel is not possible.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 chainingwithStartOriginalRecurrence(Temporal startOriginalRecurrence) Sets the value of the original recurrence date or date/time and returns this class for chainingwithVComponentCopy(U vComponentEdited) Sets the value of the editedVDisplayable.
-
Field Details
-
vComponent
-
startOriginalRecurrence
-
dialogCallback
private javafx.util.Callback<Map<ChangeDialogOption, javafx.util.Pair<Temporal,Temporal>>, ChangeDialogOption> dialogCallback
-
-
Constructor Details
-
DeleterDisplayable
-
-
Method Details
-
getVComponentCopy
Gets the value of theVDisplayableto be deleted. Note: don't pass original or the changes will be instantaneous and cancel is not possible. -
setVComponentCopy
Sets the value of the editedVDisplayableNote: don't pass original or the changes will be instantaneous and cancel is not possible. -
withVComponentCopy
Sets the value of the editedVDisplayable. Note: don't pass original or the changes will be instantaneous and cancel is not possible.- Returns:
- - this class for chaining
- See Also:
-
getStartOriginalRecurrence
Gets the value of the original recurrence date or date/time -
setStartOriginalRecurrence
Sets the value of the original recurrence date or date/time -
withStartOriginalRecurrence
-
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
-
setUpCancelMessage
-