|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wlw.netui.tags.databinding.base.style.AbstractStyleContext
public abstract class AbstractStyleContext
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
UnsyncStringBuffer
.
Constructor Summary | |
---|---|
AbstractStyleContext()
|
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 UnsyncStringBuffer . |
protected String |
renderStyle(String style)
Render the style class into the UnsyncStringBuffer . |
String |
renderTableStyle()
A method that will render the style class into the UnsyncStringBuffer . |
void |
setRowClass(String rowClass)
Set the table row style class. |
void |
setTableClass(String tableClass)
Set the table style class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractStyleContext()
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()
UnsyncStringBuffer
.
public String renderRowStyle()
UnsyncStringBuffer
.
protected String renderStyle(String style)
UnsyncStringBuffer
. If the
style class style
is not null, it is appended into the
UnsyncStringBuffer 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
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |