|
||||||||||
| 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 | |
|---|---|
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 |
getComponentRenderer(java.lang.Object component)
Locates the proper renderer for the given component and returns it |
ComponentRenderer |
getDefaultJComponentRenderer()
|
int |
getDeflatedHeight(int height)
Returns the height decreased by configured percentage (see application property html.inflate.height). |
int |
getDeflatedWidth(int width)
Returns the width decreased by configured percentage (see application property html.inflate.width). |
int |
getInflatedHeight(int height)
Returns the height increased by configured percentage (see application property html.inflate.height). |
int |
getInflatedWidth(int width)
Returns the width increased by configured percentage (see application property html.inflate.width). |
static java.lang.String |
getTitleForComponent(java.awt.Component comp)
Extracts the title from the component depending on the component type |
void |
initializeDocument(Document document)
|
boolean |
knownContainer(java.lang.Object comp)
Returns true if the passed component should be rendered as a container. |
void |
redirectoToStandardPage(ClientAgent agent,
int status,
java.lang.Throwable x)
Renders a standard page based on the template and the status |
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. |
abstract Document |
renderDocument(ClientAgent agent,
java.util.List 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 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 abstract Document renderDocument(ClientAgent agent,
java.util.List windows)
throws java.lang.Exception
DocumentRenderer
renderDocument in interface DocumentRendereragent - an agent representing a client to AjaxSwing application
java.lang.Exceptionpublic void initializeDocument(Document document)
public ComponentRenderer getComponentRenderer(java.lang.Object component)
component - descendant or Object descendant such as MenuBar
AjaxSwingException - if there is no renderer for the component
public void renderComponent(Document document,
java.lang.Object component)
throws java.lang.Exception
java.lang.Exceptionpublic 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 ComponentRenderer getDefaultJComponentRenderer()
public int getInflatedWidth(int width)
width - the original width
public int getInflatedHeight(int height)
height - the original height
public int getDeflatedWidth(int width)
width - the original width
public int getDeflatedHeight(int height)
height - the original height
public void redirectoToStandardPage(ClientAgent agent,
int status,
java.lang.Throwable x)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getTitleForComponent(java.awt.Component comp)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||