Class DataExchangeModel
- 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<org.eclipse.emf.ecore.EObject>
-
- com._1c.g5.v8.dt.ui.aef.models.NavigatorTableModel
-
- com._1c.g5.v8.dt.md.ui.editor.aef.descriptor.dataexchange.DataExchangeModel
-
- All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>
,IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfListAttribute<org.eclipse.emf.ecore.EObject,IBmObject>
,IList<org.eclipse.emf.ecore.EObject>
,IValidable
,IModelApiAwareModel
,IDynamicTableModel
,Iterable<org.eclipse.emf.ecore.EObject>
,Collection<org.eclipse.emf.ecore.EObject>
,List<org.eclipse.emf.ecore.EObject>
public class DataExchangeModel extends NavigatorTableModel
DtGranularEditor
data exchande model.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.models.NavigatorTableModel
contentService, labelProvider
-
-
Constructor Summary
Constructors Constructor Description DataExchangeModel(MdObject mdObject, Configuration configuration, IModelEditingSupport modelEditingSupport)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEdit(ExchangePlan exchangePlan)
Checks is exchange plan can edit.protected IBmTask<?>
createBmTask(ExchangePlan exchangePlan, CheckState checkState)
Pre add md-object to exchange plan actions.ICheckStateProvider
getCheckStateProvider()
Returns check state provider.protected MdObject
getMdObject()
Returns exchange data md-object.protected void
setContentItemAutoRecord(ExchangePlan exchangePlan, AutoRegistrationChanges autoRecord)
Sets autorecord to exchange plan md-object content item.protected void
setContentItemCheckState(ExchangePlan exchangePlan, CheckState checkState)
Sets check state to exchange plan md-object content item.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.models.NavigatorTableModel
dispose, getInput, getLabelProvider, getTableContentProvider, getTrackingFeatures, setFilter
-
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmList
adapt, createTask, getChange, getModelApi, getObject, getProperty, setModelApi, setObjectValue
-
Methods inherited from class com._1c.g5.aef2.models.list.ListModel
add, add, addAll, addAll, addListListener, clear, contains, containsAll, createWorkingCopy, discard, fill, get, getCommittedList, getUncommittedList, indexOf, isElementEqual, 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.list.IList
addListListener, createWorkingCopy, fill, isEqual, removeListListener
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, 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 Detail
-
DataExchangeModel
public DataExchangeModel(MdObject mdObject, Configuration configuration, IModelEditingSupport modelEditingSupport)
Creates a new instance.- Parameters:
mdObject
- the md-object, cannot benull
configuration
- the configuration, cannot benull
modelEditingSupport
- the model editing support, cannot benull
-
-
Method Detail
-
getCheckStateProvider
public ICheckStateProvider getCheckStateProvider()
Description copied from interface:IDynamicTableModel
Returns check state provider.- Specified by:
getCheckStateProvider
in interfaceIDynamicTableModel
- Overrides:
getCheckStateProvider
in classNavigatorTableModel
- Returns:
- the
ICheckStateProvider
, can benull
-
canEdit
protected boolean canEdit(ExchangePlan exchangePlan)
Checks is exchange plan can edit.- Parameters:
exchangePlan
- the exchange plan, cannot benull
- Returns:
true
if can edit,false
otherwise
-
getMdObject
protected MdObject getMdObject()
Returns exchange data md-object.- Returns:
- the md-object, cannot be
null
-
setContentItemAutoRecord
protected void setContentItemAutoRecord(ExchangePlan exchangePlan, AutoRegistrationChanges autoRecord)
Sets autorecord to exchange plan md-object content item.- Parameters:
exchangePlan
- the exchange plan, cannot benull
autoRecord
- the autorecord, cannot benull
-
setContentItemCheckState
protected void setContentItemCheckState(ExchangePlan exchangePlan, CheckState checkState)
Sets check state to exchange plan md-object content item.- Parameters:
exchangePlan
- the exchange plan, cannot benull
checkState
- the check state, can benull
-
createBmTask
protected IBmTask<?> createBmTask(ExchangePlan exchangePlan, CheckState checkState)
Pre add md-object to exchange plan actions.- Parameters:
exchangePlan
- the exchange plan, cannot benull
checkState
- the check state, can benull
-
-