| Modifier and Type | Class and Description |
|---|---|
| public abstract static class |
| Modifier and Type | Method and Description |
|---|---|
| public void | onChanged(MapChangeListener.
the change that was made changeCalled after a change has been made to an ObservableMap. |
| onChanged | back to summary |
|---|---|
| public void onChanged(MapChangeListener. Called after a change has been made to an ObservableMap. This method is called on every elementary change (put/remove) once. This means, complex changes like keySet().removeAll(Collection) or clear() may result in more than one call of onChanged method.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract K | |
| public ObservableMap | |
| public abstract V | |
| public abstract V | |
| public abstract boolean | Returns: true if a new value (or key-value) entry was added to the mapIf this change is a result of add operation. |
| public abstract boolean | Returns: true if an old value (or key-value) entry was removed from the mapIf this change is a result of removal operation. |
| map | back to summary |
|---|---|
| private final ObservableMap<K, V> map | |
| Change | back to summary |
|---|---|
| public Change(ObservableMap<K, V> map) Constructs a change associated with a map.
| |
| getKey | back to summary |
|---|---|
| public abstract K getKey() A key associated with the change. If the change is a remove change, the key no longer exist in a map. Otherwise, the key got set to a new value.
| |
| getMap | back to summary |
|---|---|
| public ObservableMap An observable map that is associated with the change.
| |
| getValueAdded | back to summary |
|---|---|
| public abstract V getValueAdded() Get the new value of the key. Return null if this is a removal.
| |
| getValueRemoved | back to summary |
|---|---|
| public abstract V getValueRemoved() Get the old value of the key. This is null if and only if the value was added to the key that was not previously in the map.
| |
| wasAdded | back to summary |
|---|---|
| public abstract boolean wasAdded() If this change is a result of add operation.
| |
| wasRemoved | back to summary |
|---|---|
| public abstract boolean wasRemoved() If this change is a result of removal operation. Note that an element might be removed even as a result of put operation.
| |