de.espirit.firstspirit.ui.gadgets.aspects
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
static AspectType<ChangeManaging<?>> TYPE
          Aspect definition for a gadget that manages changes on its value.
 
Method Summary
 void clearValue()
          Proposes a change to clear the currently set value.A subsequent call to ChangeManaging.hasChanges() should return true.
 boolean hasChanges()
          Indicates that the gadget has changes.
 void replaceValue(T value)
          Proposes a change to replace the currently set value with the given one.
 

Field Detail

TYPE

static final AspectType<ChangeManaging<?>> TYPE
Aspect definition for a gadget that manages changes on its value.

Since:
4.2.436
Method Detail

hasChanges

boolean hasChanges()
Indicates that the gadget has changes.

Returns:
true, if the gadget has changes.
Since:
4.2.436

replaceValue

void replaceValue(T value)
Proposes a change to replace the currently set value with the given one. A subsequent call to ChangeManaging.hasChanges() should return true.

Parameters:
value - The replacement value.
Since:
4.2.436

clearValue

void clearValue()
Proposes a change to clear the currently set value.A subsequent call to ChangeManaging.hasChanges() should return true.

Since:
4.2.436


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480