org.gnu.gtk

Class MenuToolButton

public class MenuToolButton extends ToolButton

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.MenuToolButton. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

A ToolItem containing a button with an additional dropdown menu.

A MenuToolButton is a 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
MenugetMenu()
Gets the Menu associated with this MenuToolButton.
static MenuToolButtongetMenuToolButton(Handle handle)
Internal static factory method to be used by Java-Gnome only.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidsetArrowToolTip(ToolTips tooltips, String tip_text, String tip_private)
Set the tooltip associated with the arrow menu.
voidsetMenu(Menu menu)
Sets the Menu that is popped up when the user clicks on the arrow.

Constructor Detail

MenuToolButton

public MenuToolButton(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Construct a MenuToolButton from a native handle. For internal use only!

MenuToolButton

public MenuToolButton()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new MenuToolButton. No icon widget or label will be set.

MenuToolButton

public MenuToolButton(String label)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new MenuToolButton with the given label. No icon widget will be set.

Parameters: label A String that will be used as label.

MenuToolButton

public MenuToolButton(Widget icon)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new MenuToolButton with the given icon widget. No label will be set.

Parameters: icon A Widget that will be used as icon widget.

MenuToolButton

public MenuToolButton(Widget icon, String label)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new MenuToolButton with the given icon widget and label.

Parameters: icon A Widget that will be used as icon widget. label A String that will be used as label.

MenuToolButton

public MenuToolButton(GtkStockItem stockid)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new MenuToolButton from stock. The new MenuToolButton will contain an icon and label from the stock item indicated by stockid.

Parameters: stockid The GtkStockItem to create.

Method Detail

getMenu

public Menu getMenu()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Gets the Menu associated with this MenuToolButton.

getMenuToolButton

public static MenuToolButton getMenuToolButton(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Internal static factory method to be used by Java-Gnome only.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

setArrowToolTip

public void setArrowToolTip(ToolTips tooltips, String tip_text, String tip_private)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Set the tooltip associated with the arrow menu.

setMenu

public void setMenu(Menu menu)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the Menu that is popped up when the user clicks on the arrow. If menu is null, the arrow button becomes insensitive.