Interface ContainerListener

    • Method Detail

      • componentInserted

        default void componentInserted​(Container container,
                                       int index)
        Called when a component has been inserted into a container's component sequence.
        Parameters:
        container - The container that has changed.
        index - The index where the new component has been inserted.
      • componentsRemoved

        default void componentsRemoved​(Container container,
                                       int index,
                                       Sequence<Component> removed)
        Called when components have been removed from a container's component sequence.
        Parameters:
        container - The container that has changed.
        index - The starting index of the components that were removed.
        removed - The complete sequence of removed components.
      • componentMoved

        default void componentMoved​(Container container,
                                    int from,
                                    int to)
        Called when a component has moved from one z-index to another within a container.
        Parameters:
        container - The container that has changed.
        from - The starting index of the component (in Z-order).
        to - The place in the Z-order where this component ended up.
      • focusTraversalPolicyChanged

        default void focusTraversalPolicyChanged​(Container container,
                                                 FocusTraversalPolicy previousFocusTraversalPolicy)
        Called when a container's focus traversal policy has changed.
        Parameters:
        container - The container that has changed.
        previousFocusTraversalPolicy - The previous value of the focus traversal policy for this container.