|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.ToolItem
org.gnu.gtk.ToolButton
org.gnu.gtk.MenuToolButton
public class MenuToolButton
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.
Constructor Summary | |
---|---|
MenuToolButton()
Create a new MenuToolButton. |
|
MenuToolButton(GtkStockItem stockid)
Create a new MenuToolButton from stock. |
|
MenuToolButton(org.gnu.glib.Handle handle)
Construct a MenuToolButton from a native handle. |
|
MenuToolButton(java.lang.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,
java.lang.String label)
Create a new MenuToolButton with the given icon widget and label. |
Method Summary | |
---|---|
Menu |
getMenu()
Gets the Menu associated with this MenuToolButton. |
static MenuToolButton |
getMenuToolButton(org.gnu.glib.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,
java.lang.String tip_text,
java.lang.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. |
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, getToolbarStyle, getToolItem, getUseDragWindow, getVisibleHorizontal, getVisibleVertical, rebuildMenu, retrieveProxyMenuItem, setExpand, setHomogeneous, setIsImportant, setProxyMenuItem, setTooltip, setToolTip, setUseDragWindow, setVisibleHorizontal, setVisibleVertical |
Methods inherited from class org.gnu.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuToolButton(org.gnu.glib.Handle handle)
public MenuToolButton()
public MenuToolButton(java.lang.String label)
label
- A String that will be used as label.public MenuToolButton(Widget icon)
icon
- A Widget that will be used as icon widget.public MenuToolButton(Widget icon, java.lang.String label)
icon
- A Widget that will be used as icon widget.label
- A String that will be used as label.public MenuToolButton(GtkStockItem stockid)
stockid
- The GtkStockItem
to create.Method Detail |
---|
public static MenuToolButton getMenuToolButton(org.gnu.glib.Handle handle)
public void setMenu(Menu menu)
Menu
that is popped up when the user clicks on the
arrow. If menu is null, the arrow button becomes
insensitive.
public Menu getMenu()
Menu
associated with this MenuToolButton.
public void setArrowToolTip(ToolTips tooltips, java.lang.String tip_text, java.lang.String tip_private)
public static Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |