Class ComponentListener.Adapter

  • All Implemented Interfaces:
    ComponentListener
    Enclosing interface:
    ComponentListener

    @Deprecated
    public static class ComponentListener.Adapter
    extends java.lang.Object
    implements ComponentListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Component listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • parentChanged

        public void parentChanged​(Component component,
                                  Container previousParent)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's parent has changed (when the component is either added to or removed from a container).
        Specified by:
        parentChanged in interface ComponentListener
        Parameters:
        component - The component whose parent changed.
        previousParent - Previous parent of this component.
      • sizeChanged

        public void sizeChanged​(Component component,
                                int previousWidth,
                                int previousHeight)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's size has changed.
        Specified by:
        sizeChanged in interface ComponentListener
        Parameters:
        component - Component that changed size.
        previousWidth - Previous width of this component.
        previousHeight - Previous height of this component.
      • preferredSizeChanged

        public void preferredSizeChanged​(Component component,
                                         int previousPreferredWidth,
                                         int previousPreferredHeight)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's preferred size has changed.
        Specified by:
        preferredSizeChanged in interface ComponentListener
        Parameters:
        component - Component that changed.
        previousPreferredWidth - Previous value of the preferred width for this component.
        previousPreferredHeight - Previous preferred height for this component.
      • widthLimitsChanged

        public void widthLimitsChanged​(Component component,
                                       int previousMinimumWidth,
                                       int previousMaximumWidth)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's preferred width limits have changed.
        Specified by:
        widthLimitsChanged in interface ComponentListener
        Parameters:
        component - Component that changed.
        previousMinimumWidth - Previously specified preferred minimum width.
        previousMaximumWidth - Previous value of the preferred maximum width.
      • heightLimitsChanged

        public void heightLimitsChanged​(Component component,
                                        int previousMinimumHeight,
                                        int previousMaximumHeight)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's preferred height limits have changed.
        Specified by:
        heightLimitsChanged in interface ComponentListener
        Parameters:
        component - Component that has changed.
        previousMinimumHeight - Previously given minimum height value.
        previousMaximumHeight - Previous maximum height value.
      • locationChanged

        public void locationChanged​(Component component,
                                    int previousX,
                                    int previousY)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's location has changed.
        Specified by:
        locationChanged in interface ComponentListener
        Parameters:
        component - Component that has moved.
        previousX - The previous X position of the component.
        previousY - The previous Y position.
      • visibleChanged

        public void visibleChanged​(Component component)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's visible flag has changed.
        Specified by:
        visibleChanged in interface ComponentListener
        Parameters:
        component - Component that has changed visibility.
      • cursorChanged

        public void cursorChanged​(Component component,
                                  Cursor previousCursor)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's cursor has changed.
        Specified by:
        cursorChanged in interface ComponentListener
        Parameters:
        component - Component whose cursor has changed.
        previousCursor - Previous cursor for this component.
      • tooltipTextChanged

        public void tooltipTextChanged​(Component component,
                                       java.lang.String previousTooltipText)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's tooltip text has changed.
        Specified by:
        tooltipTextChanged in interface ComponentListener
        Parameters:
        component - Component that changed.
        previousTooltipText - Previous value of this component's tooltip text.
      • tooltipDelayChanged

        public void tooltipDelayChanged​(Component component,
                                        int previousTooltipDelay)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's tooltip delay has changed.
        Specified by:
        tooltipDelayChanged in interface ComponentListener
        Parameters:
        component - The component we're dealing with.
        previousTooltipDelay - The previous tooltip delay for this component.
      • dragSourceChanged

        public void dragSourceChanged​(Component component,
                                      DragSource previousDragSource)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's drag source has changed.
        Specified by:
        dragSourceChanged in interface ComponentListener
        Parameters:
        component - The component in question.
        previousDragSource - The previous value of the DragSource for this component.
      • dropTargetChanged

        public void dropTargetChanged​(Component component,
                                      DropTarget previousDropTarget)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's drop target has changed.
        Specified by:
        dropTargetChanged in interface ComponentListener
        Parameters:
        component - The component that is changing.
        previousDropTarget - The previous value of the DropTarget for this component.
      • menuHandlerChanged

        public void menuHandlerChanged​(Component component,
                                       MenuHandler previousMenuHandler)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's context menu handler has changed.
        Specified by:
        menuHandlerChanged in interface ComponentListener
        Parameters:
        component - The component that has changed.
        previousMenuHandler - The previous menu handler object for this component.
      • nameChanged

        public void nameChanged​(Component component,
                                java.lang.String previousName)
        Deprecated.
        Description copied from interface: ComponentListener
        Called when a component's name has changed.
        Specified by:
        nameChanged in interface ComponentListener
        Parameters:
        component - Component whose name changed.
        previousName - Previous name for this component.