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,LwtPropertyPaletteRenderer
public class LwtStandardRenderer extends LwtRenderer
LWT standard controls renderer.
-
-
Constructor Summary
Constructors Constructor Description LwtStandardRenderer()Creates a new renderer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 IEventChannelgetFocusedEventChannel()voidrender(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
-
-
-
-
Method Detail
-
getFocusedEventChannel
public static IEventChannel getFocusedEventChannel()
- Returns:
- the
IEventChannelfor the focused view.
-
render
public void render(Iterable<IViewModel> viewModels)
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
protected void disposeLightControl(ILightControl lightControl)
Disposes the given light control. Remove the focus listener about key-binding support.- Overrides:
disposeLightControlin classLwtRenderer- Parameters:
lightControl- the light control to dispose.
-
applyLayout
protected void applyLayout(IControlViewModel viewModel, ILightControl lightControl)
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
protected ILightLayout convertLayout(IAefLayout layout, ILightControl lightControl)
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
protected ILightLayoutData convertLayoutData(IAefLayoutData layoutData, ILightControl lightControl)
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
protected <VM extends IViewModel> boolean containsHeavyControls(VM viewModel)
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.
-
-