VELEMENT
- the VElement
this renderer is applicable forpublic abstract class AbstractRenderer<VELEMENT extends VElement> extends Object
Constructor and Description |
---|
AbstractRenderer(VELEMENT vElement,
ViewModelContext viewContext,
ReportService reportService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkRenderer()
Checks whether the renderer is disposed and if so throws an
IllegalStateException . |
protected void |
dispose()
Disposes all resources used by the renderer.
|
static AbstractRenderer<? extends VElement> |
getRenderer(VElement element,
ViewModelContext context)
Query the renderer that renders a given view model
element in a particular
view model context . |
protected ReportService |
getReportService()
The
SWTRendererFactory instance to use. |
VELEMENT |
getVElement()
The
VElement instance to use. |
ViewModelContext |
getViewModelContext()
The
ViewModelContext to use. |
protected void |
register(VElement viewModelElement)
Associate me with a view model element as its renderer.
|
public AbstractRenderer(VELEMENT vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the VElement
to be renderedviewContext
- the ViewModelContext
to usereportService
- The ReportService
to usepublic final ViewModelContext getViewModelContext()
ViewModelContext
to use.ViewModelContext
protected void dispose()
protected void checkRenderer()
IllegalStateException
.protected final ReportService getReportService()
SWTRendererFactory
instance to use.SWTRendererFactory
protected void register(VElement viewModelElement)
viewModelElement
- the view model element to register as rendered by mepublic static AbstractRenderer<? extends VElement> getRenderer(VElement element, ViewModelContext context)
element
in a particular
view model context
.element
- a view model element rendered in some context
context
- the view model rendering context
null
if the element
is not rendered in this context
Copyright © 2019. All rights reserved.