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 void
applyLayout
(IControlViewModel viewModel, ILightControl lightControl) Applies a layout to the given native control.protected <VM extends IViewModel>
booleancontainsHeavyControls
(VM viewModel) Returnstrue
if the view model or one of its child corresponds to heavy view.protected ILightLayout
convertLayout
(IAefLayout layout, ILightControl lightControl) Converts the AEF layout to layout for the given native control.protected ILightLayoutData
convertLayoutData
(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 void
disposeLightControl
(ILightControl lightControl) Disposes the given light control.static IEventChannel
void
render
(Iterable<IViewModel> viewModels) Renders the provided view models.Methods inherited from class com._1c.g5.aef2.lwt.LwtRenderer
dispose, getTargetId, initialize, relayout, viewCanBeReused
Methods 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
IEventChannel
for the focused view.
-
render
Description copied from interface:IRenderer
Renders the provided view models.- Specified by:
render
in interfaceIRenderer<LwtRenderingParameters>
- Overrides:
render
in 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:LwtRenderer
Creates a light control for the given view and view model.- Overrides:
createLightControl
in 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:
disposeLightControl
in classLwtRenderer
- Parameters:
lightControl
- the light control to dispose.
-
applyLayout
Description copied from class:Renderer
Applies a layout to the given native control.- Specified by:
applyLayout
in classRenderer<ILightControl,
LwtRenderingParameters> - Parameters:
viewModel
- the associated view model.lightControl
- the native control to apply layout to.
-
convertLayout
Description copied from class:Renderer
Converts the AEF layout to layout for the given native control.- Specified by:
convertLayout
in classRenderer<ILightControl,
LwtRenderingParameters> - Parameters:
layout
- the AEF layout.- Returns:
- the converted layout object.
-
convertLayoutData
Description copied from class:Renderer
Converts the AEF layout data to layout data for the given native control.- Specified by:
convertLayoutData
in classRenderer<ILightControl,
LwtRenderingParameters> - Parameters:
layoutData
- the AEF layout data.- Returns:
- the converted layout data object.
-
containsHeavyControls
Returnstrue
if the view model or one of its child corresponds to heavy view.- Parameters:
viewModel
- the view model.- Returns:
true
if the view model or one of its child corresponds to heavy view.
-