Package org.apache.pivot.wtk
Interface ComponentDecoratorListener
-
- All Known Implementing Classes:
ComponentDecoratorListener.Adapter
,ComponentDecoratorListener.Listeners
public interface ComponentDecoratorListener
Component decorator listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ComponentDecoratorListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ComponentDecoratorListener.Listeners
Component decorator listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
decoratorInserted(Component component, int index)
Called when a decorator has been inserted into a component's decorator sequence.default void
decoratorsRemoved(Component component, int index, Sequence<Decorator> decorators)
Called when decorators have been removed from a component's decorator sequence.default void
decoratorUpdated(Component component, int index, Decorator previousDecorator)
Called when a decorator has been updated in a component's decorator sequence.
-
-
-
Method Detail
-
decoratorInserted
default void decoratorInserted(Component component, int index)
Called when a decorator has been inserted into a component's decorator sequence.- Parameters:
component
- The component that has changed.index
- The starting index of the decorator that has been inserted.
-
decoratorUpdated
default void decoratorUpdated(Component component, int index, Decorator previousDecorator)
Called when a decorator has been updated in a component's decorator sequence.- Parameters:
component
- The component that has changed.index
- The index of the decorator that has been updated.previousDecorator
- The previous decorator at that index.
-
decoratorsRemoved
default void decoratorsRemoved(Component component, int index, Sequence<Decorator> decorators)
Called when decorators have been removed from a component's decorator sequence.- Parameters:
component
- The component that has changed.index
- The starting index where decorators were removed.decorators
- The complete sequence of decorators that were removed.
-
-