Class LwtStandardRenderer
java.lang.Object
com._1c.g5.aef2.renderers.Renderer<ILightControl,LwtRenderingParameters>
com._1c.g5.aef2.lwt.LwtRenderer
com._1c.g5.aef2.standard.lwt.renderers.LwtStandardRenderer
- All Implemented Interfaces:
IRenderer<LwtRenderingParameters>
- Direct Known Subclasses:
DtLwtRenderer,LwtApplicationEditorRenderer,LwtPropertyPaletteRenderer
LWT standard controls renderer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyLayout(IControlViewModel viewModel, ILightControl lightControl) Applies a layout to the given native control.protected <VM extends IViewModel>
booleancontainsHeavyControls(VM viewModel) Returnstrueif the view model or one of its child corresponds to heavy view.protected ILightLayoutconvertLayout(IAefLayout layout, ILightControl lightControl) Converts the AEF layout to layout for the given native control.protected ILightLayoutDataconvertLayoutData(IAefLayoutData layoutData, ILightControl lightControl) Converts the AEF layout data to layout data for the given native control.protected <VM extends IControlViewModel>
ILightControlcreateLightControl(IView<LwtRenderingParameters, VM, ILightControl> controlView, VM viewModel, ILightComposite composite, int index) Creates a light control for the given view and view model.protected voiddisposeLightControl(ILightControl lightControl) Disposes the given light control.static IEventChannelvoidrender(Iterable<IViewModel> viewModels) Renders the provided view models.Methods inherited from class com._1c.g5.aef2.lwt.LwtRenderer
dispose, getTargetId, initialize, relayout, viewCanBeReusedMethods inherited from class com._1c.g5.aef2.renderers.Renderer
createView, findViewClass, getParameters, getTreeTransformation, loadMappings, setMapping, setTreeTransformation
-
Constructor Details
-
LwtStandardRenderer
public LwtStandardRenderer()Creates a new renderer.
-
-
Method Details
-
getFocusedEventChannel
- Returns:
- the
IEventChannelfor the focused view.
-
render
Description copied from interface:IRendererRenders the provided view models.- Specified by:
renderin interfaceIRenderer<LwtRenderingParameters>- Overrides:
renderin classLwtRenderer- Parameters:
viewModels- the view models to render.
-
createLightControl
protected <VM extends IControlViewModel> ILightControl createLightControl(IView<LwtRenderingParameters, VM, ILightControl> controlView, VM viewModel, ILightComposite composite, int index) Description copied from class:LwtRendererCreates a light control for the given view and view model.- Overrides:
createLightControlin classLwtRenderer- Parameters:
controlView- the view to create a light control for.viewModel- the view model to create a light control from.composite- the light composite.index- the created child index.- Returns:
- the newly created light control.
-
disposeLightControl
Disposes the given light control. Remove the focus listener about key-binding support.- Overrides:
disposeLightControlin classLwtRenderer- Parameters:
lightControl- the light control to dispose.
-
applyLayout
Description copied from class:RendererApplies a layout to the given native control.- Specified by:
applyLayoutin classRenderer<ILightControl,LwtRenderingParameters> - Parameters:
viewModel- the associated view model.lightControl- the native control to apply layout to.
-
convertLayout
Description copied from class:RendererConverts the AEF layout to layout for the given native control.- Specified by:
convertLayoutin classRenderer<ILightControl,LwtRenderingParameters> - Parameters:
layout- the AEF layout.- Returns:
- the converted layout object.
-
convertLayoutData
Description copied from class:RendererConverts the AEF layout data to layout data for the given native control.- Specified by:
convertLayoutDatain classRenderer<ILightControl,LwtRenderingParameters> - Parameters:
layoutData- the AEF layout data.- Returns:
- the converted layout data object.
-
containsHeavyControls
Returnstrueif the view model or one of its child corresponds to heavy view.- Parameters:
viewModel- the view model.- Returns:
trueif the view model or one of its child corresponds to heavy view.
-