com.sas.servlet.tbeans.tableview.html
Class BaseTableRow

com.sas.servlet.tbeans.tableview.html.BaseTableRow
All Implemented Interfaces:
HttpConstants, StyleInterface, TableRowRenderer, javax.swing.SwingConstants
Direct Known Subclasses:
DefaultTableRowRenderer

public abstract class BaseTableRow
implements TableRowRenderer, HttpConstants, StyleInterface

Base abstract class for rendering the begin and end row tags for an TableView.


Field Summary
 
Fields inherited from interface com.sas.servlet.tbeans.HttpConstants
ALL, BASELINE, CHAR, COL, COLGROUP, JUSTIFY, MULTIPLE, NONE, ROW, ROWGROUP, SINGLE
 
Constructor Summary
BaseTableRow()
          Constructs a new DefaultTableRowRenderer
 
Method Summary
 java.lang.String getBgColor()
          Gets the background color of the row.
 java.lang.String getCustomAttributes()
          Gets the custom attributes
 int getHorizontalAlignment()
          Gets the horizontal alignment of the row's cells.
 java.util.Locale getLocale()
          Gets the locale.
 StyleInfo getStyleInfo()
          Gets the StyleInfo for this class.
 int getVerticalAlignment()
          Gets the vertical alignment of the row's cells.
 boolean isColumnHeaderRow()
          Return true if the row is the columnHeader row.
 void setBgColor(java.lang.String color)
          Sets the background color of the row.
 void setColumnHeaderRow(boolean headerRow)
          Determines if the row is the columnHeader row.
 void setCustomAttributes(java.lang.String value)
          Sets any custom attributes.
 void setHorizontalAlignment(int alignment)
          Sets the horizontal alignment of the row's cells.
 void setLocale(java.util.Locale loc)
          Sets the locale.
 void setStyleInfo(StyleInfo styleInfo)
          Sets the StyleInfo for this class.
 void setVerticalAlignment(int alignment)
          Sets the vertical alignment of the row's cells.
 
Methods inherited from interface com.sas.servlet.tbeans.tableview.TableRowRenderer
writeBeginRow, writeEndRow
 

Constructor Detail

BaseTableRow

public BaseTableRow()
Constructs a new DefaultTableRowRenderer

Method Detail

setHorizontalAlignment

public void setHorizontalAlignment(int alignment)
Sets the horizontal alignment of the row's cells. Valid values are: LEFT, CENTER, RIGHT, JUSTIFY, CHAR or NONE. The default is NONE (i.e. the browser defaults).

Parameters:
alignment - set the horizontal alignment of the row's cells

getHorizontalAlignment

public int getHorizontalAlignment()
Gets the horizontal alignment of the row's cells. Valid values are: LEFT, CENTER, RIGHT, JUSTIFY, CHAR or NONE. The default is NONE (i.e. the browser defaults).

Returns:
the horizontal alignment of the row's cells

setVerticalAlignment

public void setVerticalAlignment(int alignment)
Sets the vertical alignment of the row's cells. Valid values are: TOP, CENTER, BOTTOM, BASELINE or NONE. The default is NONE (i.e. the browser defaults).

Parameters:
alignment - set the vertical alignment of the row's cells

getVerticalAlignment

public int getVerticalAlignment()
Gets the vertical alignment of the row's cells. Valid values are: TOP, MIDDLE, BOTTOM, BASELINE or NONE. The default is NONE (i.e. the browser defaults).

Returns:
the vertical alignment of the row's cells

setBgColor

public void setBgColor(java.lang.String color)
Sets the background color of the row. This can be a valid html color name such as "blue" or "red". It can also be a valid html rbg value such as "#000000". The bgcolor value is null by default.

Parameters:
color - the background color of the row

getBgColor

public java.lang.String getBgColor()
Gets the background color of the row. The bgcolor value is null by default.

Returns:
the background color of the row

setCustomAttributes

public void setCustomAttributes(java.lang.String value)
Sets any custom attributes. Custom attributes can be passed if the interface does not define properties that create the desired attributes. For example, if a new attribute NEWSTUFF is added in later versions of an HTML specification that attribute can be specified here as NEWSTUFF="value". Any number of attributes can be specified in the string.

Parameters:
value - The custom attribute

getCustomAttributes

public java.lang.String getCustomAttributes()
Gets the custom attributes

Returns:
The custom attributes

getStyleInfo

public StyleInfo getStyleInfo()
Gets the StyleInfo for this class.

Specified by:
getStyleInfo in interface StyleInterface
Returns:
The StyleInfo to be used or null if not set

setStyleInfo

public void setStyleInfo(StyleInfo styleInfo)
Sets the StyleInfo for this class.

Specified by:
setStyleInfo in interface StyleInterface
Parameters:
styleInfo - the StyleInfo to be used

setColumnHeaderRow

public void setColumnHeaderRow(boolean headerRow)
Determines if the row is the columnHeader row.

Parameters:
headerRow - true if the row is the columnHeader row

isColumnHeaderRow

public boolean isColumnHeaderRow()
Return true if the row is the columnHeader row.

Returns:
true if the row is the columnHeader row

setLocale

public void setLocale(java.util.Locale loc)
Sets the locale.

Specified by:
setLocale in interface TableRowRenderer
Parameters:
loc - an instance of java.util.Locale

getLocale

public java.util.Locale getLocale()
Gets the locale.

Specified by:
getLocale in interface TableRowRenderer
Returns:
an instance of java.util.Locale



Copyright © 2009 SAS Institute Inc. All Rights Reserved.