uic.action
Class WindowRepresenterToolBarRemovedAction

java.lang.Object
  extended by uic.model.UICSimpleAction
      extended by uic.action.SwingAction
          extended by uic.action.WindowRepresenterToolBarAddedAction
              extended by uic.action.WindowRepresenterToolBarRemovedAction
All Implemented Interfaces:
ToolBarListener

public class WindowRepresenterToolBarRemovedAction
extends WindowRepresenterToolBarAddedAction

An event to respond to ToolBar events. Notice that the default version uses the OnlyLastPolicy. Using this class is easy; just call:

new WindowRepresenterToolBarRemovedAction(this, "firedSlot").add(WindowRepresenter.getInstance(myWindow)); 
This has the result that when the a new toolbar is added to the Window the 'firedSlot' on object 'this' will be called.
Default target signatures
(ARGUMENT_TOOLBAR)
()
All Targets
WindowRepresenterToolBarAddedAction.ARGUMENT_TOOLBAR

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from class uic.model.UICSimpleAction
UICSimpleAction.Arguments, UICSimpleAction.DirectMultiThreadingPolicy, UICSimpleAction.DirectPolicy, UICSimpleAction.ExecutePolicy, UICSimpleAction.OnlyLastPolicy, UICSimpleAction.QueuedPolicy, UICSimpleAction.SimpleQueuedPolicy
 
Field Summary
 
Fields inherited from class uic.action.WindowRepresenterToolBarAddedAction
ARGUMENT_TOOLBAR
 
Fields inherited from class uic.action.SwingAction
updateUICommmand
 
Fields inherited from class uic.model.UICSimpleAction
currentPolicy, target, targetObject
 
Constructor Summary
WindowRepresenterToolBarRemovedAction(Object targetObject, String targetMethod)
          Create a new WindowRepresenterToolBarRemovedAction.
WindowRepresenterToolBarRemovedAction(Object targetObject, String targetMethod, UICSimpleAction.Arguments arguments)
          Create a new WindowRepresenterToolBarRemovedAction.
 
Method Summary
 void toolBarAdded(ToolBarEvent evt)
           
 void toolBarMoved(ToolBarEvent evt)
           
 
Methods inherited from class uic.action.WindowRepresenterToolBarAddedAction
add, getArgumentClass, getArgumentValue, getTargetSignatures
 
Methods inherited from class uic.action.SwingAction
doAction, getComponentsIterator, registerComponent, setEnabled, setUIUpdateCommand, setUIUpdateCommand
 
Methods inherited from class uic.model.UICSimpleAction
createArguments, equals, execute, execute, execute, execute, isEnabled, setDirect, setExecutionPolicy, setTarget, setTarget
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowRepresenterToolBarRemovedAction

public WindowRepresenterToolBarRemovedAction(Object targetObject,
                                             String targetMethod)
Create a new WindowRepresenterToolBarRemovedAction.

Parameters:
targetObject - on which object should the target method be invoked
targetMethod - wich method on the targetObject should be invoked

WindowRepresenterToolBarRemovedAction

public WindowRepresenterToolBarRemovedAction(Object targetObject,
                                             String targetMethod,
                                             UICSimpleAction.Arguments arguments)
Create a new WindowRepresenterToolBarRemovedAction.

Parameters:
targetObject - on which object should the target method be invoked
targetMethod - wich method on the targetObject should be invoked
arguments - to be used in finding the targetMethod signature
See Also:
UICSimpleAction.setTarget(Object,String,uic.model.UICSimpleAction.Arguments)
Method Detail

toolBarAdded

public void toolBarAdded(ToolBarEvent evt)
Specified by:
toolBarAdded in interface ToolBarListener
Overrides:
toolBarAdded in class WindowRepresenterToolBarAddedAction

toolBarMoved

public void toolBarMoved(ToolBarEvent evt)
Specified by:
toolBarMoved in interface ToolBarListener
Overrides:
toolBarMoved in class WindowRepresenterToolBarAddedAction


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence