Interface ChangeManaging<T>
- Type Parameters:
T
- The type of the value held by the implementor.
public interface ChangeManaging<T>
Aspect definition for a gadget that manages its changes.
- Since:
- 4.2.436
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AspectType<ChangeManaging<?>>
Aspect definition for a gadget that manages changes on its value. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Proposes a change to clear the currently set value.A subsequent call tohasChanges()
should return true.boolean
Indicates that the gadget has changes.void
replaceValue
(T value) Proposes a change to replace the currently set value with the given one.
-
Field Details
-
TYPE
Aspect definition for a gadget that manages changes on its value.- Since:
- 4.2.436
-
-
Method Details
-
hasChanges
boolean hasChanges()Indicates that the gadget has changes.- Returns:
true
, if the gadget has changes.- Since:
- 4.2.436
-
replaceValue
Proposes a change to replace the currently set value with the given one. A subsequent call tohasChanges()
should return true.- Parameters:
value
- The replacement value.- Since:
- 4.2.436
-
clearValue
@RunsInEDT void clearValue()Proposes a change to clear the currently set value.A subsequent call tohasChanges()
should return true.- Since:
- 4.2.436
-