org.salespointframework.web.html.viewrepresentations
Class DefaultHtmlViewRepresentation

java.lang.Object
  extended by org.salespointframework.web.html.viewrepresentations.DefaultHtmlViewRepresentation
All Implemented Interfaces:
HtmlViewRepresentation
Direct Known Subclasses:
NativeHtmlCssTable, NativeHtmlList, NativeHtmlTable

public abstract class DefaultHtmlViewRepresentation
extends java.lang.Object
implements HtmlViewRepresentation

This is a ViewRepresentation that methods return only empty Stings. So you can overwrite what ever you need.

Author:
Uwe Schmidt, Lars Kreisz

Field Summary
private static java.lang.String EMPTY
           
protected  java.lang.String summary
           
 
Constructor Summary
DefaultHtmlViewRepresentation()
           
 
Method Summary
 java.lang.String getCaption(java.lang.String style, java.lang.String styleName)
          Returns an empty string.
 java.lang.String getCaptioneEnd()
          Returns an empty string.
 java.lang.String getCellEnd()
          Returns an empty string.
 java.lang.String getCellStart(java.lang.String styleName)
          Returns an empty string.
 java.lang.String getCol(java.lang.String width, java.lang.String span)
          Returns an empty string.
 java.lang.String getColEnd()
          Returns an empty string.
 java.lang.String getColGroup(java.lang.String width, java.lang.String span)
          Returns an empty string.
 java.lang.String getColGroupEnd()
          Returns an empty string.
 java.lang.String getColXHtml(java.lang.String width, java.lang.String span)
          Returns an empty string.
 java.lang.String getEnd()
          Returns an empty string.
 java.lang.String getHeadEnd()
          Returns an empty string.
 java.lang.String getHeadStart(java.lang.String styleName)
          Returns an empty string.
 java.lang.String getRowEnd()
          Returns an empty string.
 java.lang.String getRowStart()
          Returns an empty string.
 java.lang.String getStart(java.lang.String id, java.lang.String styleName, java.lang.String style)
          Returns an empty string.
 java.lang.String getTBody(java.lang.String style, java.lang.String styleName)
          Returns an empty string.
 java.lang.String getTBodyEnd()
          Returns an empty string.
 java.lang.String getTFoot(java.lang.String style, java.lang.String styleName)
          Returns an empty string.
 java.lang.String getTFootEnd()
          Returns an empty string.
 java.lang.String getTHead(java.lang.String style, java.lang.String styleName)
          Returns an empty string.
 java.lang.String getTHeadEnd()
          Returns an empty string.
 boolean hasBody()
          No body will be shown.
 boolean hasCaption()
          No caption is insert.
 boolean hasFooter()
          No footer will be shown.
 boolean hasHeader()
          No header will be shown.
 boolean hasSummary()
          No summary is insert.
 void setSummary(java.lang.String summary)
          Set the summary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

private static final java.lang.String EMPTY
See Also:
Constant Field Values

summary

protected java.lang.String summary
Constructor Detail

DefaultHtmlViewRepresentation

public DefaultHtmlViewRepresentation()
Method Detail

hasHeader

public boolean hasHeader()
No header will be shown.

Specified by:
hasHeader in interface HtmlViewRepresentation

hasBody

public boolean hasBody()
No body will be shown.

Specified by:
hasBody in interface HtmlViewRepresentation

hasFooter

public boolean hasFooter()
No footer will be shown.

Specified by:
hasFooter in interface HtmlViewRepresentation

hasSummary

public boolean hasSummary()
No summary is insert.

Specified by:
hasSummary in interface HtmlViewRepresentation

hasCaption

public boolean hasCaption()
No caption is insert.

Specified by:
hasCaption in interface HtmlViewRepresentation

setSummary

public void setSummary(java.lang.String summary)
Set the summary.

Specified by:
setSummary in interface HtmlViewRepresentation

getCaption

public java.lang.String getCaption(java.lang.String style,
                                   java.lang.String styleName)
Returns an empty string.

Specified by:
getCaption in interface HtmlViewRepresentation
Parameters:
style - The value of the style-attribute of the rendered tag.
styleName - The value of the class-attribute of the rendered tag.
Returns:
String of HTML-code

getCaptioneEnd

public java.lang.String getCaptioneEnd()
Returns an empty string.

