freemind.modes.mindmapmode.actions.xml
Class ActionFactory

java.lang.Object
  extended by freemind.modes.mindmapmode.actions.xml.ActionFactory

public class ActionFactory
extends java.lang.Object

Author:
foltin

Constructor Summary
ActionFactory(Controller c)
           
 
Method Summary
 void deregisterActor(java.lang.Class action)
           
 void deregisterFilter(ActionFilter newFilter)
           
 void deregisterHandler(ActionHandler newHandler)
           
 void endTransaction(java.lang.String name)
           
 boolean executeAction(ActionPair pair)
           
 ActorXml getActor(freemind.controller.actions.generated.instance.XmlAction action)
           
 Controller getController()
           
 void registerActor(ActorXml actor, java.lang.Class action)
           
 void registerFilter(ActionFilter newFilter)
           
 void registerHandler(ActionHandler newHandler)
          The handler is put in front.
 void registerUndoHandler(UndoActionHandler undoActionHandler)
           
 void startTransaction(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionFactory

public ActionFactory(Controller c)
Method Detail

registerHandler

public void registerHandler(ActionHandler newHandler)
The handler is put in front. Thus it is called before others are called.


deregisterHandler

public void deregisterHandler(ActionHandler newHandler)

registerFilter

public void registerFilter(ActionFilter newFilter)

deregisterFilter

public void deregisterFilter(ActionFilter newFilter)

startTransaction

public void startTransaction(java.lang.String name)

endTransaction

public void endTransaction(java.lang.String name)

executeAction

public boolean executeAction(ActionPair pair)
Returns:
the success of the action. If an exception arises, the method returns false.

getController

public Controller getController()

registerActor

public void registerActor(ActorXml actor,
                          java.lang.Class action)

deregisterActor

public void deregisterActor(java.lang.Class action)

getActor

public ActorXml getActor(freemind.controller.actions.generated.instance.XmlAction action)

registerUndoHandler

public void registerUndoHandler(UndoActionHandler undoActionHandler)