org.salespointframework.web.html.viewrepresentations
Class NativeHtmlList

java.lang.Object
  extended by org.salespointframework.web.html.viewrepresentations.DefaultHtmlViewRepresentation
      extended by org.salespointframework.web.html.viewrepresentations.NativeHtmlList
All Implemented Interfaces:
HtmlViewRepresentation

public class NativeHtmlList
extends DefaultHtmlViewRepresentation

Declares a floating-list.
It's using by View.

Author:
Uwe Schmidt, Lars Kreisz

Field Summary
private  ListViewDirectionType direction
           
private  GenericHtmlTag div
           
private  GenericHtmlTag object
           
private  GenericHtmlTag p
           
 
Fields inherited from class org.salespointframework.web.html.viewrepresentations.DefaultHtmlViewRepresentation
summary
 
Constructor Summary
NativeHtmlList()
           
 
Method Summary
 java.lang.String getCaption(java.lang.String style, java.lang.String styleName)
          Return String: <div class="table-caption ..." ...>
 java.lang.String getCaptioneEnd()
          Return String: </div>
 java.lang.String getCellEnd()
          Return String: </p>
 java.lang.String getCellStart(java.lang.String styleName)
          Return String: <p>
 java.lang.String getEnd()
          Return String: </div>
 java.lang.String getRowEnd()
          Return String: </object>
 java.lang.String getRowStart()
          Return String: <object style="float:.." ...>
 java.lang.String getStart(java.lang.String id, java.lang.String styleName, java.lang.String style)
          Return String: <div style="display:inline-block;"... >
 boolean hasBody()
          A list has a body.
 boolean hasCaption()
          A list has a caption.
 void setDirection(ListViewDirectionType direction)
          Default is 'LEFT'.
 
Methods inherited from class org.salespointframework.web.html.viewrepresentations.DefaultHtmlViewRepresentation
getCol, getColEnd, getColGroup, getColGroupEnd, getColXHtml, getHeadEnd, getHeadStart, getTBody, getTBodyEnd, getTFoot, getTFootEnd, getTHead, getTHeadEnd, hasFooter, hasHeader, hasSummary, setSummary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

direction

private ListViewDirectionType direction

div

private GenericHtmlTag div

object

private GenericHtmlTag object

p

private GenericHtmlTag p
Constructor Detail

NativeHtmlList

public NativeHtmlList()
Method Detail

hasBody

public boolean hasBody()
A list has a body.

Specified by:
hasBody in interface HtmlViewRepresentation
Overrides:
hasBody in class DefaultHtmlViewRepresentation

hasCaption

public boolean hasCaption()
A list has a caption.

Specified by:
hasCaption in interface HtmlViewRepresentation
Overrides:
hasCaption in class DefaultHtmlViewRepresentation

getStart

public java.lang.String getStart(java.lang.String id,
                                 java.lang.String styleName,
                                 java.lang.String style)
Return String: <div style="display:inline-block;"... >

Specified by:
getStart in interface HtmlViewRepresentation
Overrides:
getStart in class DefaultHtmlViewRepresentation
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

setDirection

public void setDirection(ListViewDirectionType direction)
Default is 'LEFT'. If 'RIGHT' the list will be render in backwards direction.

Parameters:
direction -

getEnd

public java.lang.String getEnd()
Return String: </div>

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

getRowStart

public java.lang.String getRowStart()
Return String: <object style="float:.." ...>

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

getRowEnd

public java.lang.String getRowEnd()
Return String: </object>

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

getCellEnd

public java.lang.String getCellEnd()
Return String: </p>

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

getCellStart

public java.lang.String getCellStart(java.lang.String styleName)
Return String: <p>

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

getCaption

public java.lang.String getCaption(java.lang.String style,
                                   java.lang.String styleName)
Return String: <div class="table-caption ..." ...>

Specified by:
getCaption in interface HtmlViewRepresentation
Overrides:
getCaption in class DefaultHtmlViewRepresentation
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()
Return String: </div>

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