org.gnu.gtk

Class ComboBoxEntry

public class ComboBoxEntry extends ComboBox

Constructor Summary
ComboBoxEntry(Handle hndl)
ComboBoxEntry()
Construct a new ComboBoxEntry that will contain only Strings.
ComboBoxEntry(TreeModel model, int textColumn)
Create a new ComboBoxEntry with the provided model.
Method Summary
static ComboBoxEntrygetComboBoxEntry(Handle handle)
Internal static factory method to be used by Java-Gnome only.
intgetTextColumn()
Returns the column from the model used by this widget.
voidsetTextColumn(int textColumn)
Set the model column which the ComboBoxEntry should use to get the strings.

Constructor Detail

ComboBoxEntry

public ComboBoxEntry(Handle hndl)

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(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 Detail

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