|
|||||||||
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.emf.ecp.view.spi.swt.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. init(VElement, ViewModelContext)
is called by the
framework when providing the renderer. You don't need to call this.
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()
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(VELEMENT vElement,
ViewModelContext viewContext)
Initialize the control. |
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()
Method Detail |
---|
public abstract SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
gridDescription
- the current GridDescription
public final void init(VELEMENT vElement, ViewModelContext viewContext)
init
in class AbstractRenderer<VELEMENT extends VElement>
vElement
- the VElement
to be renderedviewContext
- the ViewModelContext
to useAbstractRenderer.init(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
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 final 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 |