org.gnu.gtk

Class MenuBar


public class MenuBar
extends MenuShell

The MenuBar is a subclass of MenuShell which contains one to many MenuItem. The result is a standard menu bar which can hold many menu items. MenuBar allows for a shadow type to be set for aesthetic purposes.

Constructor Summary

MenuBar()
Create a new MenuBar.
MenuBar(Handle handle)
Creates a new menubar from a handle to internal resources.

Method Summary

PackDirection
getChildPackDirection()
static MenuBar
getMenuBar(Handle handle)
Internal static factory method to be used by Java-Gnome only.
PackDirection
getPackDirection()
static Type
getType()
Retrieve the runtime type used by the GLib library.
void
setChildPackDirection(PackDirection packDirection)
void
setPackDirection(PackDirection packDirection)

Methods inherited from class org.gnu.gtk.MenuShell

activateItem, append, cancel, deactivate, deselect, getTakeFocus, getType, insert, prepend, selectFirst, selectItem, setTakeFocus

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

Methods inherited from class org.gnu.gtk.Widget

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

Methods inherited from class org.gnu.gtk.GtkObject

destroy, getType, sink

Constructor Details

MenuBar

public MenuBar()
Create a new MenuBar.

MenuBar

public MenuBar(Handle handle)
Creates a new menubar from a handle to internal resources. This should only be used internally by Java-Gnome.

Method Details

getChildPackDirection

public PackDirection getChildPackDirection()

getMenuBar

public static MenuBar getMenuBar(Handle handle)
Internal static factory method to be used by Java-Gnome only.

getPackDirection

public PackDirection getPackDirection()

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.
Overrides:
getType in interface MenuShell

setChildPackDirection

public void setChildPackDirection(PackDirection packDirection)

setPackDirection

public void setPackDirection(PackDirection packDirection)
Parameters:
packDirection -