org.gnu.gtk
public class OptionMenu extends Button
Deprecated: Replaced by ComboBox in gtk 2.3
This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.OptionMenu
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
OptionMenu()
Create a new OptionMenu. | |
OptionMenu(Handle handle)
Construct an OptionMenu using a handle to a native resource. |
Method Summary | |
---|---|
void | addListener(OptionMenuListener listener)
Register an object to handle optionMenu events.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
int | getHistory()
Retrieves the index of the currently selected menu item. |
Menu | getMenu()
Returns the Menu associated with this OptionMenu.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | removeListener(OptionMenuListener listener)
Removes a listener
|
void | removeMenu()
Removes the Menu from the OptionMenu |
void | setHistory(int index)
Selects the menu item specified by index making it the
newly selected value for the option menu.
|
void | setMenu(Menu menu)
Provides the Menu that is popped up to allow the user to choose a new
value. |
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.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.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
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
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.
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.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 listenerSee Also: addListener
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 OptionMenuDeprecated: 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.
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.