Overview  Package   Class  Tree  Index 

be.lassi.ui.util
Class ToolBarBuilder

java.lang.Object
  extended by be.lassi.ui.util.ToolBarBuilder

public class ToolBarBuilder
extends java.lang.Object

Helps building a toolbar.


Constructor Summary
ToolBarBuilder()
           
 
Method Summary
 void add(javax.swing.JComponent component)
          Adds given component to the toolbar.
 void addButton(LassiAction action)
          Adds a button to the toolbar.
 void addGlue()
          Adds a glue that will be given the extra space when the toolbar grows horizontally.
 void addLabel(java.lang.String messageKey)
          Adds a label to the toolbar.
 void addRelatedGap()
          Adds the standard gap for related components.
 void addUnrelatedGap()
          Adds the standard gap for unrelated components.
 javax.swing.JComponent build()
          Gets the toolbar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolBarBuilder

public ToolBarBuilder()
Method Detail

add

public void add(javax.swing.JComponent component)
Adds given component to the toolbar.

Parameters:
component - the component to be added

addButton

public void addButton(LassiAction action)
Adds a button to the toolbar.

Parameters:
action - the button action

addGlue

public void addGlue()
Adds a glue that will be given the extra space when the toolbar grows horizontally.


addLabel

public void addLabel(java.lang.String messageKey)
Adds a label to the toolbar.

Parameters:
messageKey - key to be used to retrieve the message

addRelatedGap

public void addRelatedGap()
Adds the standard gap for related components.


addUnrelatedGap

public void addUnrelatedGap()
Adds the standard gap for unrelated components.


build

public javax.swing.JComponent build()
Gets the toolbar.

Returns:
the toolbar

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2