Interface ComboViewModel
- All Superinterfaces:
ControlViewModel
,org.eclipse.emf.ecore.EObject
,IControlViewModel
,IViewModel
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
BooleanValueControlViewModel
,BorderValueControlViewModel
,ComboSelectViewModel
,EditableComboViewModel
,EnumValueControlViewModel
,SysEnumValueControlViewModel
- All Known Implementing Classes:
BooleanValueControlViewModelImpl
,BorderValueControlViewModelImpl
,ComboSelectViewModelImpl
,ComboViewModelImpl
,EditableComboViewModelImpl
,EnumValueControlViewModelImpl
,SysEnumValueControlViewModelImpl
A representation of the model object 'Combo View Model'.
Combo control view model.
The following features are supported:
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.util.EList<ComboItemViewModel>
getItems()
Returns the value of the 'Items' containment reference list.Returns the value of the 'Quick Search Text' attribute.Returns the value of the 'Selected Item' reference.boolean
Returns the value of the 'Quick Search Allowed' attribute.void
setQuickSearchAllowed
(boolean value) Sets the value of the 'Quick Search Allowed
' attribute.void
setQuickSearchText
(String value) Sets the value of the 'Quick Search Text
' attribute.void
Sets the value of the 'Selected Item
' reference.Methods inherited from interface com._1c.g5.aef2.standard.viewModels.ControlViewModel
getApplyValueChange, getContexts, getExternalValidationStatus, getLayoutData, getStatus, isEditable, isEnabled, setApplyValueChange, setEditable, setEnabled, setExternalValidationStatus, setLayoutData, setStatus
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface com._1c.g5.aef2.viewModels.IViewModel
getEventChannel, getParent, setEventChannel, setParent
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getItems
org.eclipse.emf.common.util.EList<ComboItemViewModel> getItems()Returns the value of the 'Items' containment reference list. The list contents are of typeComboItemViewModel
. Combo items.- Returns:
- the value of the 'Items' containment reference list.
- See Also:
-
getSelectedItem
ComboItemViewModel getSelectedItem()Returns the value of the 'Selected Item' reference. Selected combo item ornull
if nothing is selected.- Returns:
- the value of the 'Selected Item' reference.
- See Also:
-
setSelectedItem
Sets the value of the 'Selected Item
' reference.- Parameters:
value
- the new value of the 'Selected Item' reference.- See Also:
-
isQuickSearchAllowed
boolean isQuickSearchAllowed()Returns the value of the 'Quick Search Allowed' attribute. Iftrue
, the text representing the selected item may be edited for quick search in the combo list- Returns:
- the value of the 'Quick Search Allowed' attribute.
- See Also:
-
setQuickSearchAllowed
void setQuickSearchAllowed(boolean value) Sets the value of the 'Quick Search Allowed
' attribute.- Parameters:
value
- the new value of the 'Quick Search Allowed' attribute.- See Also:
-
getQuickSearchText
String getQuickSearchText()Returns the value of the 'Quick Search Text' attribute. The text used for quick search. Used whenquickSearchAllowed
istrue
- Returns:
- the value of the 'Quick Search Text' attribute.
- See Also:
-
setQuickSearchText
Sets the value of the 'Quick Search Text
' attribute.- Parameters:
value
- the new value of the 'Quick Search Text' attribute.- See Also:
-