Class BmFormCommandSetModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.EditableModel
com._1c.g5.aef2.models.list.ListModel<T>
com._1c.g5.v8.dt.aef2.bm.models.BmList<T>
com._1c.g5.v8.dt.form.internal.ui.properties.models.FormBmList<Command>
com._1c.g5.v8.dt.form.internal.ui.properties.models.BmFormCommandSetModel
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfListAttribute<Command,
,IBmObject> IList<Command>
,IValidable
,IModelApiAwareModel
,IFormCommandSetModel
,IFormList<Command>
,Iterable<Command>
,Collection<Command>
,List<Command>
The Bm implementation of
IFormCommandSetModel
.-
Constructor Summary
ConstructorsConstructorDescriptionBmFormCommandSetModel
(Form form, FormStandardCommandSource object) Creates a new model. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object that keeps the attribute.protected boolean
isElementEqual
(Command e1, Command e2) Checks the equality of the two elements of the list.Methods inherited from class com._1c.g5.v8.dt.form.internal.ui.properties.models.FormBmList
getForm
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmList
adapt, createTask, dispose, getChange, getModelApi, getProperty, setModelApi, setObjectValue
Methods inherited from class com._1c.g5.aef2.models.list.ListModel
add, add, addAll, addAll, addListListener, clear, contains, containsAll, discard, fill, get, getCommittedList, getUncommittedList, indexOf, isEmpty, isEqual, iterator, lastIndexOf, listIterator, listIterator, notifyListChanged, queueNotifyListChanged, remove, remove, removeAll, removeListListener, retainAll, set, setCommittedList, setList, setUncommitedList, size, subList, toArray, toArray, toString
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface com._1c.g5.aef2.models.IAttribute
getProperty
Methods inherited from interface com._1c.g5.v8.dt.form.internal.ui.properties.models.IFormList
getForm
Methods inherited from interface com._1c.g5.aef2.models.list.IList
addListListener, fill, isEqual, removeListListener
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
BmFormCommandSetModel
Creates a new model.- Parameters:
form
- the form, cannot benull
object
- theStandardCommandSource
object, cannot benull
-
-
Method Details
-
getObject
Description copied from interface:IAttribute
Returns the object that keeps the attribute. -
getCommands
- Specified by:
getCommands
in interfaceIFormCommandSetModel
- Returns:
- the list of commands.
-
createWorkingCopy
- Specified by:
createWorkingCopy
in interfaceIList<Command>
- Specified by:
createWorkingCopy
in interfaceIModel
- Overrides:
createWorkingCopy
in classListModel<Command>
- Returns:
- the model working copy or
null
if working copies is not supported by the model.
-
isElementEqual
Description copied from class:ListModel
Checks the equality of the two elements of the list.- Overrides:
isElementEqual
in classListModel<Command>
- Parameters:
e1
- the first elemente2
- the second element- Returns:
true
if the elements are equals, otherwise -false
.
-