Specified by:
getCaptioneEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getCellEnd

public java.lang.String getCellEnd()
Returns an empty string.

Specified by:
getCellEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getCellStart

public java.lang.String getCellStart(java.lang.String styleName)
Returns an empty string.

Specified by:
getCellStart in interface HtmlViewRepresentation
Parameters:
styleName - The value of the class-attribute of the rendered tag.
Returns:
String of HTML-code

getCol

public java.lang.String getCol(java.lang.String width,
                               java.lang.String span)
Returns an empty string.

Specified by:
getCol in interface HtmlViewRepresentation
Parameters:
width - The value of the width-attribute of the rendered tag.
span - The value of the span-attribute of the rendered tag.
Returns:
String of HTML-code

getColEnd

public java.lang.String getColEnd()
Returns an empty string.

Specified by:
getColEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getColGroup

public java.lang.String getColGroup(java.lang.String width,
                                    java.lang.String span)
Returns an empty string.

Specified by:
getColGroup in interface HtmlViewRepresentation
Parameters:
width - The value of the width-attribute of the rendered tag.
span - The value of the span-attribute of the rendered tag.
Returns:
String of HTML-code

getColGroupEnd

public java.lang.String getColGroupEnd()
Returns an empty string.

Specified by:
getColGroupEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getColXHtml

public java.lang.String getColXHtml(java.lang.String width,
                                    java.lang.String span)
Returns an empty string.

Specified by:
getColXHtml in interface HtmlViewRepresentation
Parameters:
width - The value of the width-attribute of the rendered tag.
span - The value of the span-attribute of the rendered tag.
Returns:
String of HTML-code

getEnd

public java.lang.String getEnd()
Returns an empty string.

Specified by:
getEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getHeadEnd

public java.lang.String getHeadEnd()
Returns an empty string.

Specified by:
getHeadEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getHeadStart

public java.lang.String getHeadStart(java.lang.String styleName)
Returns an empty string.

Specified by:
getHeadStart in interface HtmlViewRepresentation
Parameters:
styleName - The value of the class-attribute of the rendered tag.
Returns:
String of HTML-code

getRowEnd

public java.lang.String getRowEnd()
Returns an empty string.

Specified by:
getRowEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getRowStart

public java.lang.String getRowStart()
Returns an empty string.

Specified by:
getRowStart in interface HtmlViewRepresentation
Returns:
String of HTML-code

getStart

public java.lang.String getStart(java.lang.String id,
                                 java.lang.String styleName,
                                 java.lang.String style)
Returns an empty string.

Specified by:
getStart in interface HtmlViewRepresentation
Parameters:
id - The value of the id-attribute of the rendered tag. Be sure it's unique for the whole HTML document.
styleName - The value of the class-attribute of the rendered tag.
style - The value of the style-attribute of the rendered tag.
Returns:
String of HTML-code

getTBody

public java.lang.String getTBody(java.lang.String style,
                                 java.lang.String styleName)
Returns an empty string.

Specified by:
getTBody in interface HtmlViewRepresentation
Parameters:
style - The value of the style-attribute of the rendered tag.
styleName - The value of the class-attribute of the rendered tag.
Returns:
String of HTML-code

getTBodyEnd

public java.lang.String getTBodyEnd()
Returns an empty string.

Specified by:
getTBodyEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getTFoot

public java.lang.String getTFoot(java.lang.String style,
                                 java.lang.String styleName)
Returns an empty string.

Specified by:
getTFoot in interface HtmlViewRepresentation
Parameters:
style - The value of the style-attribute of the rendered tag.
styleName - The value of the class-attribute of the rendered tag.
Returns:
String of HTML-code

getTFootEnd

public java.lang.String getTFootEnd()
Returns an empty string.

Specified by:
getTFootEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code

getTHead

public java.lang.String getTHead(java.lang.String style,
                                 java.lang.String styleName)
Returns an empty string.

Specified by:
getTHead in interface HtmlViewRepresentation
Parameters:
style - The value of the style-attribute of the rendered tag.
styleName - The value of the class-attribute of the rendered tag.
Returns:
String of HTML-code

getTHeadEnd

public java.lang.String getTHeadEnd()
Returns an empty string.

Specified by:
getTHeadEnd in interface HtmlViewRepresentation
Returns:
String of HTML-code