|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.creamtec.ajaxswing.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 |
LIMIT_MODE
|
Constructor Summary | |
---|---|
AbstractDocumentRenderer()
|
Method Summary | |
---|---|
abstract Document |
createDocument()
Abstract Factory Method design pattern to create documents. |
ComponentRenderer |
getComponentRenderer(java.lang.Object component)
Locates the proper renderer for the given component and returns it |
ComponentRenderer |
getComponentRenderer(java.lang.String className)
|
void |
initializeDocument(Document document)
|
void |
redirectoToStandardPage(ClientAgent agent,
int status,
java.lang.Throwable x)
Renders a standard page based on the template and the status |
abstract Document |
renderDocument(ClientAgent agent,
java.util.List<java.awt.Window> windows)
Top level method used to get a document representing a rendering of the window of the agent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean LIMIT_MODE
Constructor Detail |
---|
public AbstractDocumentRenderer()
Method Detail |
---|
public abstract Document createDocument() throws java.lang.Exception
java.lang.Exception
public abstract Document renderDocument(ClientAgent agent, java.util.List<java.awt.Window> windows) throws java.lang.Exception
DocumentRenderer
renderDocument
in interface DocumentRenderer
agent
- an agent representing a client to AjaxSwing application
java.lang.Exception
public void initializeDocument(Document document)
public ComponentRenderer getComponentRenderer(java.lang.String className)
public ComponentRenderer getComponentRenderer(java.lang.Object component)
component
- descendant or Object descendant such as MenuBar
AjaxSwingException
- if there is no renderer for the componentpublic void redirectoToStandardPage(ClientAgent agent, int status, java.lang.Throwable x) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |