Interface ComponentDecoratorListener

    • 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.