Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
public class MenuItem
extends Item
Constructor Summary | |
| |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
Class |
|
EventType |
|
static MenuItem |
|
static Type |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Item | |
addListener , deselect , getEventListenerClass , getEventType , getType , removeListener , select , toggle |
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 MenuItem()
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 new menu item.
public MenuItem(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.
Create a new MenuItem with a handle to a native resource returned from a call to the native libraries. Should only be used internally by Java-Gnome.
- Parameters:
handle
- The handle that represents a pointer to a native resource.
public MenuItem(String label, boolean hasMnemonic)
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 new menu item with the provided label.
- Parameters:
label
- The label to display in the menu item.hasMnemonic
- Indicates if the provided string contains mnemonics
public void addListener(MenuItemListener listener)
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.
Register an object to receive event notification.
- Parameters:
listener
- The object that has implemented the MenuItemListener interface that is to receive the menu item events.
public void emitActivate()
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.
Emits the "activate" signal on this MenuItem.
public void emitDeselect()
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.
Emits the "deselect" signal on this MenuItem.
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Item
public static MenuItem getMenuItem(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.
Create a new MenuItem with a handle to a native resource returned from a call to the native libraries. Should only be used internally by Java-Gnome.
- Parameters:
handle
- The handle that represents a pointer to a native resource.
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 removeListener(MenuItemListener listener)
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.
Unregister an object that was receiving menuitem event notification.
- Parameters:
listener
- The object that is to no longer receive menuitem events.
public void removeSubmenu()
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.
Removes the widget's submenu.
public void setLeftJustified()
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.
MenuItem's are left justified by default. Use this method to change a MenuItem from right justified back to left justified.
public void setRightJustified()
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 whether the menu item appears to the right side of the menu bar. This was traditionally done for the Help menu, but is now considered a bad idea. (If the widget layout is reversed for a right to left language like Hebrew or Arabic, right-justified menu items appear at the left).
public void setSubmenu(Menu submenu)
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 submenu, or changes it.
- Parameters:
submenu
- The submenu.