Class EventHandlerCollectionComponent
- java.lang.Object
-
- com._1c.g5.aef2.components.Component<M,P>
-
- com._1c.g5.aef2.standard.components.StandardComponent<M,P>
-
- com._1c.g5.aef2.standard.components.ContainerComponent<IHandlerCollectionModel,VoidParameterization>
-
- com._1c.g5.v8.dt.form.ui.aef.components.EventHandlerCollectionComponent
-
- All Implemented Interfaces:
IComponent<IHandlerCollectionModel>
,IEventChannel
public class EventHandlerCollectionComponent extends ContainerComponent<IHandlerCollectionModel,VoidParameterization>
The form model object event handler collection component.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description EventHandlerCollectionComponent(VoidParameterization parameterization)
Creates a new component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
attachToModel()
Attaches this component to the model.protected void
createComponents()
Creates the child components of this component.protected StandardComponent<IHandlerModel<?>,?>
createEventSelectionComponent()
Create an event selection inner component.protected void
detachFromModel()
Detaches this component from the model.void
dispose()
Disposes this component, its view models and its child components.protected String
getEventName(EventNameLocalizationProvider localizationProvider, ExtInfo extInfo, Event event, IHandlerModel<?> model)
Returns an event localized name for the provided event.-
Methods inherited from class com._1c.g5.aef2.standard.components.ContainerComponent
addComponent, button, button, checkBox, checkBox, combo, createContainerViewModel, createViewModels, disposeChildren, field, field, getContainerViewModel, isEditable, label, label, refreshChildren, separator, spinner, text, updateViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, disposeViewModels, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, setLayoutData, updateViewModelStatus
-
Methods inherited from class com._1c.g5.aef2.components.Component
addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, beginExternalUpdate, checkComponents, checkViewModels, commit, disposeComponents, endExternalUpdate, getComponents, getModel, getParameterization, getParent, getRunnableQueue, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, queueAndWaitEvent, queueEvent, removeComponent, removeListener, removeViewModel, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene, subscribeOnEvents, subscribeOnEvents, unsubscribeOnEvents
-
-
-
-
Constructor Detail
-
EventHandlerCollectionComponent
public EventHandlerCollectionComponent(VoidParameterization parameterization)
Creates a new component.- Parameters:
parameterization
- the void parameterization, cannot benull
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IComponent
Disposes this component, its view models and its child components.- Specified by:
dispose
in interfaceIComponent<IHandlerCollectionModel>
- Overrides:
dispose
in classComponent<IHandlerCollectionModel,VoidParameterization>
-
attachToModel
protected void attachToModel()
Description copied from class:Component
Attaches this component to the model. Override it to add some listeners to the model.- Overrides:
attachToModel
in classComponent<IHandlerCollectionModel,VoidParameterization>
-
detachFromModel
protected void detachFromModel()
Description copied from class:Component
Detaches this component from the model. Override it to remove listeners from the model.- Overrides:
detachFromModel
in classComponent<IHandlerCollectionModel,VoidParameterization>
-
createComponents
protected void createComponents()
Description copied from class:Component
Creates the child components of this component. Override it to fill a component with a child components.Method can be called multiple times.
- Overrides:
createComponents
in classComponent<IHandlerCollectionModel,VoidParameterization>
-
createEventSelectionComponent
protected StandardComponent<IHandlerModel<?>,?> createEventSelectionComponent()
Create an event selection inner component.- Returns:
- a new event selection inner component, never
null
-
getEventName
protected String getEventName(EventNameLocalizationProvider localizationProvider, ExtInfo extInfo, Event event, IHandlerModel<?> model)
Returns an event localized name for the provided event.- Parameters:
localizationProvider
- the localization provider to use, cannot benull
extInfo
- the current form model object ext info, cannot benull
event
- an event, cannot benull
model
- the form event model, cannot benull
- Returns:
- an event localized name for the provided event, never
null
-
-