com.missiondata.oss.lakeshore
Class Renderer

java.lang.Object
  extended bycom.missiondata.oss.lakeshore.Renderer

public class Renderer
extends java.lang.Object

XHTML renderer


Field Summary
protected static java.lang.String ON_BLUR
           
protected static java.lang.String ON_CHANGE
           
protected static java.lang.String ON_CLICK
           
protected static java.lang.String ON_KEY_PRESS
           
 
Constructor Summary
Renderer(RenderableRequestHandler requestHandler)
           
 
Method Summary
 void abbreviation(java.lang.String title, java.lang.String text)
          An HTML abbreviation <abbr>
 void acronym(java.lang.String title, java.lang.String text)
          An HTML acronym <acronym>
 void address(F block)
          An HTML address <address>
 void address(java.lang.String text)
          An HTML address <address>
 void anchor(F block, CallBack action)
          An HTML anchor a
 void anchor(java.lang.String text, CallBack action)
          An HTML anchor a
 void anchorForStaticResource(java.lang.String text, java.lang.String resource)
          Create a link to a static resource (something that is in the class-path)
 void anchorOn(java.lang.Object target, java.lang.String method)
           
 void anchorWithLiveBlock(F block, LiveBlock liveBlock)
           
 void anchorWithLiveBlock(java.lang.String preFunc, F block, LiveBlock liveBlock, java.lang.String postFunc)
           
 void anchorWithLiveBlock(java.lang.String text, LiveBlock liveBlock)
           
 void area(java.lang.String alternateText, java.lang.String shape, java.lang.String coordinates, CallBack action)
           
 void attribute(java.lang.String name, java.lang.Object value)
          HTML attribute
 void big(java.lang.String text)
          An HTML big <big>
 void bold(java.lang.String text)
          HTML bold text b
 void br()
          An HTML line break br
 void button(F f)
           
 void button(F f, CallBack action)
          Beware of IE todo better info here http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs
 void caption(java.lang.String text)
          An HTML table caption caption
 void checkbox(boolean checked, CallBack action)
          An HTML checkbox input type="chekbox"
 void checkbox(java.lang.Boolean checked, CallBack action)
           
 void checkboxOn(java.lang.Object model, java.lang.String property)
           
 void checkboxWithLiveUpdate(boolean checked, CallBack action, LiveBlock liveBlock)
           
 void circleArea(java.lang.String alternativeText, int centerX, int centerY, int radius, CallBack action)
           
 void cssClass(java.lang.String cssClass)
          Set the "class" attribute of the next tag
protected  void decorateWithLiveUpdate(java.lang.String eventType, F block, LiveBlock liveBlock)
           
 java.lang.Integer defaultAction(CallBack action)
           
 java.lang.Integer defaultActionOn(java.lang.Object model, java.lang.String method)
           
 void definitionDescription(F f)
           
 void definitionDescription(java.lang.String text)
           
 void definitionList(F f)
           
 void definitionTerm(F f)
           
 void definitionTerm(java.lang.String text)
           
 void div(F block)
          An HTML div div
 void div(java.lang.String text)
          An HTML div div
 void divNamed(java.lang.String id)
           
 void divNamed(java.lang.String id, Controller controller)
           
 void divNamed(java.lang.String id, F block)
           
 void divNamed(java.lang.String id, java.lang.String text)
           
 void divWithClass(java.lang.String cssClass)
           
 void divWithClass(java.lang.String cssClass, F block)
           
 void divWithClass(java.lang.String cssClass, java.lang.String text)
           
 void elementId(java.lang.String id)
           
 java.lang.String ensureId()
           
 void fieldset(F block)
          An HTML fieldset fieldset
 void fileInput(CallBack action)
           
 void form(F block)
          An HTML form form
 java.lang.StringBuffer getBody()
           
protected  RenderableRequestHandler getRequestHandler()
           
static java.lang.String getStringValue(java.lang.Object model, java.lang.String property)
           
static java.lang.Object getValue(java.lang.Object model, java.lang.String property)
           
 void heading(int level, F f)
           
 void heading(java.lang.String text, int level)
          An HTML heading h1, h2, h3, h4, h5, h6
 void hidden(java.lang.String value, CallBack action)
           
 void horizontalRule()
          An HTML horizontal rule hr
 java.lang.String html()
          Emit the XHTML
 void image(java.lang.String src, java.lang.String alternativeText)
          An HTML image img
 void imageAnchor(java.lang.String image, java.lang.String alternativeText, CallBack action)
          Image linked with an action
 void imageSubmit(java.lang.String src, java.lang.String alternativeText, CallBack action)
           
 void inlineHeaderScript(java.lang.String script)
           
 void inlineScript(java.lang.String script)
           
