Package com.dkt.graphics.utils.config
Interface ConfigEvent
public interface ConfigEvent
These events are triggered from the
Config
class each time something
is added, updated or removed.- Author:
- Federico Vera <[email protected]>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves thekey
that triggered the eventint
Retrieves the type of change that has happenedRetrieves the new value associated with this keyRetrieves the old value associated with this keyboolean
Tells if the value affects a given key, basically:
-
Field Details
-
Method Details
-
getChangeType
int getChangeType()Retrieves the type of change that has happened- Returns:
- type of change
- See Also:
-
isKey
Tells if the value affects a given key, basically:if (evt.isKey("my.key")){ //... } is equivalent to: if (evt.getChangedKey().equals("my.key") { //... }
- Parameters:
key
- thekey
to compare- Returns:
true
ifkey
is the key that triggered the event andfalse
otherwise- See Also:
-
getChangedKey
String getChangedKey()Retrieves thekey
that triggered the event- Returns:
- key
-
getOldValue
Object getOldValue()Retrieves the old value associated with this key- Returns:
- old value
-
getNewValue
Object getNewValue()Retrieves the new value associated with this key- Returns:
- new value
-