Class AbstractTypeLinkComponent<T extends AbstractTypeLink,U,M extends ITypeLinkModel<T,U>>
- 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.AbstractDtSelectComponent<M,P,ActionBarViewModel>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent<M,P>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtReadonlyActionBarComponent<M,IDtActionBarParameterization>
-
- com._1c.g5.v8.dt.md.ui.aef.components.AbstractTypeLinkComponent<T,U,M>
-
- Type Parameters:
T
- Type of type links handled by the componentU
- Type of attributes handled by the componentM
- Component model type
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
TypeLinkComponent
public abstract class AbstractTypeLinkComponent<T extends AbstractTypeLink,U,M extends ITypeLinkModel<T,U>> extends AbstractDtReadonlyActionBarComponent<M,IDtActionBarParameterization>
Abstract Type link component.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
CLEAR_BUTTON_COMMAND_ID, DEFAULT_CONTEXT, OPEN_BUTTON_COMMAND_ID, SELECT_BUTTON_COMMAND_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTypeLinkComponent(IDtActionBarParameterization parameterization)
The main parameterized constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
attachToModel()
Attaches this component to the model.protected Collection<ButtonItemViewModel>
createButtons()
Creates a collection of theButtonItemViewModel
that will be added to the component view model.protected abstract ILabelProvider
getLabelProvider()
Returns the label provider for model attributes.protected void
handleButtonClicked(IViewModel viewModel)
Handles the button clicked event.protected String
transformModelToString(M model)
Transforms the given model object to string representation.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtReadonlyActionBarComponent
bindModelToViewModel, createViewModels, disposeViewModels, updateViewModel, updateViewModels
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent
createControlViewModel
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, dispose
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData
-
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, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, detachFromModel, 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
-
AbstractTypeLinkComponent
protected AbstractTypeLinkComponent(IDtActionBarParameterization parameterization)
The main parameterized constructor.- Parameters:
parameterization
- DT Action Bar parameterization
-
-
Method Detail
-
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<M extends ITypeLinkModel<T,U>,IDtActionBarParameterization>
-
getLabelProvider
protected abstract ILabelProvider getLabelProvider()
Returns the label provider for model attributes.- Returns:
- Label provider for attributes
-
handleButtonClicked
protected void handleButtonClicked(IViewModel viewModel)
Description copied from class:AbstractDtSelectComponent
Handles the button clicked event.- Overrides:
handleButtonClicked
in classAbstractDtSelectComponent<M extends ITypeLinkModel<T,U>,IDtActionBarParameterization,ActionBarViewModel>
- Parameters:
viewModel
- the view model of the event sender.
-
createButtons
protected Collection<ButtonItemViewModel> createButtons()
Description copied from class:AbstractDtSelectComponent
Creates a collection of theButtonItemViewModel
that will be added to the component view model.- Overrides:
createButtons
in classAbstractDtSelectComponent<M extends ITypeLinkModel<T,U>,IDtActionBarParameterization,ActionBarViewModel>
- Returns:
- the collection of the
ButtonItemViewModel
.
-
transformModelToString
protected String transformModelToString(M model)
Description copied from class:AbstractDtReadonlyActionBarComponent
Transforms the given model object to string representation.- Specified by:
transformModelToString
in classAbstractDtReadonlyActionBarComponent<M extends ITypeLinkModel<T,U>,IDtActionBarParameterization>
- Parameters:
model
- the model.- Returns:
- string representation of the model values.
-
-