|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.view.model.common.AbstractRenderer<VELEMENT>
org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer<VELEMENT>
VELEMENT
- the actual type of the VElement
to be drawnpublic abstract class AbstractSWTRenderer<VELEMENT extends VElement>
Common base class for all SWT specific renderer classes. A renderer using other renderers to render its contents must call this methods in this order:
If you don't callgetGridDescription(SWTGridDescription)
for each SWTGridCellrender(SWTGridCell, Composite)
finalizeRendering(Composite)
finalizeRendering(Composite)
after the rendering, the automatic disposing of the renderer
will not work, as well as the initial validation check.
Constructor Summary | |
---|---|
AbstractSWTRenderer(VELEMENT vElement,
ViewModelContext viewContext,
ReportService reportService)
Default Constructor. |
Method Summary | |
---|---|
void |
finalizeRendering(org.eclipse.swt.widgets.Composite parent)
Called by the framework to initialize listener. |
abstract SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer. |
void |
init()
Initializes the AbstractSWTRenderer . |
org.eclipse.swt.widgets.Control |
render(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed VElement . |
Methods inherited from class org.eclipse.emf.ecp.view.model.common.AbstractRenderer |
---|
getVElement, getViewModelContext |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSWTRenderer(VELEMENT vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the view element to be renderedviewContext
- The view model contextreportService
- the ReportService to useMethod Detail |
---|
public abstract SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
gridDescription
- the current SWTGridDescription
public final void init()
AbstractSWTRenderer
.
public org.eclipse.swt.widgets.Control render(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement
.
cell
- the SWTGridCell
of the control to renderparent
- the Composite
to render on
Control
NoRendererFoundException
- this is thrown when a renderer cannot be found
NoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be foundpublic void finalizeRendering(org.eclipse.swt.widgets.Composite parent)
parent
- the parent used during render
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |