Package org.apache.pivot.wtk
Interface ComponentDataListener
-
- All Known Implementing Classes:
ComponentDataListener.Adapter
,ComponentDataListener.Listeners
public interface ComponentDataListener
Component data listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ComponentDataListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ComponentDataListener.Listeners
Component data listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
valueAdded(Component component, java.lang.String key)
Called when a value has been added to a component's user data dictionary.default void
valueRemoved(Component component, java.lang.String key, java.lang.Object value)
Called when a value has been removed from a component's user data dictionary.default void
valueUpdated(Component component, java.lang.String key, java.lang.Object previousValue)
Called when a value has been updated in a component's user data dictionary.
-
-
-
Method Detail
-
valueAdded
default void valueAdded(Component component, java.lang.String key)
Called when a value has been added to a component's user data dictionary.- Parameters:
component
- The component that has changed.key
- The key for the key/value pair that was added to this component's data dictionary.
-
valueUpdated
default void valueUpdated(Component component, java.lang.String key, java.lang.Object previousValue)
Called when a value has been updated in a component's user data dictionary.- Parameters:
component
- The component that has changed.key
- The key for the value that has been updated.previousValue
- The previous value for this key.
-
valueRemoved
default void valueRemoved(Component component, java.lang.String key, java.lang.Object value)
Called when a value has been removed from a component's user data dictionary.- Parameters:
component
- The component that has changed.key
- The key for the key/value pair that has been removed.value
- The corresponding value that was removed.
-
-