Interface Renderer
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractWebXmlRenderer
,VelocityRenderer
public interface Renderer extends Serializable
Handles rendering of WComponents. This interface is technology independant, but implementations will be tied to a particular technology, e.g. web-based HTML/XML. Each WComponent will only use one renderer per rendering technology.
If a WComponent has no renderer, it just renders each of its child components in turn.
All renderers must be thread-safe, as only a single instance of the renderer is created by the UIManager. It is recommended that renderers do not keep any state information, to avoid the performance penality of having to synchronize methods.
- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
render(WComponent component, RenderContext renderContext)
Renders the component.
-
-
-
Method Detail
-
render
void render(WComponent component, RenderContext renderContext)
Renders the component.- Parameters:
component
- the component to paintrenderContext
- the context for rendering.
-
-