Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
public class MenuToolButton
extends ToolButton
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.
Constructor Summary | |
| |
| |
| |
| |
| |
|
Method Summary | |
Menu |
|
static MenuToolButton |
|
static Type |
|
void |
|
void |
Methods inherited from class org.gnu.gtk.ToolButton | |
addListener , getEventListenerClass , getEventType , getIconWidget , getLabel , getLabelWidget , getStockId , getToolButton , getUseUnderline , removeListener , setIconWidget , setLabel , setLabelWidget , setStockId , setUseUnderline |
Methods inherited from class org.gnu.gtk.ToolItem | |
getExpand , getHomogeneous , getIconSize , getIsImportant , getOrientation , getProxyMenuItem , getReliefStyle , getToolItem , getToolbarStyle , getUseDragWindow , getVisibleHorizontal , getVisibleVertical , rebuildMenu , retrieveProxyMenuItem , setExpand , setHomogeneous , setIsImportant , setProxyMenuItem , setToolTip , setTooltip , setUseDragWindow , setVisibleHorizontal , setVisibleVertical |
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
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.
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!
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.
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
- TheGtkStockItem
to create.
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.
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.
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 theMenu
associated with this MenuToolButton.
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.
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.
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.
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 theMenu
that is popped up when the user clicks on the arrow. If menu is null, the arrow button becomes insensitive.