net.sf.genuine.organizer.internal
Class ToolBarBuilder

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

class ToolBarBuilder
extends java.lang.Object

Builder that takes the tool bar definitions of all modules one after the other and builds a tool bar incorporating the button definitions from all modules.

Author:
Tim Wellhausen

Constructor Summary
(package private) ToolBarBuilder()
           
 
Method Summary
(package private)  void addButtons(Module module, org.jdom.Element toolBarElement)
          Adds the definition of a module by passing both the module and its "toolbar" element.
(package private)  javax.swing.JToolBar buildToolBar(ServiceBroker serviceBroker)
          Creates a new JToolBar instance and adds all buttons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolBarBuilder

ToolBarBuilder()
Method Detail

addButtons

void addButtons(Module module,
                org.jdom.Element toolBarElement)
          throws ConfigurationException
Adds the definition of a module by passing both the module and its "toolbar" element. All button entries contained in the given element are evaluated. For each button an Action instance is retrieved from the module by calling the Module's getAction method with the menu item's id.

Throws:
ConfigurationException

buildToolBar

javax.swing.JToolBar buildToolBar(ServiceBroker serviceBroker)
                            throws ConfigurationException
Creates a new JToolBar instance and adds all buttons.

Throws:
ConfigurationException