This is the Drop Down Combo Box Element. It provides a thyGridCell, a thyButton and a thyListBox working together to provide a Drop-Down Combo Box Widget.
.thyDropDownBox | The class of main element, derived from thyEditBox |
.thyDropDownBox_button | The thyButton element class |
.thyDropDownBox_listBox | The thyListBox element class |
.<object name> | The class of main element, derived from thyEditBox |
.<object name>_edit | The thyEditBox element class |
.<object name>_button | The thyButton element class |
.<object name>_listBox | The thyListBox element class |
onselect | When user selects an option |
onchange | When there’s any change in value (by reset and populate considered) |
This is the Drop Down Combo Box Element. | |
Initialization method called before creation | |
Sets the default value when widget is reset | |
Returns the index of the selected option | |
Returns the value of the selected option | |
Returns the content of the selected option | |
Returns a thyCollection with the index, the value and the content of the selected option | |
Returns the associated content with the specified value | |
Overloaded method that prevents the insertion of children in thyDropDownBox | |
Overloaded method that prevents the removal of children of thyDropDownBox | |
Overwritten method that sets the name of main, button and listbox and refreshes CSS Classes | |
Overloaded method that sets the CSS Class of main, button and listbox | |
Overloaded method that removes dropList from memory | |
Removes all rows from dropList and clear dropEdit | |
Resets dropList to defaultValue | |
Sets the contents of the thyDropDownBox. | |
Gets the value that was selected by the user. | |
Overwritten method that adds the class to main, button and listbox | |
Overwritten method that removes the specified CSS Class from main, button and listbox | |
Hides the thyListBox element | |
Shows the <thyListBox>element | |
Returns the function that shows the ListBox | |
Returns the function that shows the ListBox and press the button | |
Checks on every mousedown event if the event was done out of dropList and in that case, just hide the list |
p.getSelected = function ()
Returns a thyCollection with the index, the value and the content of the selected option
p.addChild = function ()
Overloaded method that prevents the insertion of children in thyDropDownBox
p.removeChild = function ()
Overloaded method that prevents the removal of children of thyDropDownBox
p._populateContents = function ( data )
Sets the contents of the thyDropDownBox. This is the same populate as thyListBox::populate, so pass correct formated data.
data | The thyDropDownBox possible values |
p._hideListBox = function ()
Hides the thyListBox element
Initialization method called before creation
p.initThyDropDownBox = function ()
Sets the default value when widget is reset
p.setDefaultValue = function ( value )
Returns the index of the selected option
p.getSelectedIndex = function ()
Returns the value of the selected option
p.getSelectedValue = function ()
Returns the content of the selected option
p.getSelectedContent = function ()
Returns a thyCollection with the index, the value and the content of the selected option
p.getSelected = function ()
Returns the associated content with the specified value
p.getContentByValue = function ( value )
Overloaded method that prevents the insertion of children in thyDropDownBox
p.addChild = function ()
Overloaded method that prevents the removal of children of thyDropDownBox
p.removeChild = function ()
Overwritten method that sets the name of main, button and listbox and refreshes CSS Classes
p.setName = function ( name )
Overloaded method that sets the CSS Class of main, button and listbox
p.setCSSClass = function ( type )
Overloaded method that removes dropList from memory
p._destroy = function ()
Resets dropList to defaultValue
p._reset = function ()
Sets the contents of the thyDropDownBox.
p._populateContents = function ( data )
Gets the value that was selected by the user.
p._sweepOutContents = function ()
Overwritten method that adds the class to main, button and listbox
p._addCSSClass = function ( cssClass )
Overwritten method that removes the specified CSS Class from main, button and listbox
p._removeCSSClass = function ( cssClass )
Hides the thyListBox element
p._hideListBox = function ()
Shows the <thyListBox>element
p._showListBox = function ()
Returns the function that shows the ListBox
p._eventShowListBox = function ()
Returns the function that shows the ListBox and press the button
p._eventShowListBoxOnFocus = function ()