|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Button
org.gnu.gtk.OptionMenu
ComboBox
in gtk 2.3
public class OptionMenu
deprecated menu widget replaced by 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 | |
---|---|
OptionMenu()
Deprecated. Create a new OptionMenu. |
|
OptionMenu(org.gnu.glib.Handle handle)
Deprecated. Construct an OptionMenu using a handle to a native resource. |
Method Summary | |
---|---|
void |
addListener(OptionMenuListener listener)
Deprecated. Register an object to handle optionMenu events. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
EventType |
getEventType(java.lang.String signal)
Deprecated. |
int |
getHistory()
Deprecated. Retrieves the index of the currently selected menu item. |
Menu |
getMenu()
Deprecated. Returns the Menu associated with this OptionMenu. |
static Type |
getType()
Deprecated. Retrieve the runtime type used by the GLib library. |
void |
removeListener(OptionMenuListener listener)
Deprecated. Removes a listener |
void |
removeMenu()
Deprecated. Removes the Menu from the OptionMenu |
void |
setHistory(int index)
Deprecated. Selects the menu item specified by index making it the
newly selected value for the option menu. |
void |
setMenu(Menu menu)
Deprecated. Provides the Menu that is popped up to allow the user to choose a new value. |
Methods inherited from class org.gnu.gtk.Button |
---|
addListener, click, enter, getButton, getFocusOnClick, getImage, getLabel, getRelief, getUseStock, getUseUnderline, getXAlignment, getYAlignment, leave, press, release, removeListener, setAlignment, setFocusOnClick, setImage, setLabel, setRelief, setUseStock, setUseUnderline |
Methods inherited from class org.gnu.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptionMenu()
public OptionMenu(org.gnu.glib.Handle handle)
Method Detail |
---|
public void setMenu(Menu menu)
menu
- The Menu to add to the OptionMenu.public Menu getMenu()
public void removeMenu()
public static Type getType()
public int getHistory()
public void setHistory(int index)
index
making it the
newly selected value for the option menu.
index
- the index of the menu item to select. Index values are from 0
to n-1.public void addListener(OptionMenuListener listener)
OptionMenuListener
public void removeListener(OptionMenuListener listener)
addListener(OptionMenuListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Button
public EventType getEventType(java.lang.String signal)
getEventType
in class Button
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |