|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.acuity.ui.renderers.HTMLRenderer
Renderer for an HTML client. Converts PresentationObjects into
objects whose Object.toString() method produce HTML tags, representing the original presentation object.
| Field Summary | |
static int |
ERROR_WINDOW
Window type identifier to create an error message window frame |
static java.lang.String |
FORM_SUBMIT
HTML form submit method |
protected java.util.logging.Logger |
logger
The logging utility for this class |
static int |
MISSING_PROPERTY_WINDOW
Window type identifier to create a missing property window frame |
static int |
PRESENTATION_OBJECT_WINDOW
Window type identifier to create a presentation object window frame |
static java.lang.String |
SCRIPT_PREFIX
HTML javascript prefix |
static java.lang.String |
SUBMIT_TEXT
HTML submit button text |
| Constructor Summary | |
HTMLRenderer(java.util.Properties props)
Calls the default constructor with second argument null |
|
HTMLRenderer(java.util.Properties props,
java.lang.String contextPath)
Default constructor. |
|
| Method Summary | |
static java.lang.String |
constructPath(java.lang.String contextPath,
java.lang.String deploymentStructure,
java.lang.String resourceURI)
|
java.lang.Object |
importClientScripts(java.util.List scripts)
Creates the script import references described by the list of script map information |
java.lang.Object |
render(PresentationObject po)
Produces the HTML representation of the PresentationObject with no explicit styleClass or submitStyleClass information |
java.lang.Object |
render(PresentationObject po,
java.lang.String styleClass)
Produces the HTML representation of the PresentationObject with explicit styleClass information but no explicit submitStyleClass information |
java.lang.Object |
render(PresentationObject po,
java.lang.String styleClass,
java.lang.String submitStyleClass)
Produces the HTML representation of the PresentationObject with explicit styleClass and submitStyleClass information. |
java.lang.Object |
renderEditableProperties(java.lang.String id,
IndependentDisplayPO po)
Creates the presentation object properties edit pane for a PresentationObject |
static java.lang.String |
replaceHTMLCharacters(java.lang.String string)
Replaces any invalid or troublesome HTML characters with their ascii equivalents |
void |
setContextPath(java.lang.String contextPath)
Sets the client application server context path. |
void |
setProperties(java.util.Properties props)
Sets the locale specific properties to use. |
java.lang.Object |
wrapInsideFrame(java.lang.String id,
IndependentDisplayPO po,
java.lang.Object renderedPO)
Constructs the "window style" layer surrounding a rendered PresentationObject
making the ACUITy customizations possible within a web browser. |
java.lang.Object |
wrapInsideFrame(java.lang.String id,
IndependentDisplayPO po,
java.lang.Object renderedPO,
int windowType)
Constructs the "window style" layer surrounding a rendered PresentationObject
making the ACUITy customizations possible within a web browser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SCRIPT_PREFIX
public static final java.lang.String SUBMIT_TEXT
public static final java.lang.String FORM_SUBMIT
public static final int PRESENTATION_OBJECT_WINDOW
public static final int MISSING_PROPERTY_WINDOW
public static final int ERROR_WINDOW
protected final java.util.logging.Logger logger
| Constructor Detail |
public HTMLRenderer(java.util.Properties props)
null
props - the localized property values to use
public HTMLRenderer(java.util.Properties props,
java.lang.String contextPath)
HTMLRenderer
props - the localized property values to usecontextPath - the client application server context pathsetProperties(java.util.Properties),
setContextPath(java.lang.String)| Method Detail |
public java.lang.Object importClientScripts(java.util.List scripts)
scripts - list of script map information
public java.lang.Object render(PresentationObject po)
render in interface Rendererpo - the presentation object to render
Object.toString() method produces HTML tags representing the presentation objectrender(com.ge.research.acuity.ui.PresentationObject, java.lang.String, java.lang.String)
public java.lang.Object render(PresentationObject po,
java.lang.String styleClass)
po - the presentation object to renderstyleClass - the styleClass to apply to the constructed HTML tag(s)
Object.toString() method produces HTML tags representing the presentation objectrender(com.ge.research.acuity.ui.PresentationObject, java.lang.String, java.lang.String)
public java.lang.Object render(PresentationObject po,
java.lang.String styleClass,
java.lang.String submitStyleClass)
po - the presentation object to renderstyleClass - the styleClass to apply to the constructed HTML tag(s)submitStyleClass - the styleClass to apply to any submit buttons that are produced for this presentation object
Object.toString() method produces HTML tags representing the presentation objectpublic void setContextPath(java.lang.String contextPath)
contextPath is null,
the context path is set to the StringUtils.EMPTY_STRING
contextPath - the client application server context pathStringUtils.EMPTY_STRINGpublic void setProperties(java.util.Properties props)
props is null,
an empty set of properties is created and used.
props - the locale specific properties to use
public java.lang.Object wrapInsideFrame(java.lang.String id,
IndependentDisplayPO po,
java.lang.Object renderedPO)
PresentationObject
making the ACUITy customizations possible within a web browser. This method is used to created the default window
style for displayed presentation objects. Specialized styles use the wrapInsideFrame(java.lang.String, com.ge.research.acuity.ui.IndependentDisplayPO, java.lang.Object, int) method
id - the identifier to be given to the windowing layerpo - the PresentationObject which was renderedrenderedPO - the rendered PresentationObject enclosed within the windowing layer
Object.toString() method produces HTML tags representing the window style layer
holding the rendered presentation objectwrapInsideFrame(java.lang.String, com.ge.research.acuity.ui.IndependentDisplayPO, java.lang.Object, int)
public java.lang.Object wrapInsideFrame(java.lang.String id,
IndependentDisplayPO po,
java.lang.Object renderedPO,
int windowType)
PresentationObject
making the ACUITy customizations possible within a web browser.
id - the identifier to be given to the windowing layerpo - the PresentationObject which was renderedrenderedPO - the rendered PresentationObject enclosed within the windowing layerwindowType - the type of acuity window frame to create
Object.toString() method produces HTML tags representing the window style layer
holding the rendered presentation object
public java.lang.Object renderEditableProperties(java.lang.String id,
IndependentDisplayPO po)
PresentationObject
id - the unique identifier given to the edit panepo - the PresentationObject for which the edit pane is to be constructed
Object.toString() method produces HTML tags representing the list of properties
for the presentation object, whose values can be manipulated and customized by a user.
public static java.lang.String constructPath(java.lang.String contextPath,
java.lang.String deploymentStructure,
java.lang.String resourceURI)
public static final java.lang.String replaceHTMLCharacters(java.lang.String string)
string - the string to replace invalid characters for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||