org.gnu.gtk
public class MenuToolButton extends ToolButton
A MenuToolButton is a {@link ToolItem} that contains a button and a small additional button with an arrow. When clicked, the arrow button pops up a dropdown menu.
Since: 2.6
Constructor Summary | |
---|---|
MenuToolButton(Handle handle)
Construct a MenuToolButton from a native handle. | |
MenuToolButton()
Create a new MenuToolButton. | |
MenuToolButton(String label)
Create a new MenuToolButton with the given label. | |
MenuToolButton(Widget icon)
Create a new MenuToolButton with the given icon widget. | |
MenuToolButton(Widget icon, String label)
Create a new MenuToolButton with the given icon widget and label.
| |
MenuToolButton(GtkStockItem stockid)
Create a new MenuToolButton from stock. |
Method Summary | |
---|---|
Menu | getMenu()
Gets the {@link Menu} associated with this MenuToolButton. |
static MenuToolButton | getMenuToolButton(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | setArrowToolTip(ToolTips tooltips, String tip_text, String tip_private)
Set the tooltip associated with the arrow menu. |
void | setMenu(Menu menu)
Sets the {@link Menu} that is popped up when the user clicks on the
arrow. |
Parameters: label A String that will be used as label.
Parameters: icon A Widget that will be used as icon widget.
Parameters: icon A Widget that will be used as icon widget. label A String that will be used as label.
Parameters: stockid The {@link GtkStockItem} to create.