net.sf.doolin.gui.action.path
Class ActionBarContext

java.lang.Object
  extended by net.sf.doolin.gui.action.path.ActionBarContext
All Implemented Interfaces:
PropertyContainer

public class ActionBarContext
extends Object
implements PropertyContainer

Menu bar and its context.

Author:
Damien Coraboeuf

Constructor Summary
ActionBarContext(ActionPathList actionPaths, ActionContext actionContext)
          Instantiates a new menu bar context.
 
Method Summary
 ActionContext getActionContext()
          Gets the action context.
 ActionPathList getActionPaths()
          Gets the action paths.
 Map<Object,Object> getProperties()
          Properties associated with this context
 Object getProperty(Object key)
          Retrieves a property from this view
 boolean isEmpty()
           
 void setProperty(Object key, Object value)
          Attaches a property to the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBarContext

public ActionBarContext(ActionPathList actionPaths,
                        ActionContext actionContext)
Instantiates a new menu bar context.

Parameters:
actionPaths - List of action paths
actionContext - the action context
Method Detail

getActionContext

public ActionContext getActionContext()
Gets the action context.

Returns:
the action context

getActionPaths

public ActionPathList getActionPaths()
Gets the action paths.

Returns:
the action paths

getProperties

public Map<Object,Object> getProperties()
Properties associated with this context

Returns:
Properties

getProperty

public Object getProperty(Object key)
Description copied from interface: PropertyContainer
Retrieves a property from this view

Specified by:
getProperty in interface PropertyContainer
Parameters:
key - Property key
Returns:
Property value or null if not defined

isEmpty

public boolean isEmpty()
Returns:
true if the action bar contains no action

setProperty

public void setProperty(Object key,
                        Object value)
Description copied from interface: PropertyContainer
Attaches a property to the view. If the value is null, the property will be removed from the view instead.

Specified by:
setProperty in interface PropertyContainer
Parameters:
key - Property key
value - Property value


Copyright © 2011. All Rights Reserved.