de.randgestalten.toolbar
Class AbstractToolbarBuilder.DefaultComponentFactory

java.lang.Object
  extended by de.randgestalten.toolbar.AbstractToolbarBuilder.DefaultComponentFactory
All Implemented Interfaces:
AbstractToolbarBuilder.ComponentFactory
Enclosing class:
AbstractToolbarBuilder<V extends AbstractToolbarBuilder,T extends JComponent>

protected static class AbstractToolbarBuilder.DefaultComponentFactory
extends Object
implements AbstractToolbarBuilder.ComponentFactory

Default implementation. Uses JToolBar.Seperator, JButton and a JPanel with BoxLayout


Constructor Summary
protected AbstractToolbarBuilder.DefaultComponentFactory()
           
 
Method Summary
 AbstractButton createButton(Action action)
           
 JComponent createGroupContainer(int orientation)
           
 JComponent createSeperator()
           
 JComponent createSeperator(Dimension dimension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractToolbarBuilder.DefaultComponentFactory

protected AbstractToolbarBuilder.DefaultComponentFactory()
Method Detail

createButton

public AbstractButton createButton(Action action)
Specified by:
createButton in interface AbstractToolbarBuilder.ComponentFactory

createSeperator

public JComponent createSeperator()
Specified by:
createSeperator in interface AbstractToolbarBuilder.ComponentFactory

createSeperator

public JComponent createSeperator(Dimension dimension)
Specified by:
createSeperator in interface AbstractToolbarBuilder.ComponentFactory

createGroupContainer

public JComponent createGroupContainer(int orientation)
Specified by:
createGroupContainer in interface AbstractToolbarBuilder.ComponentFactory