org.gnu.gtk
Class 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.
addListener , getEventListenerClass , getEventType , getIconWidget , getLabel , getLabelWidget , getStockId , getToolButton , getUseUnderline , removeListener , setIconWidget , setLabel , setLabelWidget , setStockId , setUseUnderline |
getExpand , getHomogeneous , getIconSize , getIsImportant , getOrientation , getProxyMenuItem , getReliefStyle , getToolItem , getToolbarStyle , getUseDragWindow , getVisibleHorizontal , getVisibleVertical , rebuildMenu , retrieveProxyMenuItem , setExpand , setHomogeneous , setIsImportant , setProxyMenuItem , setToolTip , setTooltip , setUseDragWindow , setVisibleHorizontal , setVisibleVertical |
add , addListener , getBorderWidth , getChildren , getEventListenerClass , getEventType , getResizeMode , getType , remove , removeListener , resizeChildren , setBorderWidth , setResizeMode |
activate , addAccelerator , addEvents , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , canActivateAccel , createContext , createLayout , draw , drawArea , drawArea , finish , getAccessible , getAllocation , getCanFocus , getColormap , getContext , getData , getDisplay , getDragData , getEventListenerClass , getEventType , getExtensionEvents , getModifierStyle , getName , getParent , getParentWindow , getPointer , getRootWindow , getScreen , getSensitive , getStyle , getToplevel , getType , getWidget , getWindow , grabDefault , grabFocus , hasFocus , hasScreen , hide , hideAll , highlight , highlight , intersect , isAncestor , makeWidget , modifyStyle , popColormap , pushColormap , realize , removeAccelerator , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , reparent , setBackgroundColor , setBaseColor , setCanFocus , setColormap , setDoubleBuffered , setDragDestination , setDragIcon , setDragIconPixbuf , setDragIconStock , setDragSource , setEvents , setExtensionEvents , setFont , setForegroundColor , setMinimumSize , setName , setNoDragDestination , setNoDragSource , setSensitive , setTextColor , shapeCombineMask , show , showAll , unHighlight , unHighlight |
addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addListener , collect , freezeNotify , getBooleanProperty , getData , getDoubleProperty , getEventListenerClass , getEventType , getFloatProperty , getGObjectFromHandle , getIntProperty , getJavaObjectProperty , getLongProperty , getPixbufProperty , getProperty , getStringProperty , hasProperty , notify , removeEventHandler , removeListener , setBooleanProperty , setData , setDoubleProperty , setFloatProperty , setIntProperty , setJavaObjectProperty , setLongProperty , setPixbufProperty , setProperty , setStringProperty , thawNotify |
MenuToolButton
public MenuToolButton()
Create a new MenuToolButton. No icon widget or label will be set.
MenuToolButton
public MenuToolButton(Handle handle)
Construct a MenuToolButton from a native handle. For internal use only!
MenuToolButton
public MenuToolButton(String label)
Create a new MenuToolButton with the given label. No icon widget will be
set.
label
- A String that will be used as label.
MenuToolButton
public MenuToolButton(GtkStockItem stockid)
Create a new MenuToolButton from stock. The new MenuToolButton will
contain an icon and label from the stock item indicated by
stockid.
MenuToolButton
public MenuToolButton(Widget icon)
Create a new MenuToolButton with the given icon widget. No label will be
set.
icon
- A Widget that will be used as icon widget.
MenuToolButton
public MenuToolButton(Widget icon,
String label)
Create a new MenuToolButton with the given icon widget and label.
icon
- A Widget that will be used as icon widget.label
- A String that will be used as label.
getMenu
public Menu getMenu()
Gets the
Menu
associated with this MenuToolButton.
getMenuToolButton
public static MenuToolButton getMenuToolButton(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Bin
setArrowToolTip
public void setArrowToolTip(ToolTips tooltips,
String tip_text,
String tip_private)
Set the tooltip associated with the arrow menu.
setMenu
public void setMenu(Menu menu)
Sets the
Menu
that is popped up when the user clicks on the
arrow. If
menu is
null, the arrow button becomes
insensitive.