org.jtheque.utils.ui
Class LinedButtonBarBuilder

java.lang.Object
  extended by org.jtheque.utils.ui.LinedButtonBarBuilder

public final class LinedButtonBarBuilder
extends Object

A builder for a button bar.

Author:
Baptiste Wicht

Constructor Summary
LinedButtonBarBuilder(int lines)
          Construct a new ButtonBarBuilder.
 
Method Summary
 void addActions(int line, Action... actions)
          Add actions to the bar.
 Component getPanel()
          Return the panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinedButtonBarBuilder

public LinedButtonBarBuilder(int lines)
Construct a new ButtonBarBuilder.

Parameters:
lines - The number of lines.
Method Detail

addActions

public void addActions(int line,
                       Action... actions)
Add actions to the bar.

Parameters:
line - The line to add the actions in.
actions - The actions to add.

getPanel

public Component getPanel()
Return the panel.

Returns:
The panel.


Copyright © 2010 JTheque. All Rights Reserved.