Method Summary |
|
native public void | addListener(ComboBoxListener listener) |
native public void | clearValue() |
native public void | collapse() |
native protected JavaScriptObject | create(JavaScriptObject jsObj) |
native public void | doQuery(String query, boolean forceAll) |
native public void | expand() |
protected JavaScriptObject | getConfigPrototype() |
native protected Element | getElement(JavaScriptObject jsObj) |
native public String | getValue() |
public String | getXType() |
native public boolean | isExpanded() |
native public void | select(int index, boolean scrollIntoView) |
native public void | selectByValue(String value, boolean scrollIntoView) |
public void | setAllQuery(String allQuery) |
public void | setDisplayField(String displayField) The underlying data field name to bind to this ComboBox (defaults to undefined if mode = 'remote' or 'text' if mode = 'local'). |
public void | setEditable(boolean editable) False to prevent the user from typing text directly into the field, just like a traditional select (defaults to true). |
public void | setForceSelection(boolean forceSelection) |
public void | setHandleHeight(int handleHeight) |
public void | setHiddenName(String hiddenName) |
public void | setHideTrigger(boolean hideTrigger) True to hide the trigger element and display only the base text field (defaults to false). |
public void | setItemSelector(String itemSelector) A CSS selector in any format supported by
com.gwtext.client.core.DomQuery that will be used to determine
what nodes this DataView will be working with. |
public void | setLazyRender(boolean lazyRender) True to prevent the ComboBox from rendering until requested
(should always be used when rendering into an Editor, defaults to false). |
public void | setLinked(boolean linked) True to indicate this is a linked combo box. |
public void | setListAlign(String anchorPosition) A valid anchor position value. |
public void | setListClass(String listClass) CSS class to apply to the dropdown list element (defaults to ''). |
public void | setListWidth(int listWidth) |
public void | setLoadingText(String loadingText) The text to display in the dropdown list while data is loading. |
public void | setMaxHeight(int maxHeight) The maximum height in pixels of the dropdown list before scrollbars are shown (defaults to 300). |
public void | setMinChars(int minChars) |
public void | setMinListWidth(int minListWidth) The minimum width of the dropdown list in pixels (defaults to 70, will be
ignored if listWidth has a higher value). |
public void | setMode(ComboBox.Mode mode) Set to
com.gwtext.client.widgets.form.ComboBox.LOCAL if the ComboBox loads local data. |
public void | setPageSize(int pageSize) If greater than 0, a paging toolbar is displayed in the footer of the dropdown list and the filter queries will
execute with page start and limit parameters. |
public void | setQueryDelay(int queryDelay) |
public void | setQueryParam(String queryParam) |
public void | setResizable(boolean resizable) True to add a resize handle to the bottom of the dropdown list (defaults to false). |
public void | setSelectedClass(String selectedClass) |
public void | setShadow(boolean shadow) |
public void | setShadow(Shadow.Type shadow) "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right. |
public void | setStore(Store store) |
public void | setTitle(String title) If supplied, a header element is created containing this text and added into the top of the dropdown list
(defaults to undefined, with no header element). |
public void | setTpl(Template template) Set the template to use to render the ComboBox items. |
public void | setTpl(String template) Set the template to use to render the ComboBox items. |
public void | setTriggerAction(ComboBox.Trigger triggerAction) The action to execute when the trigger field is activated. |
public void | setTriggerClass(String triggerClass) A CSS class to apply to the trigger. |
public void | setTypeAhead(boolean typeAhead) True to populate and autoselect the remainder of the text being typed after a configurable delay (typeAheadDelay)
if it matches a known value (defaults to false). |
public void | setTypeAheadDelay(int typeAheadDelay) |
public void | setValue(String value) Sets the specified value into the field. |
public void | setValueField(String valueField) The underlying data value name to bind to this CombBox (defaults to undefined if mode = 'remote' or 'value' if mode = 'local'). |
public void | setValueNotFoundText(String valueNotFoundText) When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText
will be displayed as the field text if defined (defaults to undefined). |