Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.ComboBoxTextEntry

Class ComboBoxTextEntry

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Bin.Bin
                                        dui.ComboBox.ComboBox
                                                dui.ComboBoxText.ComboBoxText
                                                        dui.ComboBoxTextEntry.ComboBoxTextEntry

Implemented interfaces:


public class

ComboBoxTextEntry



A text entry field with a dropdown list

Constructor Summary
public (GtkWidget* gtkWidget)
          Create a ComboBox from a Gtk combo box
()
          Creates a new ComboBoxTextEntry

Methods Summary
void setTextColumn(int textColumn)
          Sets the model column which entry box should use to get strings from to be textColumn.
gint getTextColumn()
          Returns the column which entry_box is using to get the strings from.
Entry getEntry()
          Gets the Entry widget associated with this combo box
String getText()
          Gets the active text of this combo box
void prependOrReplaceText(String text)
          Prepends a new entry and removes any repetition already existent on the list




public ctor(ComboBoxTextEntry)(GtkWidget* gtkWidget)
Create a ComboBox from a Gtk combo box

Parameters:
gtkWidget - the gtk widget



ctor(ComboBoxTextEntry)()
Creates a new ComboBoxTextEntry

setTextColumn

void setTextColumn(int textColumn)
Sets the model column which entry box should use to get strings from to be textColumn.

Parameters:
entry_box - A GtkComboBoxEntry.
text_column - A column in model to get the strings from.

Since:
2.4.

getTextColumn

gint getTextColumn()
Returns the column which entry_box is using to get the strings from.

Parameters:
entry_box - A GtkComboBoxEntry.

Returns:
A column in the data source model of entry_box.

Since:
2.4

getEntry

Entry getEntry()
Gets the Entry widget associated with this combo box

Returns:
The Entry widget of this combo box

getText

String getText()
Gets the active text of this combo box

Returns:
A String with this combo box active text

prependOrReplaceText

void prependOrReplaceText(String text)
Prepends a new entry and removes any repetition already existent on the list

Parameters:
text - the String to prepend