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:
FormCommandSetComponent
,FormConditionalAppearanceComponent
,FormDynamicListComponent
,InfobaseAccessSettingsComponent
,InfobaseAccessSettingsComponent
,LayerItemsComponent
,LegendElementsComponent
,MdPictureComponent
,MobileDigiSignComponent
,OpenEditorByLinkComponent
,OpenEditorInFormByLinkComponent
,OpenGanttChartSettingsEditorByLinkComponent
,OpenGeographicalSchemaEditorInFormByLinkComponent
,OpenGraphicalSchemeEditorInFormByLinkComponent
,OpenMdHelpComponent
,OpenMobileCommandBarElementsByLinkComponent
,OpenMoxelEditorByLinkComponent
,OpenPlannerDimensionsEditorByLinkComponent
,OpenSuppressionSettingsEditorByLinkComponent
,OpenTimeScaleEditorByLinkComponent
,PublicationLinkComponent
,UserVisibilityComponent
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
ConstructorsConstructorDescriptionLinkComponent
(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
Modifier and TypeMethodDescriptionprotected LinkViewModel
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 Details
-
LinkComponent
Instantiates a new link component with the given parameterization.- Parameters:
parameterization
- the parameterization.
-
LinkComponent
Instantiates a new link component.- Parameters:
text
- the link text.
-
LinkComponent
Instantiates a new link component.- Parameters:
text
- the link text.underlined
- is the link text underlined.
-
-
Method Details
-
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
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
Handles the link clicked event.- Parameters:
viewModel
- the view model of the event sender.
-