Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Combo

Class Combo

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Box.Box
                                        dui.HBox.HBox
                                                dui.Combo.Combo

Implemented interfaces:


public class

Combo



A combo box.

Constructor Summary
protected (GtkWidget *gtkWidget)
          
public ()
          Creates a new empty combo box
(void delegate())
          Creates a new combo box with a listener on the enter key

Methods Summary
public char toString()
          
void dump()
          
void addItem(Widget item)
          Adds a widget item to this combo.
void addItem(Widget item, char itemString)
          Adds a widget item to this combo and sets the item string
void addItem(Widget item, String itemString)
          
List getList()
          Gets this combo list
void setList(List list)
          Sets this combo list.
Entry getEntry()
          Gets this combo entry
String getSelectedText()
          Gets the selected text of the combo box
void setText(char str)
          Sets the seletect text of the combo box
void setText(String str)
          
void setStrings(char strings)
          Sets the list of the combo box
void setStrings(String strings)
          
void appendString(String str)
          \todo pre/appendsString \bug crashes
void setStrings(ListG list)
          Sets the list of the combo box
void setItemString(Widget item, char str)
          Sets the idem string to display on the entry widget of the combo box.
void setItemString(Widget item, String str)
          
void useArrows(bit use)
          Set the use arrows flags
void useArrowsAlways(bit use)
          Sets the user arrows always flags
void caseSensitive(bit sensitive)
          Sets if the combo box is case sensitive
void disableActivate()
          Do not show the drop down list whe the enter key is pressed.




protected ctor(Combo)(GtkWidget *gtkWidget)

toString

public char toString()

dump

void dump()



public ctor(Combo)()
Creates a new empty combo box



ctor(Combo)(void delegate())
Creates a new combo box with a listener on the enter key

addItem

void addItem(Widget item)
Adds a widget item to this combo.

Parameters:
item - the widget to add

addItem

void addItem(Widget item, char itemString)
Adds a widget item to this combo and sets the item string

Parameters:
item - the widget to add
itemString - the item string

addItem

void addItem(Widget item, String itemString)

getList

List getList()
Gets this combo list

Returns:
the combo list

setList

void setList(List list)
Sets this combo list.

Parameters:
list - the new combo list

getEntry

Entry getEntry()
Gets this combo entry

Returns:
the combo entry

getSelectedText

String getSelectedText()
Gets the selected text of the combo box

Returns:
the selected text

setText

void setText(char str)
Sets the seletect text of the combo box

Parameters:
str -

setText

void setText(String str)

setStrings

void setStrings(char strings)
Sets the list of the combo box

Parameters:
strings - and array of strings

setStrings

void setStrings(String strings)

appendString

void appendString(String str)
\todo pre/appendsString \bug crashes

setStrings

void setStrings(ListG list)
Sets the list of the combo box

Parameters:
list - the string list

setItemString

void setItemString(Widget item, char str)
Sets the idem string to display on the entry widget of the combo box.

Parameters:
item - the item to which we want to set the string
str - the string to display for the item

setItemString

void setItemString(Widget item, String str)

useArrows

void useArrows(bit use)
Set the use arrows flags

Parameters:
use -

useArrowsAlways

void useArrowsAlways(bit use)
Sets the user arrows always flags

Parameters:
use -

caseSensitive

void caseSensitive(bit sensitive)
Sets if the combo box is case sensitive

Parameters:
sensitive -

disableActivate

void disableActivate()
Do not show the drop down list whe the enter key is pressed.