Package org.apache.pivot.wtk
Class ComponentStateListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.ComponentStateListener.Adapter
-
- All Implemented Interfaces:
ComponentStateListener
- Enclosing interface:
- ComponentStateListener
@Deprecated public static class ComponentStateListener.Adapter extends java.lang.Object implements ComponentStateListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Component state listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
ComponentStateListener.Adapter, ComponentStateListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
enabledChanged(Component component)
Deprecated.Called when a component's enabled state has changed.void
focusedChanged(Component component, Component obverseComponent)
Deprecated.Called when a component's focused state has changed.
-
-
-
Method Detail
-
enabledChanged
public void enabledChanged(Component component)
Deprecated.Description copied from interface:ComponentStateListener
Called when a component's enabled state has changed.Called both when the component is enabled and when it is disabled. The component's
enabled
flag has already been set when this method is called so the new state can be determined by calling theComponent.isEnabled()
method.- Specified by:
enabledChanged
in interfaceComponentStateListener
- Parameters:
component
- The component whose enabled state is changing.
-
focusedChanged
public void focusedChanged(Component component, Component obverseComponent)
Deprecated.Description copied from interface:ComponentStateListener
Called when a component's focused state has changed.This will be called both when a component gains focus and when it loses focus. The currently focused component has already been set when this method is called, so that the new state of the component can be determined by calling the
Component.isFocused()
method.- Specified by:
focusedChanged
in interfaceComponentStateListener
- Parameters:
component
- The component that is either gaining focus or the one that previously had focus and is now losing it.obverseComponent
- If the component is gaining focus, this is the component that is losing focus. If the component is losing focus this is the component that is gaining the focus instead.
-
-