Class LinkComponent<M extends IModel>
- 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,ILinkParametrization,LinkViewModel>
-
- com._1c.g5.aef2.standard.components.LinkComponent<M>
-
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
MdPictureComponent
,MobileDigiSignComponent
,OpenEditorByLinkComponent
,OpenEditorInFormByLinkComponent
,OpenGeographicalSchemaEditorInFormByLinkComponent
,OpenGraphicalSchemeEditorInFormByLinkComponent
,OpenMdHelpComponent
,OpenMoxelEditorByLinkComponent
,OpenSuppressionSettingsEditorByLinkComponent
,OpenTimeScaleEditorByLinkComponent
public class LinkComponent<M extends IModel> extends AbstractControlComponent<M,ILinkParametrization,LinkViewModel>
The link component.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description LinkComponent(ILinkParametrization parameterization)
Instantiates a new link component with the given parameterization.LinkComponent(String text)
Instantiates a new link component.LinkComponent(String text, boolean underlined)
Instantiates a new link component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LinkViewModel
createControlViewModel()
Creates control view model instance.void
dispose()
Disposes this component, its view models and its child components.protected void
handleLinkClicked(IViewModel viewModel)
Handles the link clicked event.-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, disposeViewModels, 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, 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
-
LinkComponent
public LinkComponent(ILinkParametrization parameterization)
Instantiates a new link component with the given parameterization.- Parameters:
parameterization
- the parameterization.
-
LinkComponent
public LinkComponent(String text)
Instantiates a new link component.- Parameters:
text
- the link text.
-
LinkComponent
public LinkComponent(String text, boolean underlined)
Instantiates a new link component.- Parameters:
text
- the link text.underlined
- is the link text underlined.
-
-
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<M extends IModel>
- Overrides:
dispose
in classComponent<M extends IModel,ILinkParametrization>
-
createControlViewModel
protected LinkViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<M extends IModel,ILinkParametrization,LinkViewModel>
- Returns:
- a newly created control view model.
-
handleLinkClicked
protected void handleLinkClicked(IViewModel viewModel)
Handles the link clicked event.- Parameters:
viewModel
- the view model of the event sender.
-
-