BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.databinding.base.style
Class AbstractStyleContext

java.lang.Object
  extended by com.bea.wlw.netui.tags.databinding.base.style.AbstractStyleContext
Direct Known Subclasses:
GridStyleContext, StyleContext

public abstract class AbstractStyleContext
extends Object

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

AbstractStyleContext

public AbstractStyleContext()
Method Detail

setTableClass

public void setTableClass(String tableClass)
Set the table style class.

Parameters:
tableClass - the table style class

getTableClass

public String getTableClass()
Get the table style class.

Returns:
the row style class or null if none is set

setRowClass

public void setRowClass(String rowClass)
Set the table row style class.

Parameters:
rowClass - the table row style class

getRowClass

public String getRowClass()
Get the table row style class.

Returns:
the row style class or null if none is set

renderTableStyle

public String renderTableStyle()
A method that will render the style class into the UnsyncStringBuffer.


renderRowStyle

public String renderRowStyle()
A method that will render the style class into the UnsyncStringBuffer.


renderStyle

protected String renderStyle(String style)
Render the style class into the 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"'
 

Parameters:
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.