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
,ComponentSearch.IIdentifierHost
public class EventHandlerCollectionComponent extends ContainerComponent<IHandlerCollectionModel,VoidParameterization> implements ComponentSearch.IIdentifierHost
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 void
disposeComponents()
Disposes the child components.IComponent<?>
getComponent(Object id)
Returns a component with the specified identifier ornull
if no component with such identifier is known to the host.protected String
getEventName(EventNameLocalizationProvider localizationProvider, ExtInfo extInfo, Event event, IHandlerModel<?> model)
Returns an event localized name for the provided event.Object
getId(IComponent<?> component)
Returns an identifier for the specified component ornull
if not applicableprotected boolean
isNoDataTable()
Indicates that current model object is no data table, i.e.protected boolean
isTable()
Indicates that current model object is table.-
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, handleExternalValidationEvent, 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, 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>
-
getComponent
public IComponent<?> getComponent(Object id)
Description copied from interface:ComponentSearch.IIdentifierHost
Returns a component with the specified identifier ornull
if no component with such identifier is known to the host.- Specified by:
getComponent
in interfaceComponentSearch.IIdentifierHost
- Parameters:
id
- the identifier- Returns:
- a component with the specified identifier or
null
if not found
-
getId
public Object getId(IComponent<?> component)
Description copied from interface:ComponentSearch.IIdentifierHost
Returns an identifier for the specified component ornull
if not applicable- Specified by:
getId
in interfaceComponentSearch.IIdentifierHost
- Parameters:
component
- the component to obtain the identifier for- Returns:
- an identifier for the specified component or
null
if not applicable
-
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>
-
disposeComponents
protected void disposeComponents()
Description copied from class:Component
Disposes the child components. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeComponents
in classComponent<IHandlerCollectionModel,VoidParameterization>
-
isTable
protected boolean isTable()
Indicates that current model object is table.- Returns:
true
if this is a table object.
-
isNoDataTable
protected boolean isNoDataTable()
Indicates that current model object is no data table, i.e. is table object and has no data path. The method is to be overridden by descendants.- Returns:
true
if this is no data table object.
-
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
-
-