protected  java.lang.Integer input(java.lang.String type, CallBack action)
          An HTML input input
protected  java.lang.Integer input(java.lang.String type, java.lang.String defaultValue, CallBack action)
          An HTML input input
 boolean isIe7ScriptEnabled()
           
 void italic(java.lang.String text)
          HTML italic text i
 void label(java.lang.String forId, java.lang.String text)
          An HTML label label
 void labeledControl(java.lang.String labelText, F f)
           
 void legend(java.lang.String text)
          An HTML fieldset legend legend
 void listItem(F block)
          An HTML list item li
 void listItem(java.lang.String text)
          An HTML list item li
 void liveUpdateOnClick(LiveBlock liveBlock, java.lang.String id)
           
 void multiSelect(java.util.Collection options, java.util.Collection selectedValues, CallBack action)
           
 void multiSelectWithLiveUpdate(java.util.Collection options, java.util.Collection selectedValues, CallBack action, LiveBlock liveBlock)
           
 java.lang.String nextId()
           
 void onBack(CallBack action)
           
 void orderedList(F block)
          An HTML ordered list ol
 void paragraph(F block)
          An HTML paragraph p
 void paragraph(java.lang.String text)
          An HTML paragraph p
 void password(CallBack action)
          An HTML password input type="password"
 void password(java.lang.String defaultValue, CallBack action)
          An HTML password input type="password"
 void passwordOn(java.lang.Object model, java.lang.String property)
          Create a password that is backed by model.property
 void passwordWithDataOn(java.lang.Object model, java.lang.String property)
           
 void pre(java.lang.String text)
          An HTML pre pre
 void radioButton(java.lang.Integer radioButtonGroup, java.lang.String value, boolean checked)
           
 java.lang.Integer radioButtonGroup(CallBack action)
           
 void rectangleArea(java.lang.String alternativeText, int left, int top, int right, int bottom, CallBack action)
           
 void registerOnLoadFunction(java.lang.String function)
           
 java.lang.String registerStaticRequestHandler(java.lang.String name)
           
 void render(Controller controller)
           
 void renderOnce(java.lang.String token, F f)
           
protected  java.lang.String renderSubexpression(F block)
           
 void script(java.lang.String scriptFile)
          Include an external javascript file
 void select(java.util.Collection options, java.lang.Object selectedValue, CallBack action)
          An HTML select
 void selectOn(java.util.Collection options, java.lang.Object model, java.lang.String property)
          Create a select that is backed by model.property
 void selectWithLiveUpdate(java.util.Collection options, java.lang.Object selectedValue, CallBack action, LiveBlock liveBlock)
           
 void selectWithLiveUpdateOn(java.util.Collection options, java.lang.Object model, java.lang.String property, LiveBlock liveBlock)
           
 void selectWithLiveUpdateOn(java.lang.String preFunc, java.util.Collection options, java.lang.Object model, java.lang.String property, LiveBlock liveBlock, java.lang.String postFunc)
           
 void setCharset(java.lang.String charset)
           
 void setIe7ScriptEnabled(boolean ie7ScriptEnabled)
           
 void shortcutIcon(java.lang.String iconUrl)
           
 void small(F block)
           
 void small(java.lang.String text)
          HTML small text small
 void space()
          An HTML non breaking space  
 void span(F block)
           
 void span(java.lang.String text)
          An HTML span span
 void spanNamed(java.lang.String id, F block)
           
 void spanNamed(java.lang.String id, java.lang.String text)
           
 void spanWithClass(java.lang.String cssClass, F block)
           
 void spanWithClass(java.lang.String cssClass, java.lang.String text)
           
 void strong(java.lang.String text)
          HTML strong text s
 void styleSheet(java.lang.String styleSheet)
          Include an external stylesheet
 void submit(java.lang.String name, CallBack action)
          An HTML submit button input type="submit"
 void table(F block)
          An HTML table table
 void tableBody(F block)
          An HTML table body section tbody
 void tableData(F block)
          An HTML table data td
 void tableData(java.lang.String text)
          An HTML table data td
 void tableFooter(F block)
          An HTML table footer section tfoot
 void tableHead(F block)
          An HTML table head section thead
 void tableHead(java.lang.String[] headings)
           
 void tableHeading(F block)
          An HTML table heading th
 void tableHeading(java.lang.String text)
          An HTML table heading th
 void tableRow(F block)
          An HTML table row tr
 void tableRowSpan(int columns, F block)
           
 void tableSpacerRow()
           
