org.tigris.swidgets
Class Toolbar
JToolBar
org.tigris.swidgets.Toolbar
- MouseListener
public class Toolbar
extends JToolBar
implements MouseListener
A toolbar class which assumes rollover effects and automatically
gives tooltip to any buttons created by adding an action.
Toolbar() - Creates a new instance of Toolbar
|
Toolbar(String title) - Creates a new instance of Toolbar
|
Toolbar(String title, boolean floatable) - Creates a new instance of Toolbar
|
Toolbar(int orientation) - Creates a new instance of Toolbar with the given orientation
|
Toolbar
public Toolbar()
Creates a new instance of Toolbar
Toolbar
public Toolbar(String title)
Creates a new instance of Toolbar
title
- The title to display in the titlebar when toolbar
is floating
Toolbar
public Toolbar(String title,
boolean floatable)
Creates a new instance of Toolbar
title
- The title to display in the titlebar when toolbar
is floatingfloatable
- true if the toolbar can be dragged to a
floating position
Toolbar
public Toolbar(int orientation)
Creates a new instance of Toolbar with the given orientation
orientation
- HORIZONTAL or VERTICAL
add
public JButton add(Action action)
javax.swing.JToolBar.add(javax.swing.Action)
mouseClicked
public void mouseClicked(MouseEvent me)
java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent)
mouseEntered
public void mouseEntered(MouseEvent me)
java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent)
mouseExited
public void mouseExited(MouseEvent me)
java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent)
mousePressed
public void mousePressed(MouseEvent me)
java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent)
mouseReleased
public void mouseReleased(MouseEvent me)
java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent)
setRollover
public void setRollover(boolean r)
javax.swing.JToolBar.setRollover(boolean)