|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcreamtec.webcream.rendering.AbstractDocumentRenderer
public abstract class AbstractDocumentRenderer
Acts as a base class for all document renderers and contains logic shared by all of them. Includes support for renderer maps
| Field Summary | |
|---|---|
static boolean |
dummyField1
|
static boolean |
LIMIT_MODE
|
| Constructor Summary | |
|---|---|
AbstractDocumentRenderer()
|
|
| Method Summary | |
|---|---|
void |
afterRenderComponent(Document document,
java.lang.Object obj)
A callback method that is invoked right after the component is rendered |
void |
beforeRenderComponent(Document document,
java.lang.Object obj)
A callback method that is invoked right before the component is rendered |
abstract Document |
createDocument()
Abstract Factory Method design pattern to create documents. |
ComponentRenderer |
getCustomComponentRenderer(java.lang.Object component)
Locates the proper renderer for the given component and returns it |
DefaultComponentRenderer |
getDefaultJComponentRenderer()
|
static boolean |
knownContainer(java.lang.Object comp)
Returns true if the passed component should be rendered as a container. |
void |
renderComponent(Document document,
java.lang.Object component)
Facade method for rendering a component into the document. |
abstract void |
renderContainer(Document document,
java.awt.Container container)
Renders given container into the given document. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface creamtec.webcream.rendering.DocumentRenderer |
|---|
renderDocument |
| Field Detail |
|---|
public static boolean LIMIT_MODE
public static boolean dummyField1
| Constructor Detail |
|---|
public AbstractDocumentRenderer()
| Method Detail |
|---|
public abstract void renderContainer(Document document,
java.awt.Container container)
throws java.lang.Exception
java.lang.Exception
public abstract Document createDocument()
throws java.lang.Exception
java.lang.Exception
public ComponentRenderer getCustomComponentRenderer(java.lang.Object component)
throws java.lang.Exception
component - descendent or Object descendent such as MenuBar
WebCreamException - if there is no renderer for the component
java.lang.Exception
public void renderComponent(Document document,
java.lang.Object component)
throws java.lang.Exception
renderComponent in interface ComponentRendererdocument - such as HTML page that is being renderedcomponent - GUI component that needs to be rendered. Can be subclasses of java.awt.Component
or other components such as JMenuItem
java.lang.Exceptionpublic static boolean knownContainer(java.lang.Object comp)
public void beforeRenderComponent(Document document,
java.lang.Object obj)
public void afterRenderComponent(Document document,
java.lang.Object obj)
public DefaultComponentRenderer getDefaultJComponentRenderer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||