protected  void tag(java.lang.String tag)
           
 void text(java.lang.String value)
          Plain text
 void textArea(java.lang.String defaultValue, CallBack action)
          Deprecated. Rows and Cols are required attributes.
 void textArea(java.lang.String defaultValue, int rows, int cols, CallBack action)
          An HTML text area textarea
 void textAreaOn(int rows, int cols, java.lang.Object model, java.lang.String property)
          Create a textarea that is backed by model.property
 void textAreaOn(java.lang.Object model, java.lang.String property)
          Create a textarea that is backed by model.property
 void textInput(java.lang.String defaultValue, CallBack action)
          An HTML text input input type="text"
 void textInputOn(java.lang.Object model, java.lang.String property)
          Create a text input that is backed by model.property
 void textInputWithAutocomplete(CallBack action, AutocompleteBlock autocompleteBlock)
           
 void textInputWithCallBack(CallBack action, LiveBlock liveBlock)
           
 void textInputWithCallBack(java.lang.String initialValue, CallBack action, LiveBlock liveBlock)
           
 void title(java.lang.String title)
          An HTML page title title
 void unorderedList(java.util.Collection options)
          An HTML unordered list ul
 void unorderedList(F block)
          An HTML unordered list ul
 void unregisterRequestHandler(java.lang.String uri)
           
 void urlAnchor(java.lang.String url, F block)
           
 void urlAnchor(java.lang.String url, java.lang.String text)
           
 void urlImageAnchor(java.lang.String url, java.lang.String image, java.lang.String alternativeText)
           
protected  void wrapTag(java.lang.String tag, F block)
           
