|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStyleModel
public abstract class StyleModel
JavaBean base class that creates HTML style class names used to render various HTML elements in the data grid.
Constructor Summary | |
---|---|
StyleModel()
Default constructor. |
|
StyleModel(String stylePrefix)
Constructor that takes a style prefix string. |
Method Summary | |
---|---|
protected String |
buildStyleClass(String baseStyle)
Given a base style class name, this method adds a style prefix to produce a complete style class. |
String |
buildStyleClassValue(List styleClasses)
Build the value of the HTML style class attribute from the List of style classes. |
abstract String |
getAltRowClass()
Get the style class for an HTML tr tag rendered in a grid row. |
abstract String |
getCaptionClass()
Get the style class for an HTML caption tag. |
abstract String |
getDataCellClass()
Get the style class for an HTML td tag rendered for a grid cell. |
abstract String |
getDataCellFilteredClass()
Get the style class for an HTML td tag for a grid cell that is filtered. |
abstract String |
getDataCellSortedClass()
Get the style class for an HTML td tag for a grid cell that is sorted. |
abstract String |
getFooterRowClass()
Get the style class for an HTML tr tag rendered in the grid's footer. |
abstract String |
getHeaderCellClass()
Get the style class for an HTML th tag rendered for a grid's header cell. |
abstract String |
getHeaderCellFilteredClass()
Get the style class for an HTML th tag for a grid's header cell that is filtered. |
abstract String |
getHeaderCellSortableClass()
Get the style class for an HTML th tag for a grid's header cell that is sortable. |
abstract String |
getHeaderCellSortedClass()
Get the style class for an HTML th tag for a grid's header cell whose data is sorted. |
abstract String |
getHeaderRowClass()
Get the style class for an HTML tr tag rendered in the grid's header. |
abstract String |
getRowClass()
Get the style class for an HTML tr tag rendered in a grid row. |
String |
getStylePrefix()
Get the style prefix |
abstract String |
getTableClass()
Get the style class for an HTML table tag. |
abstract String |
getTableFootClass()
Get the style class for an HTML tfoot tag. |
abstract String |
getTableHeadClass()
Get the style class for an HTML thead tag. |
void |
setStylePrefix(String stylePrefix)
Set the style prefix. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyleModel()
public StyleModel(String stylePrefix)
stylePrefix
- the prefix to use for stylesMethod Detail |
---|
public void setStylePrefix(String stylePrefix)
stylePrefix
- the style prefixpublic String getStylePrefix()
public abstract String getTableClass()
public abstract String getCaptionClass()
public abstract String getTableHeadClass()
public abstract String getTableFootClass()
public abstract String getHeaderRowClass()
public abstract String getFooterRowClass()
public abstract String getRowClass()
public abstract String getAltRowClass()
public abstract String getDataCellClass()
public abstract String getHeaderCellClass()
public abstract String getHeaderCellSortedClass()
public abstract String getHeaderCellSortableClass()
public abstract String getHeaderCellFilteredClass()
public abstract String getDataCellSortedClass()
public abstract String getDataCellFilteredClass()
public String buildStyleClassValue(List styleClasses)
List
of style classes. The style classes
are converted into a string in their list order. For example, a list with contents:
foo,bar,bazwill be convereted into a style class whose value is
foo,bar,baz
styleClasses
- the classes to render into a style class value
protected String buildStyleClass(String baseStyle)
baseStyle
- the core style class name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |