Module jfxtras.icalendaragenda
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
- concreteVDisplayable
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 Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.util.Callback<Map<ChangeDialogOption,
javafx.util.Pair<Temporal, Temporal>>, ChangeDialogOption> private Temporal
private 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 theVDisplayable
to be deleted.private boolean
isValid()
Tests the object state is valid and revision can proceed.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 optionvoid
setStartOriginalRecurrence
(Temporal startOriginalRecurrence) Sets the value of the original recurrence date or date/timeprivate VCalendar
setUpCancelMessage
(U vComponent) void
setVComponentCopy
(U vComponentEdited) Sets the value of the editedVDisplayable
Note: 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, dialogCallbackTemporal>>, ChangeDialogOption>
-
-
Constructor Details
-
DeleterDisplayable
-
-
Method Details
-
getVComponentCopy
Gets the value of theVDisplayable
to be deleted. Note: don't pass original or the changes will be instantaneous and cancel is not possible. -
setVComponentCopy
Sets the value of the editedVDisplayable
Note: 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
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, getDialogCallback()Temporal>>, ChangeDialogOption> 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
Description copied from interface:Deleter
Revise list of iTIP VCalendar components that represent the canceled calendar components. -
setUpCancelMessage
-