protected  void wrapTag(java.lang.String tag, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON_CHANGE

protected static final java.lang.String ON_CHANGE
See Also:
Constant Field Values

ON_KEY_PRESS

protected static final java.lang.String ON_KEY_PRESS
See Also:
Constant Field Values

ON_CLICK

protected static final java.lang.String ON_CLICK
See Also:
Constant Field Values

ON_BLUR

protected static final java.lang.String ON_BLUR
See Also:
Constant Field Values
Constructor Detail

Renderer

public Renderer(RenderableRequestHandler requestHandler)
Method Detail

abbreviation

public void abbreviation(java.lang.String title,
                         java.lang.String text)
An HTML abbreviation <abbr>

Parameters:
title - advisory title/amplification
text -

acronym

public void acronym(java.lang.String title,
                    java.lang.String text)
An HTML acronym <acronym>

Parameters:
title - advisory title/amplification
text - content of the tag

address

public void address(java.lang.String text)
An HTML address <address>

Parameters:
text - content of the tag

address

public void address(F block)
An HTML address <address>

Parameters:
block - content of the tag

area

public void area(java.lang.String alternateText,
                 java.lang.String shape,
                 java.lang.String coordinates,
                 CallBack action)

circleArea

public void circleArea(java.lang.String alternativeText,
                       int centerX,
                       int centerY,
                       int radius,
                       CallBack action)

rectangleArea

public void rectangleArea(java.lang.String alternativeText,
                          int left,
                          int top,
                          int right,
                          int bottom,
                          CallBack action)

big

public void big(java.lang.String text)
An HTML big <big>

Parameters:
text - content of the tag

pre

public void pre(java.lang.String text)
An HTML pre pre

Parameters:
text - content of the tag

form

public void form(F block)
An HTML form form

Parameters:
block -

fieldset

public void fieldset(F block)
An HTML fieldset fieldset

Parameters:
block -

legend

public void legend(java.lang.String text)
An HTML fieldset legend legend

Parameters:
text -

div

public void div(F block)
An HTML div div

Parameters:
block -

div

public void div(java.lang.String text)
An HTML div div

Parameters:
text - the content of the label

label

public void label(java.lang.String forId,
                  java.lang.String text)
An HTML label label

Parameters:
text - the content of the label

table

public void table(F block)
An HTML table table

Parameters:
block -

tableHead

public void tableHead(F block)
An HTML table head section thead

Parameters:
block -

tableHead

public void tableHead(java.lang.String[] headings)

tableBody

public void tableBody(F block)
An HTML table body section tbody

Parameters:
block -

tableFooter

public void tableFooter(F block)
An HTML table footer section tfoot

Parameters:
block -

tableRow

public void tableRow(F block)
An HTML table row tr

Parameters:
block -

tableRowSpan

public void tableRowSpan(int columns,
                         F block)

tableSpacerRow

public void tableSpacerRow()

tableHeading

public void tableHeading(java.lang.String text)
An HTML table heading th

Parameters:
text - the content of the heading cell

tableHeading

public void tableHeading(F block)
An HTML table heading th

Parameters:
block -

tableData

public void tableData(java.lang.String text)
An HTML table data td

Parameters:
text - the content of the data cell

tableData

public void tableData(F block)
An HTML table data td

Parameters:
block -

caption

public void caption(java.lang.String text)
An HTML table caption caption

Parameters:
text - the content of the caption

unorderedList

public void unorderedList(F block)
An HTML unordered list ul

Parameters:
block -

unorderedList

public void unorderedList(java.util.Collection options)
An HTML unordered list ul

Parameters:
options - to include in this list

orderedList

public void orderedList(F block)
An HTML ordered list ol

Parameters:
block -

listItem

public void listItem(java.lang.String text)
An HTML list item li

Parameters:
text -

listItem

public void listItem(F block)
An HTML list item li

Parameters:
block -

heading

public void heading(java.lang.String text,
                    int level)
An HTML heading h1, h2, h3, h4, h5, h6

Parameters:
text -
level -

heading

public void heading(int level,
                    F f)

bold

public void bold(java.lang.String text)
HTML bold text b

Parameters:
text - to bold

strong

public void strong(java.lang.String text)
HTML strong text s

Parameters:
text - to strong

italic

public void italic(java.lang.String text)
HTML italic text i

Parameters:
text - to italicize

small

public void small(java.lang.String text)
HTML small text small

Parameters:
text - that should be rendered small

small

public void small(F block)

span

public void span(java.lang.String text)
An HTML span span

Parameters:
text -

span

public void span(F block)

paragraph

public void paragraph(java.lang.String text)
An HTML paragraph p

Parameters:
text -

paragraph

public void paragraph(F block)
An HTML paragraph p

Parameters:
block -

br

public void br()
An HTML line break br


horizontalRule

public void horizontalRule()
An HTML horizontal rule hr


space

public void space()
An HTML non breaking space  


styleSheet

public void styleSheet(java.lang.String styleSheet)
Include an external stylesheet

Parameters:
styleSheet -

shortcutIcon

public void shortcutIcon(java.lang.String iconUrl)

inlineScript

public void inlineScript(java.lang.String script)

inlineHeaderScript

public void inlineHeaderScript(java.lang.String script)

script

public void script(java.lang.String scriptFile)
Include an external javascript file

Parameters:
scriptFile -

title

public void title(java.lang.String title)
An HTML page title title


text

public void text(java.lang.String value)
Plain text

Parameters:
value -

image

public void image(java.lang.String src,
                  java.lang.String alternativeText)
An HTML image img

Parameters:
src -
alternativeText -

textArea

public void textArea(java.lang.String defaultValue,
                     CallBack action)
Deprecated. Rows and Cols are required attributes.

An HTML text area textarea

Parameters:
defaultValue - the value to display in the form element
action - callback to be made when a form is submitted

textArea

public void textArea(java.lang.String defaultValue,
                     int rows,
                     int cols,
                     CallBack action)
An HTML text area textarea

Parameters:
defaultValue - the value to display in the form element
rows - height of the text area
cols - width of the textarea
action - callback to be made when a form is submitted

textInput

public void textInput(java.lang.String defaultValue,
                      CallBack action)
An HTML text input input type="text"

Parameters:
defaultValue - the value to display in the form element
action - callback to be made when a form is submitted

fileInput

public void fileInput(CallBack action)

password

public void password(CallBack action)
An HTML password input type="password"

Parameters:
action - callback to be made when a form is submitted

password

public void password(java.lang.String defaultValue,
                     CallBack action)
An HTML password input type="password"

Parameters:
action - callback to be made when a form is submitted

submit

public void submit(java.lang.String name,
                   CallBack action)
An HTML submit button input type="submit"

Parameters:
name - the text the button displays
action - callback to be made when a form is submitted

imageSubmit

public void imageSubmit(java.lang.String src,
                        java.lang.String alternativeText,
                        CallBack action)

button

public void button(F f,
                   CallBack action)
Beware of IE todo better info here http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs

Parameters:
f -
action -

button

public void button(F f)

input

protected java.lang.Integer input(java.lang.String type,
                                  CallBack action)
An HTML input input

Parameters:
type - the type of input
action - callback to be made when a form is submitted
Returns:
the key of this input

input

protected java.lang.Integer input(java.lang.String type,
                                  java.lang.String defaultValue,
                                  CallBack action)
An HTML input input

Parameters:
type - the type of input
defaultValue - the value to display in the form element
action - callback to be made when a form is submitted
Returns:
the key of this input

defaultAction

public java.lang.Integer defaultAction(CallBack action)

defaultActionOn

public java.lang.Integer defaultActionOn(java.lang.Object model,
                                         java.lang.String method)

onBack

public void onBack(CallBack action)

anchor

public void anchor(java.lang.String text,
                   CallBack action)
An HTML anchor a

Parameters:
text - the text of the anchor
action - callback to be made when the anchor is clicked

anchor

public void anchor(F block,
                   CallBack action)
An HTML anchor a

Parameters:
block - the inner html of the anchor
action - callback to be made when the anchor is clicked

anchorOn

public void anchorOn(java.lang.Object target,
                     java.lang.String method)

urlAnchor

public void urlAnchor(java.lang.String url,
                      java.lang.String text)

urlAnchor

public void urlAnchor(java.lang.String url,
                      F block)

anchorForStaticResource

public void anchorForStaticResource(java.lang.String text,
                                    java.lang.String resource)
Create a link to a static resource (something that is in the class-path)

Parameters:
text -
resource -

select

public void select(java.util.Collection options,
                   java.lang.Object selectedValue,
                   CallBack action)
An HTML select

Parameters:
options - the text of options option. The option may optionally implement Selectable for name/value pairs
selectedValue - the selected option
action - callback to be made when the anchor is clicked

hidden

public void hidden(java.lang.String value,
                   CallBack action)

multiSelect

public void multiSelect(java.util.Collection options,
                        java.util.Collection selectedValues,
                        CallBack action)

checkbox

public void checkbox(boolean checked,
                     CallBack action)
An HTML checkbox input type="chekbox"

Parameters:
action - callback to be made when the form is submitted

checkbox

public void checkbox(java.lang.Boolean checked,
                     CallBack action)

radioButtonGroup

public java.lang.Integer radioButtonGroup(CallBack action)

radioButton

public void radioButton(java.lang.Integer radioButtonGroup,
                        java.lang.String value,
                        boolean checked)

anchorWithLiveBlock

public void anchorWithLiveBlock(java.lang.String text,
                                LiveBlock liveBlock)

liveUpdateOnClick

public void liveUpdateOnClick(LiveBlock liveBlock,
                              java.lang.String id)

getRequestHandler

protected RenderableRequestHandler getRequestHandler()

anchorWithLiveBlock

public void anchorWithLiveBlock(F block,
                                LiveBlock liveBlock)

anchorWithLiveBlock

public void anchorWithLiveBlock(java.lang.String preFunc,
                                F block,
                                LiveBlock liveBlock,
                                java.lang.String postFunc)

textInputWithCallBack

public void textInputWithCallBack(CallBack action,
                                  LiveBlock liveBlock)

textInputWithCallBack

public void textInputWithCallBack(java.lang.String initialValue,
                                  CallBack action,
                                  LiveBlock liveBlock)

selectWithLiveUpdate

public void selectWithLiveUpdate(java.util.Collection options,
                                 java.lang.Object selectedValue,
                                 CallBack action,
                                 LiveBlock liveBlock)

selectWithLiveUpdateOn

public void selectWithLiveUpdateOn(java.lang.String preFunc,
                                   java.util.Collection options,
                                   java.lang.Object model,
                                   java.lang.String property,
                                   LiveBlock liveBlock,
                                   java.lang.String postFunc)

selectWithLiveUpdateOn

public void selectWithLiveUpdateOn(java.util.Collection options,
                                   java.lang.Object model,
                                   java.lang.String property,
                                   LiveBlock liveBlock)

multiSelectWithLiveUpdate

public void multiSelectWithLiveUpdate(java.util.Collection options,
                                      java.util.Collection selectedValues,
                                      CallBack action,
                                      LiveBlock liveBlock)

checkboxWithLiveUpdate

public void checkboxWithLiveUpdate(boolean checked,
                                   CallBack action,
                                   LiveBlock liveBlock)

decorateWithLiveUpdate

protected void decorateWithLiveUpdate(java.lang.String eventType,
                                      F block,
                                      LiveBlock liveBlock)

textInputWithAutocomplete

public void textInputWithAutocomplete(CallBack action,
                                      AutocompleteBlock autocompleteBlock)

divWithClass

public void divWithClass(java.lang.String cssClass)

divWithClass

public void divWithClass(java.lang.String cssClass,
                         java.lang.String text)

divWithClass

public void divWithClass(java.lang.String cssClass,
                         F block)

divNamed

public void divNamed(java.lang.String id)

divNamed

public void divNamed(java.lang.String id,
                     java.lang.String text)

divNamed

public void divNamed(java.lang.String id,
                     F block)

divNamed

public void divNamed(java.lang.String id,
                     Controller controller)

spanNamed

public void spanNamed(java.lang.String id,
                      java.lang.String text)

spanNamed

public void spanNamed(java.lang.String id,
                      F block)

spanWithClass

public void spanWithClass(java.lang.String cssClass,
                          java.lang.String text)

spanWithClass

public void spanWithClass(java.lang.String cssClass,
                          F block)

textInputOn

public void textInputOn(java.lang.Object model,
                        java.lang.String property)
Create a text input that is backed by model.property

Parameters:
model -
property -

passwordOn

public void passwordOn(java.lang.Object model,
                       java.lang.String property)
Create a password that is backed by model.property

Parameters:
model -
property -

passwordWithDataOn

public void passwordWithDataOn(java.lang.Object model,
                               java.lang.String property)

textAreaOn

public void textAreaOn(java.lang.Object model,
                       java.lang.String property)
Create a textarea that is backed by model.property

Parameters:
model -
property -

textAreaOn

public void textAreaOn(int rows,
                       int cols,
                       java.lang.Object model,
                       java.lang.String property)
Create a textarea that is backed by model.property

Parameters:
rows - Height of the textarea
cols - Width of the textarea
model -
property -

selectOn

public void selectOn(java.util.Collection options,
                     java.lang.Object model,
                     java.lang.String property)
Create a select that is backed by model.property

Parameters:
model -
property -

checkboxOn

public void checkboxOn(java.lang.Object model,
                       java.lang.String property)

imageAnchor

public void imageAnchor(java.lang.String image,
                        java.lang.String alternativeText,
                        CallBack action)
Image linked with an action

Parameters:
image - Image URL
alternativeText -
action -

urlImageAnchor

public void urlImageAnchor(java.lang.String url,
                           java.lang.String image,
                           java.lang.String alternativeText)

definitionList

public void definitionList(F f)

definitionTerm

public void definitionTerm(java.lang.String text)

definitionTerm

public void definitionTerm(F f)

definitionDescription

public void definitionDescription(java.lang.String text)

definitionDescription

public void definitionDescription(F f)

labeledControl

public void labeledControl(java.lang.String labelText,
                           F f)

cssClass

public void cssClass(java.lang.String cssClass)
Set the "class" attribute of the next tag

Parameters:
cssClass -

ensureId

public java.lang.String ensureId()

nextId

public java.lang.String nextId()

elementId

public void elementId(java.lang.String id)

render

public void render(Controller controller)

html

public java.lang.String html()
Emit the XHTML

Returns:
XHTML rendering of the current application state

attribute

public void attribute(java.lang.String name,
                      java.lang.Object value)
HTML attribute

Parameters:
name - Attribute name (e.g., colspan)
value - Attribute value (e.g., 2)

getBody

public java.lang.StringBuffer getBody()

wrapTag

protected void wrapTag(java.lang.String tag,
                       F block)

wrapTag

protected void wrapTag(java.lang.String tag,
                       java.lang.String value)

tag

protected void tag(java.lang.String tag)

setCharset

public void setCharset(java.lang.String charset)

renderSubexpression

protected java.lang.String renderSubexpression(F block)

getStringValue

public static java.lang.String getStringValue(java.lang.Object model,
                                              java.lang.String property)

getValue

public static java.lang.Object getValue(java.lang.Object model,
                                        java.lang.String property)

unregisterRequestHandler

public void unregisterRequestHandler(java.lang.String uri)

registerStaticRequestHandler

public java.lang.String registerStaticRequestHandler(java.lang.String name)

renderOnce

public void renderOnce(java.lang.String token,
                       F f)

isIe7ScriptEnabled

public boolean isIe7ScriptEnabled()

setIe7ScriptEnabled

public void setIe7ScriptEnabled(boolean ie7ScriptEnabled)

registerOnLoadFunction

public void registerOnLoadFunction(java.lang.String function)