Class EventHandlerModel
- 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.value.Value<T>
-
- com._1c.g5.aef2.models.pojo.PojoValue<String>
-
- com._1c.g5.v8.dt.bp.scheme.ui.aef.models.EventHandlerModel
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValue<String>
,IValidable
,IModelApiAwareModel
,IGraphicalSchemeValue<String,GraphicalSchemeItem>
,IHandlerModel<GraphicalSchemeItem>
public class EventHandlerModel extends PojoValue<String> implements IHandlerModel<GraphicalSchemeItem>
Model for addressing event handler selection component.
-
-
Constructor Summary
Constructors Constructor Description EventHandlerModel(String initialValue, EventHandler eventHandler, Collection<String> possibleHandlers, BusinessProcess businessProcess)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IChange
getChange()
Event
getEvent()
Returns the graphical scheme model object event for this handler.GraphicalScheme
getGraphicalScheme()
Returns graphical scheme from model.Collection<String>
getHandlers()
Returns a collection of possible event handlers.IModelApi
getModelApi()
Returns the model API.GraphicalSchemeItem
getSelection()
Returns selected object.void
processHandlerInBslModule()
Processes current method selection in the BSL module.void
setModelApi(IModelApi modelApi)
Sets the specified API to the model.-
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, dispose, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, 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, 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, discard, dispose, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
-
-
-
Constructor Detail
-
EventHandlerModel
public EventHandlerModel(String initialValue, EventHandler eventHandler, Collection<String> possibleHandlers, BusinessProcess businessProcess)
Constructor- Parameters:
initialValue
- - initial value. Can't benull
.eventHandler
- - event handler. Can't benull
.possibleHandlers
- - possible handlers which can handle event. Can't benull
.businessProcess
- - graphical scheme parent business process. Can't benull
.
-
-
Method Detail
-
getChange
public IChange getChange()
-
getEvent
public Event getEvent()
Description copied from interface:IHandlerModel
Returns the graphical scheme model object event for this handler.- Specified by:
getEvent
in interfaceIHandlerModel<GraphicalSchemeItem>
- Returns:
- the graphical scheme model object event for this handler. Can't be
null
.
-
getGraphicalScheme
public GraphicalScheme getGraphicalScheme()
Description copied from interface:IGraphicalSchemeValue
Returns graphical scheme from model.- Specified by:
getGraphicalScheme
in interfaceIGraphicalSchemeValue<String,GraphicalSchemeItem>
- Returns:
- graphical scheme from model. Can return
null
.
-
getSelection
public GraphicalSchemeItem getSelection()
Description copied from interface:IGraphicalSchemeValue
Returns selected object.- Specified by:
getSelection
in interfaceIGraphicalSchemeValue<String,GraphicalSchemeItem>
- Returns:
- selected object. Can return
null
.
-
getHandlers
public Collection<String> getHandlers()
Description copied from interface:IHandlerModel
Returns a collection of possible event handlers.- Specified by:
getHandlers
in interfaceIHandlerModel<GraphicalSchemeItem>
- Returns:
- a collection of possible event handlers for current
event
. Can't benull
.
-
processHandlerInBslModule
public void processHandlerInBslModule()
Description copied from interface:IHandlerModel
Processes current method selection in the BSL module.- Specified by:
processHandlerInBslModule
in interfaceIHandlerModel<GraphicalSchemeItem>
-
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.
-
-