net.sf.doolin.gui.action.path.item
Class GUIActionPath

java.lang.Object
  extended by net.sf.doolin.gui.action.path.item.AbstractActionPath
      extended by net.sf.doolin.gui.action.path.item.GUIActionPath
All Implemented Interfaces:
ActionPath

public class GUIActionPath
extends AbstractActionPath

Defines a path to a GUIAction.

Author:
Damien Coraboeuf

Constructor Summary
GUIActionPath(GUIAction action)
          Constructor with an action and no path.
GUIActionPath(GUIAction action, List<String> paths)
          Constructor with an action and some paths.
 
Method Summary
 GUIAction getAction()
          Gets the action.
 void install(MenuBuilder menuBuilder, ActionFactory actionFactory, ActionContext actionContext)
          Installs this action path in a menu builder for a given action context.
 String toString()
           
 
Methods inherited from class net.sf.doolin.gui.action.path.item.AbstractActionPath
getPathID, getPathStack, getSource, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GUIActionPath

public GUIActionPath(GUIAction action)
Constructor with an action and no path.

Parameters:
action - Action to set

GUIActionPath

public GUIActionPath(GUIAction action,
                     List<String> paths)
Constructor with an action and some paths.

Parameters:
action - Action to set
paths - Stack of paths
Method Detail

getAction

public GUIAction getAction()
Gets the action.

Returns:
The action

install

public void install(MenuBuilder menuBuilder,
                    ActionFactory actionFactory,
                    ActionContext actionContext)
Description copied from interface: ActionPath
Installs this action path in a menu builder for a given action context.

Parameters:
menuBuilder - Menu builder
actionFactory - Action factory to use
actionContext - Action context to use
See Also:
ActionFactory.createAction(ActionContext, GUIAction, IconSize), MenuBuilder.add(net.sf.doolin.bus.SubscriberValidator, Action)

toString

public String toString()
Overrides:
toString in class AbstractActionPath


Copyright © 2011. All Rights Reserved.