|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.form.Field<D>
com.extjs.gxt.ui.client.widget.form.TextField<D>
com.extjs.gxt.ui.client.widget.form.TriggerField<D>
com.extjs.gxt.ui.client.widget.form.ComboBox<SimpleComboValue<T>>
com.extjs.gxt.ui.client.widget.form.SimpleComboBox<T>
T - the data typepublic class SimpleComboBox<T>
A ComboBox subclass that supports any simple data types.
SimpleComboBox creates and manages a ListStore of
SimpleComboBox instances. You can call
SimpleComboValue.getValue() to obtain the simple value.
SimpleComboBox combo = new SimpleComboBox();
combo.add("Darrell");
combo.add("Maro");
combo.add("Lia");
combo.setSimpleValue("Maro");
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.ComboBox |
|---|
ComboBox.ComboBoxMessages, ComboBox.TriggerAction |
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.TextField |
|---|
TextField.TextFieldMessages |
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
Field.FieldImages, Field.FieldMessages |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
SimpleComboBox()
Creates a new simple combo box. |
|
| Method Summary | |
|---|---|
void |
add(java.util.List<T> values)
Adds the values to the list. |
void |
add(T value)
Adds the value. |
SimpleComboValue<T> |
findModel(T value)
Returns the model for the given value. |
int |
getSelectedIndex()
Returns the selected index. |
T |
getSimpleValue()
Returns the simple value. |
void |
remove(T value)
Removes the value. |
void |
removeAll()
Removes all the values. |
void |
setSimpleValue(T value)
Sets the combo value. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.form.TriggerField |
|---|
getTriggerStyle, isEditable, isHideTrigger, isMonitorTab, onComponentEvent, setEditable, setHideTrigger, setMonitorTab, setTriggerStyle |
| Methods inherited from class com.extjs.gxt.ui.client.widget.form.TextField |
|---|
getAllowBlank, getCursorPos, getMaxLength, getMinLength, getRegex, getSelectedText, getSelectionLength, getSelectOnFocus, getValidator, isPassword, select, selectAll, setAllowBlank, setCursorPos, setEmptyText, setMaxLength, setMinLength, setPassword, setRegex, setSelectionRange, setSelectOnFocus, setValidator |
| Methods inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
addInputStyleName, addKeyListener, clearInvalid, focus, forceInvalid, getAutoValidate, getEmptyText, getErrorMessage, getFieldLabel, getImages, getLabelSeparator, getLabelStyle, getMessageTarget, getName, getOriginalValue, getRawValue, getValidateOnBlur, getValidationDelay, isDirty, isFireChangeEventOnSetValue, isHideLabel, isInEditor, isReadOnly, isValid, isValid, markInvalid, removeInputStyleName, removeKeyListener, reset, setAutoValidate, setFieldLabel, setFireChangeEventOnSetValue, setHideLabel, setImages, setInEditor, setLabelSeparator, setLabelStyle, setMessages, setMessageTarget, setName, setOriginalValue, setReadOnly, setTabIndex, setValidateOnBlur, setValidationDelay, updateOriginalValue, validate, validate |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleComboBox()
| Method Detail |
|---|
public void add(java.util.List<T> values)
values - the valuespublic void add(T value)
value - the valuepublic SimpleComboValue<T> findModel(T value)
value - the value
public int getSelectedIndex()
public T getSimpleValue()
public void remove(T value)
value - the valuepublic void removeAll()
public void setSimpleValue(T value)
value - the value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||