Class EventHandlerCollectionModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.v8.dt.bp.scheme.ui.aef.models.EventHandlerCollectionModel
-
- All Implemented Interfaces:
IModel
,IValidable
,IModelApiAwareModel
,IHandlerCollectionModel
public class EventHandlerCollectionModel extends Model implements IHandlerCollectionModel, IModelApiAwareModel
The BM aware implementation ofIHandlerCollectionModel
for graphical scheme item event handler collection
-
-
Constructor Summary
Constructors Constructor Description EventHandlerCollectionModel(org.eclipse.emf.ecore.EObject object, IV8Project v8Project, IBmModelManager bmModelManager, IExternalPropertyManagerRegistry propertyManagerRegistry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this model.IChange
getChange()
Iterable<IHandlerModel<?>>
getHandlerModels()
Returns a collection of underlying handler models.IModelApi
getModelApi()
Returns the model API.org.eclipse.emf.ecore.EObject
getObject()
Returns the parent form model object.ScriptVariant
getScriptVariant()
Retutrns the current script variant.void
setModelApi(IModelApi modelApi)
Sets the specified API to the model.-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
-
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 com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
EventHandlerCollectionModel
public EventHandlerCollectionModel(org.eclipse.emf.ecore.EObject object, IV8Project v8Project, IBmModelManager bmModelManager, IExternalPropertyManagerRegistry propertyManagerRegistry)
Constructor.- Parameters:
object
- - model object. Can't benull
.v8Project
- - project containing model object. Can't benull
.bmModelManager
- - bm model manager service. Can't benull
.propertyManagerRegistry
- - external property manager registry service. Can't benull
.
-
-
Method Detail
-
getObject
public org.eclipse.emf.ecore.EObject getObject()
Description copied from interface:IHandlerCollectionModel
Returns the parent form model object.- Specified by:
getObject
in interfaceIHandlerCollectionModel
- Returns:
- the form model
EObject
object. Can't returnnull
.
-
getChange
public IChange getChange()
-
getScriptVariant
public ScriptVariant getScriptVariant()
Description copied from interface:IHandlerCollectionModel
Retutrns the current script variant.- Specified by:
getScriptVariant
in interfaceIHandlerCollectionModel
- Returns:
- the current script variant. Can't return
null
.
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.
-
getHandlerModels
public Iterable<IHandlerModel<?>> getHandlerModels()
Description copied from interface:IHandlerCollectionModel
Returns a collection of underlying handler models.- Specified by:
getHandlerModels
in interfaceIHandlerCollectionModel
- Returns:
- a collection of handler models. Can't return
null
.
-
setModelApi
public void setModelApi(IModelApi modelApi)
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
getModelApi
public IModelApi getModelApi()
Description copied from interface:IModelApiAwareModel
Returns the model API.- Specified by:
getModelApi
in interfaceIModelApiAwareModel
- Returns:
- the model API or
null
if it is not set.
-
-