org.gnu.gtk
Class Combo

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gtk.GtkObject
              extended by org.gnu.gtk.Widget
                  extended by org.gnu.gtk.Container
                      extended by org.gnu.gtk.Box
                          extended by org.gnu.gtk.HBox
                              extended by org.gnu.gtk.Combo

Deprecated.

public class Combo
extends HBox

The Combo box displays a single item and provides a pull-down list of items that can be selected. The drop-down list is displayed when the user clicks on a small arrow button to the right of the entry field.

By default, the user can step through the items in the list by using the arrow keys, though this behavior can be turned off with the setUseArrows() method.

Normally the arrow keys are only active when the contents of the text entry field matches on of the items in the list. If the contents of the entry field do not match any of the items in the list items, then pressing the arrow keys does nothing. However, by calling the setUseArrowsAlways() method you can specify that the arrow keys be active always.


Constructor Summary
Combo()
          Deprecated. Construct a new Combo widget.
Combo(org.gnu.glib.Handle handle)
          Deprecated. Construct a new Combo from a handle to a native resource.
 
Method Summary
 void disableActivate()
          Deprecated. Stops the Combo widget from showing the popup list when the Entry emits the "activate" signal, i.e., when the return key is pressed.
 Entry getEntry()
          Deprecated. Get the Entry field that is a part of this combo.
 java.lang.String getText()
          Deprecated. Retrieve the text from the combo.
static Type getType()
          Deprecated. Retrieve the runtime type used by the GLib library.
 void setCaseSensitive(boolean val)
          Deprecated. Specifies whether the text entered into the Entry field and the text in the line items are case sensitive.
 void setItemString(Item item, java.lang.String itemValue)
          Deprecated. Sets the string to place in the Entry field when a particular item is selected.
 void setPopupdownStrings(java.lang.String[] values)
          Deprecated. Convenience method to set all of the items in the popupdown list.
 void setUseArrorwsAlways(boolean val)
          Deprecated. Specifies if the arrow keys will still work even if the current contents of the Entry field do not match any of the items in the list.
 void setUseArrows(boolean val)
          Deprecated. Specifies if the arrow (cursor) keys can be used to step through the items in the list.
 void setValueInList(boolean val, boolean okifEmpty)
          Deprecated. Specifies whether the value entered in the text entry field must match one of the values in the list.
 
Methods inherited from class org.gnu.gtk.HBox
getHBox
 
Methods inherited from class org.gnu.gtk.Box
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing
 
Methods inherited from class org.gnu.gtk.Container
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, 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, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, 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, sink
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify
 
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

Combo

public Combo()
Deprecated. 
Construct a new Combo widget.


Combo

public Combo(org.gnu.glib.Handle handle)
Deprecated. 
Construct a new Combo from a handle to a native resource.

Method Detail

setPopupdownStrings

public void setPopupdownStrings(java.lang.String[] values)
Deprecated. 
Convenience method to set all of the items in the popupdown list.

Parameters:
values - The array of values to put into the popupdown list.

setValueInList

public void setValueInList(boolean val,
                           boolean okifEmpty)
Deprecated. 
Specifies whether the value entered in the text entry field must match one of the values in the list. If this is set then the user will not be able to perform any other action until a valid value has been entered.

Parameters:
val - true if the value entered must match one of the values in the list.
okifEmpty - true if an empty value is considered valid.

setUseArrows

public void setUseArrows(boolean val)
Deprecated. 
Specifies if the arrow (cursor) keys can be used to step through the items in the list. This is on by default.

Parameters:
val - true if the arrow keys can be used to step through the items in the list.

setUseArrorwsAlways

public void setUseArrorwsAlways(boolean val)
Deprecated. 
Specifies if the arrow keys will still work even if the current contents of the Entry field do not match any of the items in the list.

Parameters:
val - true if the arrows should still work.

setCaseSensitive

public void setCaseSensitive(boolean val)
Deprecated. 
Specifies whether the text entered into the Entry field and the text in the line items are case sensitive.

This may be useful when you have called setValueInList() to limit the values entered but are not worried about case differences.


setItemString

public void setItemString(Item item,
                          java.lang.String itemValue)
Deprecated. 
Sets the string to place in the Entry field when a particular item is selected. This is needed if the list item is not a simple label.

Parameters:
item - The item to add to the list.
itemValue - The string value to display in the Entry if item is selected

disableActivate

public void disableActivate()
Deprecated. 
Stops the Combo widget from showing the popup list when the Entry emits the "activate" signal, i.e., when the return key is pressed.


getEntry

public Entry getEntry()
Deprecated. 
Get the Entry field that is a part of this combo.


getText

public java.lang.String getText()
Deprecated. 
Retrieve the text from the combo.


getType

public static Type getType()
Deprecated. 
Retrieve the runtime type used by the GLib library.