|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.model.HeaderCell
public class HeaderCell
DataObject representing the column header. The header cell contains all the properties common to cells in the same column.
| Constructor Summary | |
|---|---|
HeaderCell()
|
|
| Method Summary | |
|---|---|
void |
addCell(Column column)
Add a new cell to this column. |
void |
addHeaderClass(java.lang.String cssClass)
Adds a css class to the html "class" attribute. |
java.lang.String |
getBeanPropertyName()
Getter for the name of the property to look up in the bean. |
java.lang.String |
getCloseTag()
return the closing tag for a cell (td). |
DisplaytagColumnDecorator[] |
getColumnDecorators()
Returns the columnDecorator object for this column. |
int |
getColumnNumber()
Getter for the column number. |
java.util.Comparator |
getComparator()
Get the comparator for sorting this column. |
SortOrderEnum |
getDefaultSortOrder()
Sets the default sort order for this column |
int |
getGroup()
getter for the grouping index. |
HtmlAttributeMap |
getHeaderAttributes()
returns the HtmlAttributeMap containg all the html attributes for the th tag. |
java.lang.String |
getHeaderCloseTag()
return the closing tag for a column header (th). |
java.lang.String |
getHeaderOpenTag()
return the open tag for a column header (th). |
Href |
getHref()
Getter for the href to be used for dinamic links in cells. |
HtmlAttributeMap |
getHtmlAttributes()
Returns the HtmlAttributeMap containg all the html attributes for the td tags. |
int |
getMaxLength()
getter for the max number of characters to display in the column. |
int |
getMaxWords()
getter for the max number of words to display in the column. |
java.lang.String |
getParamName()
Getter for the name of the param to add to links. |
java.lang.String |
getParamProperty()
Getter for the name of the property to look up in bean to get the param value for links. |
boolean |
getShowNulls()
Should null be displayed? |
boolean |
getSortable()
Is the column sortable? |
java.lang.String |
getSortName()
Get name given to server for sorting this column |
java.lang.String |
getSortProperty()
Getter for the name of the property in the bean which will be used for sorting. |
java.lang.String |
getTitle()
Gets the column title. |
double |
getTotal()
Get the current total. |
boolean |
isAlreadySorted()
Is the column already sorted? |
boolean |
isTotaled()
Will we be keeping a total for this column? |
void |
setAlreadySorted()
Setter for the sorted property (the column is actually sorted). |
void |
setBeanPropertyName(java.lang.String propertyName)
Setter for the name of the property to look up in the bean. |
void |
setColumnDecorators(DisplaytagColumnDecorator[] decorator)
Sets the columnDecorator object for this column. |
void |
setColumnNumber(int number)
Setter for the column number. |
void |
setComparator(java.util.Comparator columnComparator)
Set the column comparator. |
void |
setDefaultSortOrder(SortOrderEnum order)
Gets the default sort order for this column |
void |
setGroup(int groupingOrder)
setter for the grouping index. |
void |
setHeaderAttributes(HtmlAttributeMap attributes)
Sets the HtmlAttributeMap containg all the html attributes for the th tag. |
void |
setHref(Href baseHref)
Setter for the href to be used for dinamic links in cells. |
void |
setHtmlAttributes(HtmlAttributeMap attributes)
Sets the HtmlAttributeMap containg all the html attributes for the td tags. |
void |
setMaxLength(int numOfChars)
setter for the max number of characters to display in the column. |
void |
setMaxWords(int numOfWords)
setter for the max number of words to display in the column. |
void |
setParamName(java.lang.String name)
Setter for the name of the param to add to links. |
void |
setParamProperty(java.lang.String property)
Setter for the name of the property to look up in bean to get the param value for links. |
void |
setShowNulls(boolean outputNulls)
Enable or disable displaying of null values. |
void |
setSortable(boolean isSortable)
is the column sortable? |
void |
setSortName(java.lang.String sortName)
Set name given to server for sorting this column |
void |
setSortProperty(java.lang.String propertyName)
Setter for the name of the property in the bean which will be used for sorting. |
void |
setTitle(java.lang.String value)
Setter for the column title. |
void |
setTotaled(boolean isTotaled)
Setter for totaled. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HeaderCell()
| Method Detail |
|---|
public int getGroup()
public void setGroup(int groupingOrder)
groupingOrder - int grouping order (>0)public int getMaxLength()
public void setMaxLength(int numOfChars)
numOfChars - number of characters to display in the columnpublic int getMaxWords()
public void setMaxWords(int numOfWords)
numOfWords - number of words to display in the columnpublic boolean getShowNulls()
public void setShowNulls(boolean outputNulls)
outputNulls - boolean true if null should be displayedpublic java.lang.String getBeanPropertyName()
public void setBeanPropertyName(java.lang.String propertyName)
propertyName - - name of the property to look up in the beanpublic boolean isAlreadySorted()
public void setAlreadySorted()
public int getColumnNumber()
public void setColumnNumber(int number)
number - - int column numberpublic DisplaytagColumnDecorator[] getColumnDecorators()
public void setColumnDecorators(DisplaytagColumnDecorator[] decorator)
decorator - - the DisplaytagColumnDecoratorpublic boolean getSortable()
public void setSortable(boolean isSortable)
isSortable - - true if the column can be sortedpublic java.lang.String getSortName()
public void setSortName(java.lang.String sortName)
sortName - name given to server for sorting this columnpublic java.lang.String getTitle()
public void setTitle(java.lang.String value)
value - - the column titlepublic HtmlAttributeMap getHtmlAttributes()
public void setHtmlAttributes(HtmlAttributeMap attributes)
attributes - HtmlAttributeMappublic HtmlAttributeMap getHeaderAttributes()
public void setHeaderAttributes(HtmlAttributeMap attributes)
attributes - HtmlAttributeMappublic void addHeaderClass(java.lang.String cssClass)
cssClass - Stringpublic java.lang.String getHeaderOpenTag()
public java.lang.String getCloseTag()
public java.lang.String getHeaderCloseTag()
public void setHref(Href baseHref)
baseHref - base href for linkspublic Href getHref()
public void setParamName(java.lang.String name)
name - name of the parampublic java.lang.String getParamName()
public void setParamProperty(java.lang.String property)
property - name of the property to look up in bean to get the param value for linkspublic java.lang.String getParamProperty()
public java.lang.String getSortProperty()
public void setSortProperty(java.lang.String propertyName)
propertyName - - name of the property in the bean which will be used for sortingpublic SortOrderEnum getDefaultSortOrder()
public void setDefaultSortOrder(SortOrderEnum order)
order - default orderpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void setComparator(java.util.Comparator columnComparator)
columnComparator - the valuepublic java.util.Comparator getComparator()
public boolean isTotaled()
public void setTotaled(boolean isTotaled)
isTotaled - the valuepublic double getTotal()
public void addCell(Column column)
column - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||