|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.web.html.View<T>
public class View<T extends SpItem>
Renders a View by a dataset.
Field Summary | |
---|---|
protected AbstractTableModel |
atm
|
protected java.lang.String |
caption
|
protected java.util.List<AbstractExtraColumn<T>> |
extraCols
|
protected java.lang.String |
id
|
private boolean |
insideDoubleView
|
protected PositionOfExtraColumnsType |
positionOfExtraColumns
|
private boolean |
searchField
|
protected java.lang.String |
searchString
|
protected java.lang.StringBuffer |
style
|
protected java.lang.String |
styleName
|
protected java.lang.String |
summary
|
protected HtmlViewRepresentation |
viewRepresentation
|
Constructor Summary | |
---|---|
View(AbstractTableModel atm,
HtmlViewRepresentation viewRepresentation)
Renders a View by a dataset. |
Method Summary | |
---|---|
protected java.lang.StringBuffer |
getElement(int row)
Renders the HTML-code of the element in the ATM. |
protected java.util.List<java.lang.String> |
getElements()
Renders elements and ECs and take the HTML-code to a List. |
java.lang.StringBuffer |
render()
Renders the HTML-code of the View. |
protected java.lang.StringBuffer |
renderBody()
Renders the HTML-code of the body in the ATM. |
protected java.lang.StringBuffer |
renderCaptionAhead()
Renders the caption of the View. |
protected java.lang.StringBuffer |
renderExtraColumn(int row)
Renders the HTML-code of the EC-element in the ATM. |
protected java.lang.StringBuffer |
renderFooter()
Renders the HTML-code of the footer in the ATM. |
protected java.lang.StringBuffer |
renderHeader()
Renders the HTML-code of the header in the ATM. |
private java.lang.StringBuffer |
renderSearchField()
|
void |
setCaption(java.lang.String caption)
A caption of a View. |
void |
setExtraCols(java.util.List<AbstractExtraColumn<T>> extraCols)
Set a List of extra-columns into the View. |
void |
setId(java.lang.String id)
The value of the id-attribute of the View. |
void |
setInsideDoubleView(boolean insideDoubleView)
Default is 'false'. |
void |
setPositionOfExtraColumns(PositionOfExtraColumnsType positionOfExtraColumns)
Set the position of insert ECs. |
void |
setSearchField(boolean searchField)
Renders a search-field on top of the View. |
void |
setSearchString(java.lang.String searchString)
Preset of searchField. |
void |
setStyle(java.lang.String style)
The value of the style of the View. |
void |
setStyleName(java.lang.String styleName)
The value of the class-attribute of the View. |
void |
setSummary(java.lang.String summary)
A summary is only using by a table. |
java.lang.String |
toString()
Return a String like "View[id: x |styleName: y |viewRep: z ](Object.toString)" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String caption
protected java.lang.String summary
protected java.util.List<AbstractExtraColumn<T extends SpItem>> extraCols
protected java.lang.StringBuffer style
protected PositionOfExtraColumnsType positionOfExtraColumns
protected HtmlViewRepresentation viewRepresentation
protected AbstractTableModel atm
protected java.lang.String id
protected java.lang.String styleName
private boolean searchField
protected java.lang.String searchString
private boolean insideDoubleView
Constructor Detail |
---|
public View(AbstractTableModel atm, HtmlViewRepresentation viewRepresentation)
{@link
- AbstractTableModel} atm{@link
- HtmlViewRepresentation} viewRepresentationMethod Detail |
---|
public void setCaption(java.lang.String caption)
caption
- public void setSummary(java.lang.String summary)
summary
- public void setSearchField(boolean searchField)
searchField
- public void setExtraCols(java.util.List<AbstractExtraColumn<T>> extraCols)
extraCols
- public void setId(java.lang.String id)
id
- public void setStyleName(java.lang.String styleName)
styleName
- public void setStyle(java.lang.String style)
style
- public void setSearchString(java.lang.String searchString)
searchString
- public void setPositionOfExtraColumns(PositionOfExtraColumnsType positionOfExtraColumns)
positionOfExtraColumns
- PositionOfExtraColumnsType
public void setInsideDoubleView(boolean insideDoubleView)
insideDoubleView
- private java.lang.StringBuffer renderSearchField()
protected java.lang.StringBuffer renderCaptionAhead()
StringBuffer
HTML-code of a Captionprotected java.lang.StringBuffer getElement(int row)
row
- the row of the ATM
StringBuffer
HTML-code of an elementprotected java.util.List<java.lang.String> getElements()
List
<String
> of all objects (in a List) or lines (in a Table)protected java.lang.StringBuffer renderExtraColumn(int row)
row
- the row of the ATM
StringBuffer
HTML-code of an EC-elementprotected java.lang.StringBuffer renderHeader()
StringBuffer
HTML-code of the headerprotected java.lang.StringBuffer renderBody()
StringBuffer
HTML-code of the bodyprotected java.lang.StringBuffer renderFooter()
StringBuffer
HTML-code of the footerpublic java.lang.StringBuffer render()
StringBuffer
HTML-code of the Viewpublic java.lang.String toString()
String
like "View[id: x |styleName: y |viewRep: z ](Object.toString)"
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |