net.sf.doolin.gui.action.path.statusbar
Class GUIStatusBar

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

public class GUIStatusBar
extends AbstractActionPath

Defines a status bar, a component that just lists some components which listen to the application state (usually the Bus). This component provides a common layout for all the components in the bar.

Author:
Damien Coraboeuf

Constructor Summary
GUIStatusBar()
           
 
Method Summary
static Border createDefaultBorder()
          Creates a border for the components that are put in the status bar.
 Border getBorder()
          Gets the border to apply to the components in the status bar.
 List<StatusBarComponent> getComponents()
          Gets the list of component definitions for this status bar.
 void install(MenuBuilder menuBuilder, ActionFactory actionFactory, ActionContext actionContext)
          Installs this action path in a menu builder for a given action context.
 void setBorder(Border border)
          Sets the border to apply to the components in the status bar.
 void setComponents(List<StatusBarComponent> components)
          Sets the list of component definitions for this status bar.
 
Methods inherited from class net.sf.doolin.gui.action.path.item.AbstractActionPath
getPathID, getPathStack, getSource, getTarget, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GUIStatusBar

public GUIStatusBar()
Method Detail

createDefaultBorder

public static Border createDefaultBorder()
Creates a border for the components that are put in the status bar.

Returns:
Border to set

getBorder

public Border getBorder()
Gets the border to apply to the components in the status bar.

Returns:
Border to set

getComponents

public List<StatusBarComponent> getComponents()
Gets the list of component definitions for this status bar.

Returns:
List of component definitions

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

setBorder

public void setBorder(Border border)
Sets the border to apply to the components in the status bar. It is set by default to createDefaultBorder().

Parameters:
border - Border to set

setComponents

public void setComponents(List<StatusBarComponent> components)
Sets the list of component definitions for this status bar. It is set by default to an empty list.

Parameters:
components - List of component definitions


Copyright © 2011. All Rights Reserved.