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 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
getFocusedEventChannel()
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
-
-
-
-
Method Detail
-
getFocusedEventChannel
public static IEventChannel getFocusedEventChannel()
- Returns:
- the
IEventChannel
for the focused view.
-
render
public void render(Iterable<IViewModel> viewModels)
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
protected void disposeLightControl(ILightControl lightControl)
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
protected void applyLayout(IControlViewModel viewModel, ILightControl lightControl)
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
protected ILightLayout convertLayout(IAefLayout layout, ILightControl lightControl)
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
protected ILightLayoutData convertLayoutData(IAefLayoutData layoutData, ILightControl lightControl)
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
protected <VM extends IViewModel> boolean containsHeavyControls(VM viewModel)
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.
-
-