|
||||||||||
| 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 HtmlViewRepresentationhasHeader in class DefaultHtmlViewRepresentationpublic boolean hasBody()
hasBody in interface HtmlViewRepresentationhasBody in class DefaultHtmlViewRepresentationpublic boolean hasFooter()
hasFooter in interface HtmlViewRepresentationhasFooter in class DefaultHtmlViewRepresentationpublic boolean hasSummary()
hasSummary in interface HtmlViewRepresentationhasSummary in class DefaultHtmlViewRepresentationpublic boolean hasCaption()
hasCaption in interface HtmlViewRepresentationhasCaption 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 HtmlViewRepresentationgetStart in class DefaultHtmlViewRepresentationid - 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 HtmlViewRepresentationgetEnd in class DefaultHtmlViewRepresentationString of HTML-codepublic java.lang.String getHeadStart(java.lang.String styleName)
String: <th>
getHeadStart in interface HtmlViewRepresentationgetHeadStart in class DefaultHtmlViewRepresentationstyleName - The value of the class-attribute of the rendered tag.
String of HTML-codepublic java.lang.String getHeadEnd()
String: </th>
getHeadEnd in interface HtmlViewRepresentationgetHeadEnd in class DefaultHtmlViewRepresentationString of HTML-codepublic java.lang.String getRowStart()
String: <tr>
getRowStart in interface HtmlViewRepresentationgetRowStart in class DefaultHtmlViewRepresentationString of HTML-codepublic java.lang.String getRowEnd()
String: </tr>
getRowEnd in interface HtmlViewRepresentationgetRowEnd in class DefaultHtmlViewRepresentationString of HTML-codepublic java.lang.String getCellStart(java.lang.String styleName)
String: <td>
getCellStart in interface HtmlViewRepresentationgetCellStart in class DefaultHtmlViewRepresentationstyleName - The value of the class-attribute of the rendered tag.
String of HTML-codepublic java.lang.String getCellEnd()
String: </td>
getCellEnd in interface HtmlViewRepresentationgetCellEnd in class DefaultHtmlViewRepresentationString of HTML-code
public java.lang.String getCaption(java.lang.String style,
java.lang.String styleName)
String: <caption>
getCaption in interface HtmlViewRepresentationgetCaption in class DefaultHtmlViewRepresentationstyle - 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 HtmlViewRepresentationgetCaptioneEnd in class DefaultHtmlViewRepresentationString of HTML-code
public java.lang.String getCol(java.lang.String width,
java.lang.String span)
String: <col>
getCol in interface HtmlViewRepresentationgetCol in class DefaultHtmlViewRepresentationwidth - 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 HtmlViewRepresentationgetColEnd in class DefaultHtmlViewRepresentationString of HTML-code
public java.lang.String getColGroup(java.lang.String width,
java.lang.String span)
String: <colgroup>
getColGroup in interface HtmlViewRepresentationgetColGroup in class DefaultHtmlViewRepresentationwidth - 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 HtmlViewRepresentationgetColGroupEnd in class DefaultHtmlViewRepresentationString of HTML-code
public java.lang.String getColXHtml(java.lang.String width,
java.lang.String span)
String: <col/>
getColXHtml in interface HtmlViewRepresentationgetColXHtml in class DefaultHtmlViewRepresentationwidth - The value of the width-attribute of the rendered tag.span - The value of the span-attribute of the rendered tag.
String of HTML-code
public java.lang.String getTBody(java.lang.String style,
java.lang.String styleName)
String: <tbody>
getTBody in interface HtmlViewRepresentationgetTBody in class DefaultHtmlViewRepresentationstyle - 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 HtmlViewRepresentationgetTBodyEnd in class DefaultHtmlViewRepresentationString of HTML-code
public java.lang.String getTFoot(java.lang.String style,
java.lang.String styleName)
String: <tfoot>
getTFoot in interface HtmlViewRepresentationgetTFoot in class DefaultHtmlViewRepresentationstyle - 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 HtmlViewRepresentationgetTFootEnd in class DefaultHtmlViewRepresentationString of HTML-code
public java.lang.String getTHead(java.lang.String style,
java.lang.String styleName)
String: <thead>
getTHead in interface HtmlViewRepresentationgetTHead in class DefaultHtmlViewRepresentationstyle - 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 HtmlViewRepresentationgetTHeadEnd in class DefaultHtmlViewRepresentationString of HTML-code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||