Package org.apache.pivot.wtk
Class ComponentListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
ComponentListener.Adapter, ComponentListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
cursorChanged(Component component, Cursor previousCursor)
Deprecated.Called when a component's cursor has changed.void
dragSourceChanged(Component component, DragSource previousDragSource)
Deprecated.Called when a component's drag source has changed.void
dropTargetChanged(Component component, DropTarget previousDropTarget)
Deprecated.Called when a component's drop target has changed.void
heightLimitsChanged(Component component, int previousMinimumHeight, int previousMaximumHeight)
Deprecated.Called when a component's preferred height limits have changed.void
locationChanged(Component component, int previousX, int previousY)
Deprecated.Called when a component's location has changed.void
menuHandlerChanged(Component component, MenuHandler previousMenuHandler)
Deprecated.Called when a component's context menu handler has changed.void
nameChanged(Component component, java.lang.String previousName)
Deprecated.Called when a component's name has changed.void
parentChanged(Component component, Container previousParent)
Deprecated.Called when a component's parent has changed (when the component is either added to or removed from a container).void
preferredSizeChanged(Component component, int previousPreferredWidth, int previousPreferredHeight)
Deprecated.Called when a component's preferred size has changed.void
sizeChanged(Component component, int previousWidth, int previousHeight)
Deprecated.Called when a component's size has changed.void
tooltipDelayChanged(Component component, int previousTooltipDelay)
Deprecated.Called when a component's tooltip delay has changed.void
tooltipTextChanged(Component component, java.lang.String previousTooltipText)
Deprecated.Called when a component's tooltip text has changed.void
visibleChanged(Component component)
Deprecated.Called when a component's visible flag has changed.void
widthLimitsChanged(Component component, int previousMinimumWidth, int previousMaximumWidth)
Deprecated.Called when a component's preferred width limits have changed.
-
-
-
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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- 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 interfaceComponentListener
- Parameters:
component
- The component in question.previousDragSource
- The previous value of theDragSource
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 interfaceComponentListener
- Parameters:
component
- The component that is changing.previousDropTarget
- The previous value of theDropTarget
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 interfaceComponentListener
- 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 interfaceComponentListener
- Parameters:
component
- Component whose name changed.previousName
- Previous name for this component.
-
-