net.sf.genuine.organizer.internal
Class ToolBar

java.lang.Object
  extended bynet.sf.genuine.organizer.internal.ToolBar

public class ToolBar
extends java.lang.Object

Implementation class that belongs to ToolbarBuilder. This class represents the tool bar that is filled with the module's tool bar buttons.

Author:
Tim Wellhausen

Constructor Summary
(package private) ToolBar()
          Empty tool bar
 
Method Summary
(package private)  void addButtonEntries(Module module, java.util.List buttonElements)
          Adds a list of button definition for the given module.
(package private)  javax.swing.JToolBar createJToolBar()
          Creates an instance of JToolBar and fills it with JButton instances according to the tool bar definitions from all modules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolBar

ToolBar()
Empty tool bar

Method Detail

addButtonEntries

void addButtonEntries(Module module,
                      java.util.List buttonElements)
                throws ConfigurationException
Adds a list of button definition for the given module. For each button definition, a tool bar button object is created and added to the current list of buttons.

Throws:
ConfigurationException

createJToolBar

javax.swing.JToolBar createJToolBar()
                              throws ConfigurationException
Creates an instance of JToolBar and fills it with JButton instances according to the tool bar definitions from all modules.

Throws:
ConfigurationException