Class SectionedAreaSWTRenderer
- java.lang.Object
-
- org.eclipse.emf.ecp.view.model.common.AbstractRenderer<VELEMENT>
-
- org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer<VSectionedArea>
-
- org.eclipse.emf.ecp.view.spi.section.swt.SectionedAreaSWTRenderer
-
public class SectionedAreaSWTRenderer extends AbstractSWTRenderer<VSectionedArea>
Renderer forVSectionedArea
.- Author:
- jfaltermeier
-
-
Field Summary
-
Fields inherited from class org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer
CUSTOM_VARIANT
-
-
Constructor Summary
Constructors Constructor Description SectionedAreaSWTRenderer(VSectionedArea vElement, ViewModelContext viewContext, ReportService reportService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalizeRendering(org.eclipse.swt.widgets.Composite parent)
Called by the framework to initialize listener.SWTGridDescription
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.protected org.eclipse.swt.widgets.Control
renderControl(SWTGridCell gridCell, org.eclipse.swt.widgets.Composite parent)
Renders the passedVElement
.protected void
setLayoutDataForControl(SWTGridCell gridCell, SWTGridDescription gridDescription, SWTGridDescription currentRowGridDescription, SWTGridDescription fullGridDescription, VElement vElement, org.eclipse.swt.widgets.Control control)
Sets the LayoutData for the specified control.-
Methods inherited from class org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, canReveal, dispose, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, preInit, render, scrollToReveal, scrollToReveal, setControlEnabled
-
Methods inherited from class org.eclipse.emf.ecp.view.model.common.AbstractRenderer
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
-
-
-
-
Constructor Detail
-
SectionedAreaSWTRenderer
@Inject public SectionedAreaSWTRenderer(VSectionedArea vElement, ViewModelContext viewContext, ReportService reportService)
- Parameters:
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- theReportService
- Since:
- 1.6
-
-
Method Detail
-
getGridDescription
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
Description copied from class:AbstractSWTRenderer
Returns the GridDescription for this Renderer.- Specified by:
getGridDescription
in classAbstractSWTRenderer<VSectionedArea>
- Parameters:
gridDescription
- the currentSWTGridDescription
- Returns:
- the number of controls per row
-
renderControl
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell gridCell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
Description copied from class:AbstractSWTRenderer
Renders the passedVElement
.- Specified by:
renderControl
in classAbstractSWTRenderer<VSectionedArea>
- Parameters:
gridCell
- theGridCell
of the control to renderparent
- theComposite
to render on- Returns:
- the rendered
Control
- Throws:
NoRendererFoundException
- this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be found
-
setLayoutDataForControl
protected void setLayoutDataForControl(SWTGridCell gridCell, SWTGridDescription gridDescription, SWTGridDescription currentRowGridDescription, SWTGridDescription fullGridDescription, VElement vElement, org.eclipse.swt.widgets.Control control)
Sets the LayoutData for the specified control.- Parameters:
gridCell
- theGridCell
used to render the controlgridDescription
- theGridDescription
of the parent which rendered the controlcurrentRowGridDescription
- theGridDescription
of the current rowfullGridDescription
- theGridDescription
of the whole containervElement
- theVElement
to set the layoutData forcontrol
- the control to set the layout to- Since:
- 1.10
-
finalizeRendering
public void finalizeRendering(org.eclipse.swt.widgets.Composite parent)
Called by the framework to initialize listener.- Overrides:
finalizeRendering
in classAbstractSWTRenderer<VSectionedArea>
- Parameters:
parent
- the parent used during render- See Also:
AbstractSWTRenderer.finalizeRendering(org.eclipse.swt.widgets.Composite)
-
-