|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.web.html.viewrepresentations.DefaultHtmlViewRepresentation
org.salespointframework.web.html.viewrepresentations.NativeHtmlTable
public class NativeHtmlTable
Declares a table.
It's using by View
.
Field Summary | |
---|---|
private GenericHtmlTag |
cell
|
private GenericHtmlTag |
head
|
private GenericHtmlTag |
row
|
private int |
rowCounter
|
private boolean |
zebraStyle
|
Fields inherited from class org.salespointframework.web.html.viewrepresentations.DefaultHtmlViewRepresentation |
---|
summary |
Constructor Summary | |
---|---|
NativeHtmlTable(boolean zebraStyle)
Default is 'false'. |
Method Summary | |
---|---|
java.lang.String |
getCaption(java.lang.String style,
java.lang.String styleName)
Return String : <caption> |
java.lang.String |
getCaptioneEnd()
Return String : </caption> |
java.lang.String |
getCellEnd()
Return String : </td> |
java.lang.String |
getCellStart(java.lang.String styleName)
Return String : <td> |
java.lang.String |
getCol(java.lang.String width,
java.lang.String span)
Return String : <col> |
java.lang.String |
getColEnd()
Return String : </col> |
java.lang.String |
getColGroup(java.lang.String width,
java.lang.String span)
Return String : <colgroup> |
java.lang.String |
getColGroupEnd()
Return String : </colgroup> |
java.lang.String |
getColXHtml(java.lang.String width,
java.lang.String span)
Return String : <col/> |
java.lang.String |
getEnd()
Return String : </table> |
java.lang.String |
getHeadEnd()
Return String : </th> |
java.lang.String |
getHeadStart(java.lang.String styleName)
Return String : <th> |
java.lang.String |
getRowEnd()
Return String : </tr> |
java.lang.String |
getRowStart()
Return String : <tr> |
java.lang.String |
getStart(java.lang.String id,
java.lang.String styleName,
java.lang.String style)
Return String : <table id='... > |
java.lang.String |
getTBody(java.lang.String style,
java.lang.String styleName)
Return String : <tbody> |
java.lang.String |
getTBodyEnd()
Return String : </tbody> |
java.lang.String |
getTFoot(java.lang.String style,
java.lang.String styleName)
Return String : <tfoot> |
java.lang.String |
getTFootEnd()
Return String : </tfoot> |
java.lang.String |
getTHead(java.lang.String style,
java.lang.String styleName)
Return String : <thead> |
java.lang.String |
getTHeadEnd()
Return String : </thead> |
boolean |
hasBody()
A table has a body. |
boolean |
hasCaption()
A table has a caption. |
boolean |
hasFooter()
A table has a footer. |
boolean |
hasHeader()
A table has a header. |
boolean |
hasSummary()
A table has a summary. |
boolean |
isZebraStyle()
|
void |
setZebraStyle(boolean zebraStyle)
Default is 'false'. |
Methods inherited from class org.salespointframework.web.html.viewrepresentations.DefaultHtmlViewRepresentation |
---|
setSummary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int rowCounter
private boolean zebraStyle
private GenericHtmlTag head
private GenericHtmlTag row
private GenericHtmlTag cell
Constructor Detail |
---|
public NativeHtmlTable(boolean zebraStyle)
zebraStyle
- Method Detail |
---|
public boolean isZebraStyle()
public void setZebraStyle(boolean zebraStyle)
zebraStyle
- public boolean hasHeader()
hasHeader
in interface HtmlViewRepresentation
hasHeader
in class DefaultHtmlViewRepresentation
public boolean hasBody()
hasBody
in interface HtmlViewRepresentation
hasBody
in class DefaultHtmlViewRepresentation
public boolean hasFooter()
hasFooter
in interface HtmlViewRepresentation
hasFooter
in class DefaultHtmlViewRepresentation
public boolean hasSummary()
hasSummary
in interface HtmlViewRepresentation
hasSummary
in class DefaultHtmlViewRepresentation
public boolean hasCaption()
hasCaption
in interface HtmlViewRepresentation
hasCaption
in class DefaultHtmlViewRepresentation
public java.lang.String getStart(java.lang.String id, java.lang.String styleName, java.lang.String style)
String
: <table id='... >
getStart
in interface HtmlViewRepresentation
getStart
in class DefaultHtmlViewRepresentation
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.
String
of HTML-codepublic java.lang.String getEnd()
String
: </table>
getEnd
in interface HtmlViewRepresentation
getEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getHeadStart(java.lang.String styleName)
String
: <th>
getHeadStart
in interface HtmlViewRepresentation
getHeadStart
in class DefaultHtmlViewRepresentation
styleName
- The value of the class-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getHeadEnd()
String
: </th>
getHeadEnd
in interface HtmlViewRepresentation
getHeadEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getRowStart()
String
: <tr>
getRowStart
in interface HtmlViewRepresentation
getRowStart
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getRowEnd()
String
: </tr>
getRowEnd
in interface HtmlViewRepresentation
getRowEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getCellStart(java.lang.String styleName)
String
: <td>
getCellStart
in interface HtmlViewRepresentation
getCellStart
in class DefaultHtmlViewRepresentation
styleName
- The value of the class-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getCellEnd()
String
: </td>
getCellEnd
in interface HtmlViewRepresentation
getCellEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getCaption(java.lang.String style, java.lang.String styleName)
String
: <caption>
getCaption
in interface HtmlViewRepresentation
getCaption
in class DefaultHtmlViewRepresentation
style
- The value of the style-attribute of the rendered tag.styleName
- The value of the class-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getCaptioneEnd()
String
: </caption>
getCaptioneEnd
in interface HtmlViewRepresentation
getCaptioneEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getCol(java.lang.String width, java.lang.String span)
String
: <col>
getCol
in interface HtmlViewRepresentation
getCol
in class DefaultHtmlViewRepresentation
width
- The value of the width-attribute of the rendered tag.span
- The value of the span-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getColEnd()
String
: </col>
getColEnd
in interface HtmlViewRepresentation
getColEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getColGroup(java.lang.String width, java.lang.String span)
String
: <colgroup>
getColGroup
in interface HtmlViewRepresentation
getColGroup
in class DefaultHtmlViewRepresentation
width
- The value of the width-attribute of the rendered tag.span
- The value of the span-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getColGroupEnd()
String
: </colgroup>
getColGroupEnd
in interface HtmlViewRepresentation
getColGroupEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getColXHtml(java.lang.String width, java.lang.String span)
String
: <col/>
getColXHtml
in interface HtmlViewRepresentation
getColXHtml
in class DefaultHtmlViewRepresentation
width
- The value of the width-attribute of the rendered tag.span
- The value of the span-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getTBody(java.lang.String style, java.lang.String styleName)
String
: <tbody>
getTBody
in interface HtmlViewRepresentation
getTBody
in class DefaultHtmlViewRepresentation
style
- The value of the style-attribute of the rendered tag.styleName
- The value of the class-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getTBodyEnd()
String
: </tbody>
getTBodyEnd
in interface HtmlViewRepresentation
getTBodyEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getTFoot(java.lang.String style, java.lang.String styleName)
String
: <tfoot>
getTFoot
in interface HtmlViewRepresentation
getTFoot
in class DefaultHtmlViewRepresentation
style
- The value of the style-attribute of the rendered tag.styleName
- The value of the class-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getTFootEnd()
String
: </tfoot>
getTFootEnd
in interface HtmlViewRepresentation
getTFootEnd
in class DefaultHtmlViewRepresentation
String
of HTML-codepublic java.lang.String getTHead(java.lang.String style, java.lang.String styleName)
String
: <thead>
getTHead
in interface HtmlViewRepresentation
getTHead
in class DefaultHtmlViewRepresentation
style
- The value of the style-attribute of the rendered tag.styleName
- The value of the class-attribute of the rendered tag.
String
of HTML-codepublic java.lang.String getTHeadEnd()
String
: </thead>
getTHeadEnd
in interface HtmlViewRepresentation
getTHeadEnd
in class DefaultHtmlViewRepresentation
String
of HTML-code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |