Class DtDynamicTableComponent<T,M extends IDynamicTableModel,VM extends TableViewModel,P extends IStructuredParameterization>
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.AbstractControlComponent<M,P,VM>
com._1c.g5.v8.dt.ui.aef.component.DtDynamicTableComponent<T,M,VM,P>
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
,ILabelProviderListener
- Direct Known Subclasses:
AbstractDynamicTableComponent
,AllowedIncomingShareRequestTypesTableComponent
,CharacteristicsTableComponent
,MobileApplicationUrlsTableComponent
,NavigatorTableComponent
,PredefinedAccountAccountingFlagsComponent
,PredefinedAccountExtDimensionTypesComponent
,WebSocketClientHeadersTableComponent
public abstract class DtDynamicTableComponent<T,M extends IDynamicTableModel,VM extends TableViewModel,P extends IStructuredParameterization>
extends AbstractControlComponent<M,P,VM>
implements ILabelProviderListener
Abstract implementation of the table component that operates with
IDynamicTableModel
.-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDtDynamicTableComponent
(P parameterization) Creates a new instance with parameterization. -
Method Summary
Modifier and TypeMethodDescriptionprotected IAefTableContentProvider<TableItemViewModel>
CreatesIAefTableContentProvider
instance.protected VM
Creates control view model instance.protected IViewModelsMapper<T,
TableItemViewModel> CreatesIMapper
instance.protected VM
Create table view model.protected void
Disposes the view models of this component.protected IAefTableContentProvider<TableItemViewModel>
Returns content provider.protected IViewModelsMapper<T,
TableItemViewModel> Returns table mapper.void
protected abstract void
processEvent
(IEvent event) Processes the received event from table component.void
setSelection
(Collection<T> elementsToSelect) Sets selection to the underlying view.Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModels
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
Methods inherited from class com._1c.g5.aef2.components.Component
addComponent, addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, attachToModel, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, detachFromModel, dispose, 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
-
Field Details
-
active
protected boolean active -
currentSelection
-
-
Constructor Details
-
DtDynamicTableComponent
Creates a new instance with parameterization.- Parameters:
parameterization
- the parameterization, cannot benull
-
-
Method Details
-
setSelection
Sets selection to the underlying view.- Parameters:
selection
- the selection to set, cannot benull
-
createControlViewModel
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<M extends IDynamicTableModel,
P extends IStructuredParameterization, VM extends TableViewModel> - Returns:
- a newly created control view model.
-
disposeViewModels
protected void disposeViewModels()Description copied from class:Component
Disposes the view models of this component. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeViewModels
in classAbstractControlComponent<M extends IDynamicTableModel,
P extends IStructuredParameterization, VM extends TableViewModel>
-
labelProviderChanged
- Specified by:
labelProviderChanged
in interfaceILabelProviderListener
-
createTableViewModel
Create table view model.- Returns:
- the table view model, never
null
-
createTableMapper
CreatesIMapper
instance.- Returns:
- the newly created table mapper, cannot be
null
-
getMapper
Returns table mapper.- Returns:
- the table mapper, never
null
if control view is created
-
createContentProvider
CreatesIAefTableContentProvider
instance.- Returns:
- the newly created content provider, cannot be
null
-
getContentProvider
Returns content provider.- Returns:
- the content provider, cannot be
null
if control view is created
-
processEvent
Processes the received event from table component.- Parameters:
event
- the event, cannot benull
-