org.gnu.gtk
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 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 | |
---|---|
Menu | getMenu()
Gets the 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 Menu that is popped up when the user clicks on the
arrow. |
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!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.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.
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.
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.
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.
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.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.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.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.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.