org.tigris.swidgets

Class PopupToolBox

Implemented Interfaces:
MouseListener

public class PopupToolBox
extends Toolbox

Author:
Bob Tarling

Constructor Summary

PopupToolBox(int rows, int cols)
Creates a new instance of PopupToolBox.

Method Summary

JButton
add(Action action)
void
rebuild()
Occasionally the ToolBox gets in a state where a button shows rollover status at the wrong time.
void
setButtonMouseListener(MouseListener theMouseListener)

Methods inherited from class org.tigris.swidgets.Toolbar

add, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setRollover

Constructor Details

PopupToolBox

public PopupToolBox(int rows,
                    int cols)
Creates a new instance of PopupToolBox.
Parameters:
rows - the number of rows
cols - the number of columns

Method Details

add

public JButton add(Action action)
Overrides:
add in interface Toolbar
See Also:
javax.swing.JToolBar.add(javax.swing.Action)

rebuild

public void rebuild()
Occasionally the ToolBox gets in a state where a button shows rollover status at the wrong time. The only way to get around this is to rebuild the ToolBox.

setButtonMouseListener

public void setButtonMouseListener(MouseListener theMouseListener)
Parameters:
theMouseListener - the new mouse listener