|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractStyleBean
public abstract class AbstractStyleBean
An abstract JavaBean that contains basic style information about an HTML table.
This bean supports table and row level style class attributes. This JavaBean
can be extended to add additional style information.
Two basic methods are provided for rendering table and row styles into a
StringBuilder
.
Constructor Summary | |
---|---|
AbstractStyleBean()
|
Method Summary | |
---|---|
String |
getRowClass()
Get the table row style class. |
String |
getTableClass()
Get the table style class. |
String |
renderRowStyle()
A method that will render the style class into the StringBuilder . |
protected String |
renderStyle(String style)
Render the style class into the StringBuilder . |
String |
renderTableStyle()
A method that will render the style class into the StringBuilder . |
void |
setRowClass(String rowClass)
Set the table row style class. |
void |
setTableClass(String tableClass)
Set the table style class. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractStyleBean()
Method Detail |
---|
public void setTableClass(String tableClass)
tableClass
- the table style classpublic String getTableClass()
null
if none is setpublic void setRowClass(String rowClass)
rowClass
- the table row style classpublic String getRowClass()
null
if none is setpublic String renderTableStyle()
StringBuilder
.
public String renderRowStyle()
StringBuilder
.
protected String renderStyle(String style)
StringBuilder
. If the
style class style
is not null, it is appended into the
StringBuilder with the HTML tag attribute "class". A space is inserted
at the front of the attribute but not at the end, so a style
value of "foo" will render as:
' class="foo"'
style
- the value of the style class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |