public class SelectItem extends TextItem implements PickList
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled_CONTENT_CHANGED_EVENT_TYPE, _CSS, _HISTORY_ENABLED, _REQUEST_SCROLL_TO_EVENT_TYPE, id, touched| Constructor and Description |
|---|
SelectItem(java.lang.String name) |
SelectItem(java.lang.String name,
java.lang.String title) |
SelectItem(java.lang.String name,
java.lang.String title,
java.lang.String hint) |
| Modifier and Type | Method and Description |
|---|---|
protected com.smartgwt.mobile.client.internal.widgets.Picker2 |
_createPicker() |
boolean |
_getAllowEmptyValue() |
boolean |
_getDefaultToFirstOption() |
java.lang.Object |
_getFirstOptionValue() |
boolean |
_isPickerEnabled() |
void |
_setElementReadOnly(boolean readOnly) |
void |
fetchData() |
void |
fetchData(DSCallback dsCallback) |
java.lang.Boolean |
getAllowEmptyValue() |
java.lang.Boolean |
getDefaultToFirstOption() |
java.lang.String |
getOptionOperationId() |
java.lang.String |
getPickListBaseStyle() |
Criteria |
getPickListCriteria()
Returns the
Criteria used to make fetches if data-bound. |
ListGridField[] |
getPickListFields() |
protected Criteria |
getPickListFilterCriteria()
Returns a set of filter criteria to be applied to the data displayed in the
PickList
when it is shown. |
Record |
getSelectedRecord() |
void |
setAllowEmptyValue(java.lang.Boolean allowEmptyValue) |
void |
setDefaultToFirstOption(java.lang.Boolean defaultToFirstOption) |
void |
setEmptyDisplayValue(java.lang.String emptyDisplayValue) |
void |
setOptionDataSource(DataSource ds) |
void |
setOptionOperationId(java.lang.String optionOperationId) |
void |
setPickListBaseStyle(java.lang.String pickListBaseStyle) |
void |
setPickListCriteria(Criteria criteria) |
void |
setPickListFields(ListGridField... pickListFields) |
void |
setValueField(java.lang.String valueField) |
void |
setValueMap(java.util.LinkedHashMap<?,java.lang.String> valueMap)
Set the valueMap for this item.
|
void |
showValue(java.lang.Object value)
Called by the
DataManager to notify this HasDataValue that
the DataManager's value for this HasDataValue was changed
and that this HasDataValue needs to update its display field to the given
value. |
_getShowHintInField, _nativeElementBlur, _shouldApplyStaticTypeFormat, getShowHintInField, getTextBoxStyle, getValueAsString, onBrowserEvent, setBrowserInputType, setTextBoxStyle, validate_addValuesSelectedHandler, _checkForEditorExit, _copyFieldConfiguration, _elementBlur, _formatDataType, _getChildFromLocatorSubstring, _getDateFormatter, _getDatetimeFormatter, _getDefaultValue, _getDisplayValue, _getEmptyDisplayValue, _getInnerAttributeFromSplitLocator, _getInputElement, _getMultipleValueSeparator, _getPicker, _getRequired, _getShowHint, _getTimeFormatter, _getValueMap, _handleEditorExit, _handleInput, _isReadOnly, _isSetToDefaultValue, _mapDisplayToValue, _mapKey, _mapValueToDisplay, _onEnd, _onStart, _onValuesSelected, _parseDisplayValue, _refreshDisplayValue, _setElementValue, _storeValue, _unmapKey, _updateDateFormatter, _updateValue, _updateValue, addBlurHandler, addChangedHandler, addKeyPressHandler, getCriterion, getDateFormatter, getDatetimeFormatter, getDisplayField, getDisplayFieldName, getEditorValueFormatter, getEditorValueParser, getEmptyDisplayValue, getForm, getHint, getName, getOptionDataSource, getRequired, getShowHint, getTextAlign, getTimeFormatter, getValue, getValueField, getValueFieldName, getValueFormatter, onChanged, onUnload, setDataManager, setDateFormatter, setDatetimeFormatter, setDefaultValue, setDisplayField, setEditorValueFormatter, setEditorValueParser, setElement, setFieldName, setHint, setName, setRequired, setShowHint, setTextAlign, setTimeFormatter, setValue, setValue, setValueFormatter, setValueMap, showPicker, updateCanEditcompareValues, getCanEdit, getDataManager, getFieldName, getRealShowTitle, getShowTitle, getStopOnError, getTitle, getValidators, setCanEdit, setShowTitle, setStopOnError, setTitle, setValidators_add, _booleanValue, _fireContentChangedEvent, _fireContentChangedEvent, _fireRequestScrollToEvent, _getAndroidWindowSoftInputMode, _getAttributeFromSplitLocator, _getFixNavigationBarPositionDuringKeyboardFocus, _getHideTabBarDuringKeyboardFocus, _getInnerElement, _hideAddressBar, _hideAddressBarNow, _insert, _isDifferent, _isHDPIDisplay, _isIOS4OrOlder, _isIOS5, _isIOSMin6_0, _isStandaloneMode, _nativeParseFloat, _removeClassName, _setClassName, _setHandleDisabled, _sinkAnimationEndEvent, _sinkContentChangedEvent, _sinkFocusInEvent, _sinkFocusOutEvent, _sinkInputEvent, _sinkRequestScrollToEvent, _sinkTransitionEndEvent, _triggerDebugger, addChild, addChild, addChild, addClickHandler, addShowContextMenuHandler, destroy, disable, enable, getContextMenu, getID, getInnerHTML, getMargin, hasChild, hasChild, isAndroid, isDisabled, isEnabled, isIPad, isIPhone, isSafari, isStandAlone, isUIWebView, parseDimension, removeChild, removeChild, setContents, setContextMenu, setDisabled, setID, setMargin, setStyleName, split, useIOSNativeScrollingadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDisplayField, getDisplayFieldName, getOptionDataSource, getValueField, getValueFieldName, setDisplayFieldpublic SelectItem(java.lang.String name)
public SelectItem(java.lang.String name,
java.lang.String title)
public SelectItem(java.lang.String name,
java.lang.String title,
java.lang.String hint)
public final java.lang.Boolean getAllowEmptyValue()
@SGWTInternal public final boolean _getAllowEmptyValue()
public void setAllowEmptyValue(java.lang.Boolean allowEmptyValue)
public final java.lang.Boolean getDefaultToFirstOption()
@SGWTInternal public final boolean _getDefaultToFirstOption()
public void setDefaultToFirstOption(java.lang.Boolean defaultToFirstOption)
@SGWTInternal public void _setElementReadOnly(boolean readOnly)
_setElementReadOnly in class TextItempublic void setEmptyDisplayValue(java.lang.String emptyDisplayValue)
setEmptyDisplayValue in class FormItem@SGWTInternal public java.lang.Object _getFirstOptionValue()
public void setOptionDataSource(DataSource ds)
setOptionDataSource in interface PickListsetOptionDataSource in class FormItempublic final java.lang.String getOptionOperationId()
public void setOptionOperationId(java.lang.String optionOperationId)
public java.lang.String getPickListBaseStyle()
getPickListBaseStyle in interface PickListpublic void setPickListBaseStyle(java.lang.String pickListBaseStyle)
setPickListBaseStyle in interface PickListpublic final Criteria getPickListCriteria()
Criteria used to make fetches if data-bound.
If this item has a data-bound PickList (for example optionDataSource
is set), this can be used to provide static filter criteria when retrieving the data for
the PickList.
getPickListCriteria in interface PickListpublic void setPickListCriteria(Criteria criteria)
setPickListCriteria in interface PickListpublic final ListGridField[] getPickListFields()
public void setPickListFields(ListGridField... pickListFields)
protected Criteria getPickListFilterCriteria()
PickList
when it is shown.
If this is a data-bound item the criteria will be passed as criteria to DataSource.fetchData().
By default returns pickListCriteria if specified, otherwise
an empty set of criteria so all records will be displayed.
NOTE: This is an override point - if overridden this method will be called by the live form item during filtering.
public final Record getSelectedRecord()
public void setValueField(java.lang.String valueField)
setValueField in interface PickListsetValueField in class FormItempublic void setValueMap(java.util.LinkedHashMap<?,java.lang.String> valueMap)
FormItemNote: the keys of valueMap must be normalized according to the rules
applied by ObjectUtil.normalize(Object).
setValueMap in class FormItemvalueMap - the value map.protected com.smartgwt.mobile.client.internal.widgets.Picker2 _createPicker()
_createPicker in class FormItempublic void fetchData()
public void fetchData(DSCallback dsCallback)
public boolean _isPickerEnabled()
_isPickerEnabled in class FormItempublic void showValue(java.lang.Object value)
HasDataValueDataManager to notify this HasDataValue that
the DataManager's value for this HasDataValue was changed
and that this HasDataValue needs to update its display field to the given
value.
NOTE: An implementation must not call the associated DataManager's
DataManager.storeValue(String, Object)
method.
showValue in interface HasDataValueshowValue in class FormItemvalue - the new value.