uic.action
Class ComponentFocusGainedAction
java.lang.Object
uic.model.UICSimpleAction
uic.action.SwingAction
uic.action.ComponentFocusLostAction
uic.action.ComponentFocusGainedAction
- All Implemented Interfaces:
- FocusListener, EventListener
public class ComponentFocusGainedAction
- extends ComponentFocusLostAction
An event to respond to focusGained signals.
Notice that the default version uses the OnlyLastPolicy
.
Using this class is easy; just call:
new ComponentFocusGainedAction(this, "firedSlot").add(childComponent);
This has the result that when the childComponent gaines focus the
'firedSlot' on object 'this' will be called.
- Default target signatures
- ()
(ARGUMENT_SOURCE)
(ARGUMENT_TEMPORARY)
- All Targets
ComponentFocusLostAction.ARGUMENT_SOURCE
ComponentFocusLostAction.ARGUMENT_TEMPORARY
- Since:
- 2.0
Methods inherited from class uic.model.UICSimpleAction |
createArguments, equals, execute, execute, execute, execute, isEnabled, setDirect, setExecutionPolicy, setTarget, setTarget |
ComponentFocusGainedAction
public ComponentFocusGainedAction(Object targetObject,
String targetMethod)
- Create a new ComponentFocusGainedAction.
- Parameters:
targetObject
- on which object should the target method be invokedtargetMethod
- wich method on the targetObject should be invoked
ComponentFocusGainedAction
public ComponentFocusGainedAction(Object targetObject,
String targetMethod,
UICSimpleAction.Arguments arguments)
- Create a new ComponentFocusGainedAction.
- Parameters:
targetObject
- on which object should the target method be invokedtargetMethod
- wich method on the targetObject should be invokedarguments
- to be used in finding the targetMethod signature- See Also:
UICSimpleAction.setTarget(Object,String,uic.model.UICSimpleAction.Arguments)
focusGained
public void focusGained(FocusEvent evt)
- Specified by:
focusGained
in interface FocusListener
- Overrides:
focusGained
in class ComponentFocusLostAction
focusLost
public void focusLost(FocusEvent evt)
- Specified by:
focusLost
in interface FocusListener
- Overrides:
focusLost
in class ComponentFocusLostAction
Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence