org.gnu.gtk

Class ComboBoxEntry

Implemented Interfaces:
CellLayout

public class ComboBoxEntry
extends ComboBox

Constructor Summary

ComboBoxEntry()
Construct a new ComboBoxEntry that will contain only Strings.
ComboBoxEntry(Handle hndl)
Create a new Widget with a handle to a native resource returned from a call to the native libraries.
ComboBoxEntry(TreeModel model, int textColumn)
Create a new ComboBoxEntry with the provided model.

Method Summary

static ComboBoxEntry
getComboBoxEntry(Handle handle)
Internal static factory method to be used by Java-Gnome only.
int
getTextColumn()
Returns the column from the model used by this widget.
void
setTextColumn(int textColumn)
Set the model column which the ComboBoxEntry should use to get the strings.

Methods inherited from class org.gnu.gtk.ComboBox

addAttributeMapping, addListener, appendText, clear, clearAttributeMappings, getActive, getActiveIter, getActiveText, getAddTearoffs, getColumnSpanColumn, getComboBox, getEventListenerClass, getEventType, getFocusOnClick, getModel, getPopupAccessible, getRowSeparatorMethod, getRowSpanColumn, getWrapWidth, insertText, packEnd, packStart, popdown, popup, prependText, removeListener, removeText, reorder, setActive, setActiveIter, setAddTearoffs, setColumnSpanColumn, setFocusOnClick, setModel, setRowSeparatorMethod, setRowSpanColumn, setWrapWidth

Methods inherited from class org.gnu.gtk.Bin

getChild, getType

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

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, getEventListenerClass, getEventType, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getType, 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, getType, sink

Constructor Details

ComboBoxEntry

public ComboBoxEntry()
Construct a new ComboBoxEntry that will contain only Strings. If you need to include objects other than strings you must use the constructor that takes a TreeModel. When you use this constructor you should use the appendText, insertText, prependText, and removeText methods to add or remove text from the comboBox.

ComboBoxEntry

public ComboBoxEntry(Handle hndl)
Create a new Widget with a handle to a native resource returned from a call to the native libraries.
Parameters:

ComboBoxEntry

public ComboBoxEntry(TreeModel model,
                     int textColumn)
Create a new ComboBoxEntry with the provided model. If you use this constructor you should not use the appendText, insertText, prependText, or removeText methods. You should update the model when you need to change the values in the ComboBox.
Parameters:
model -
textColumn -

Method Details

getComboBoxEntry

public static ComboBoxEntry getComboBoxEntry(Handle handle)
Internal static factory method to be used by Java-Gnome only.

getTextColumn

public int getTextColumn()
Returns the column from the model used by this widget.

setTextColumn

public void setTextColumn(int textColumn)
Set the model column which the ComboBoxEntry should use to get the strings.
Parameters:
textColumn -