Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
public class OptionMenu
extends Button
ComboBox
in gtk 2.3.
An OptionMenu is a widget that allows the user to choose from a list of valid
choices. When activated the OptionMenu displays a popup Menu which allows the
user to make a new choice.
Constructor Summary | |
| |
|
Method Summary | |
void |
|
Class |
|
EventType |
|
int |
|
Menu |
|
static Type |
|
void |
|
void |
|
void |
|
void |
Methods inherited from class org.gnu.gtk.Button | |
addListener , click , enter , getButton , getEventListenerClass , getEventType , getFocusOnClick , getImage , getLabel , getRelief , getType , getUseStock , getUseUnderline , getXAlignment , getYAlignment , leave , press , release , removeListener , setAlignment , setFocusOnClick , setImage , setLabel , setRelief , setUseStock , setUseUnderline |
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 OptionMenu()
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 OptionMenu.
public OptionMenu(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 an OptionMenu using a handle to a native resource.
public void addListener(OptionMenuListener 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 handle optionMenu events.
- See Also:
OptionMenuListener
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Button
public int getHistory()
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.
Retrieves the index of the currently selected menu item. The menu items are numbered from top to bottom, starting with 0.
- Returns:
- index of the selected menu item, or -1 if there are no menu items
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.
Returns the Menu associated with this OptionMenu.
- Returns:
- The Menu associated with this OptionMenu.
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(OptionMenuListener 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.
Removes a listener
- See Also:
addListener(OptionMenuListener)
public void removeMenu()
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 Menu from the OptionMenu
public void setHistory(int index)
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.
Selects the menu item specified byindex
making it the newly selected value for the option menu.
- Parameters:
index
- the index of the menu item to select. Index values are from 0 to n-1.
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.
Provides the Menu that is popped up to allow the user to choose a new value. You should provide a simple menu avoiding the use of tearoff menu items, submenus, and accelerators.
- Parameters:
menu
- The Menu to add to the OptionMenu.