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:
NavigatorTableComponent
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 withIDynamicTableModel
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
active
protected IViewModel
currentSelection
-
Constructor Summary
Constructors Constructor Description DtDynamicTableComponent(P parameterization)
Creates a new instance with parameterization.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected IAefTableContentProvider<TableItemViewModel>
createContentProvider()
CreatesIAefTableContentProvider
instance.protected VM
createControlViewModel()
Creates control view model instance.protected IViewModelsMapper<T,TableItemViewModel>
createTableMapper()
CreatesIMapper
instance.protected VM
createTableViewModel()
Create table view model.protected void
disposeViewModels()
Disposes the view models of this component.protected IAefTableContentProvider<TableItemViewModel>
getContentProvider()
Returns content provider.protected IViewModelsMapper<T,TableItemViewModel>
getMapper()
Returns table mapper.void
labelProviderChanged(LabelProviderChangedEvent event)
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 Detail
-
active
protected boolean active
-
currentSelection
protected IViewModel currentSelection
-
-
Constructor Detail
-
DtDynamicTableComponent
public DtDynamicTableComponent(P parameterization)
Creates a new instance with parameterization.- Parameters:
parameterization
- the parameterization, cannot benull
-
-
Method Detail
-
setSelection
public void setSelection(Collection<T> elementsToSelect)
Sets selection to the underlying view.- Parameters:
selection
- the selection to set, cannot benull
-
createControlViewModel
protected VM 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
public void labelProviderChanged(LabelProviderChangedEvent event)
- Specified by:
labelProviderChanged
in interfaceILabelProviderListener
-
createTableViewModel
protected VM createTableViewModel()
Create table view model.- Returns:
- the table view model, never
null
-
createTableMapper
protected IViewModelsMapper<T,TableItemViewModel> createTableMapper()
CreatesIMapper
instance.- Returns:
- the newly created table mapper, cannot be
null
-
getMapper
protected IViewModelsMapper<T,TableItemViewModel> getMapper()
Returns table mapper.- Returns:
- the table mapper, never
null
if control view is created
-
createContentProvider
protected IAefTableContentProvider<TableItemViewModel> createContentProvider()
CreatesIAefTableContentProvider
instance.- Returns:
- the newly created content provider, cannot be
null
-
getContentProvider
protected IAefTableContentProvider<TableItemViewModel> getContentProvider()
Returns content provider.- Returns:
- the content provider, cannot be
null
if control view is created
-
processEvent
protected abstract void processEvent(IEvent event)
Processes the received event from table component.- Parameters:
event
- the event, cannot benull
-
-