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

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

public class ReplacementActionPath
extends AbstractActionPath

This action path defines the replacement of a placeholder by another action.

Author:
Damien Coraboeuf

Constructor Summary
ReplacementActionPath(GUIAction action, String placeholder)
          Constructor with no path
ReplacementActionPath(GUIAction action, String placeholder, List<String> paths)
          Constructor with some paths
 
Method Summary
 GUIAction getAction()
          Gets the action to set
 String getPlaceholder()
          Gets the placeholder to replace
 String getSource()
          Returns the placeholder complete identifier
 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, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplacementActionPath

public ReplacementActionPath(GUIAction action,
                             String placeholder)
Constructor with no path

Parameters:
action - Action to set
placeholder - Placeholder to replace

ReplacementActionPath

public ReplacementActionPath(GUIAction action,
                             String placeholder,
                             List<String> paths)
Constructor with some paths

Parameters:
action - Action to set
placeholder - Placeholder to replace
paths - List of paths
Method Detail

getAction

public GUIAction getAction()
Gets the action to set

Returns:
Action

getPlaceholder

public String getPlaceholder()
Gets the placeholder to replace

Returns:
Placeholder name

getSource

public String getSource()
Returns the placeholder complete identifier

Specified by:
getSource in interface ActionPath
Overrides:
getSource in class AbstractActionPath
Returns:
Identifier

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

toString

public String toString()
Overrides:
toString in class AbstractActionPath


Copyright © 2011. All Rights Reserved.