Class Index | File Index

Classes


Class gtk.ComboBox


Extends gtk.Widget.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ComboBox is a class to create a combobox dropdown list that contains many optional choices The combobox dropdown list stores data as model from gtk.TreeStore.
Field Summary
Field Attributes Field Name and Description
 
'changed' signal
 
'clicked' signal
Method Summary
Method Attributes Method Name and Description
 
A method to get/return string value of selected item
 
A method to get/return object of selected item
 
A method to reload or refresh its contents
 
setModel(model)
A method to to set model onto the widget
 
setSelectedItemBy(valueMember, value)
A method to set selected item by any value member
 
setTabindex(index)
A method to set its tab index number
 
showError(isOnError)
A method to set displaying error or not
Methods borrowed from class gtk.Widget:
activate, disable, enable, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideLoading, hideTooltip, isHidden, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, resizeHeightComposite, resizeWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showLoading, showTooltip, sizeRequest
Methods borrowed from class gobject.GObject:
connect, disconnect, emit
Class Detail
gtk.ComboBox()
ComboBox is a class to create a combobox dropdown list that contains many optional choices The combobox dropdown list stores data as model from gtk.TreeStore.
See:
gtk.TreeStore
Field Detail
COMBOBOX_CHANGED
'changed' signal

COMBOBOX_CLICKED
'clicked' signal
Method Detail
{String} getActiveText()
A method to get/return string value of selected item
Returns:
{String} The text value of selected item

{Object} getSelectedItem()
A method to get/return object of selected item
Returns:
{Object} , The object value of the selected item

refresh()
A method to reload or refresh its contents

setModel(model)
A method to to set model onto the widget
Parameters:
{Object} model
The object model value from gtk.TreeStore

setSelectedItemBy(valueMember, value)
A method to set selected item by any value member
Parameters:
{String} valueMember
The name of value member assigned
{String or Integer} value
The field value in accordance with its value member

setTabindex(index)
A method to set its tab index number
Parameters:
{Interger} index
The tab index value to be set

showError(isOnError)
A method to set displaying error or not
Parameters:
{Boolean} isOnError
The boolean value to be passed: true is to show error, false is to hide

Documentation generated by JsDoc Toolkit 2.1.0 on Tue Jul 06 2010 11:13:54 GMT+0700 (ICT)