|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.tableview.html.BaseTableCell
@SASScope(value="ALL") public abstract class BaseTableCell
Abstract class for rendering a cell for a 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 | |
|---|---|
BaseTableCell()
Constructs a new BaseTableCell |
|
| Method Summary | |
|---|---|
java.lang.String |
getBgColor()
Gets the background color of the cell. |
int |
getColSpan()
Gets the number of columns for the cell to span. |
java.lang.String |
getCustomAttributes()
Gets the custom attributes |
java.lang.String |
getHeaders()
Gets the headers String. |
int |
getHeight()
Gets the height of the cell in pixels. |
int |
getHeightPercentage()
Gets the height of the cell as a percentage. |
int |
getHorizontalAlignment()
Gets the horizontal alignment of the cell. |
java.lang.String |
getId()
Gets the id String. |
java.util.Locale |
getLocale()
Gets the locale. |
int |
getRowSpan()
Gets the number of rows for the cell to span. |
int |
getScope()
Gets the scope attribute for the cell. |
StyleInfo |
getStyleInfo()
Gets the StyleInfo for this class. |
int |
getVerticalAlignment()
Gets the vertical alignment of the cell. |
int |
getWidth()
Gets the width of the cell in pixels. |
int |
getWidthPercentage()
Gets the width of the cell as a percentage. |
boolean |
isHeader()
Returns true if the cell is a header cell. |
boolean |
isNoWrap()
Returns true is automatic text wrapping for the cell is disabled. |
void |
setBgColor(java.lang.String color)
Sets the background color of the cell. |
void |
setColSpan(int span)
Sets the number of columns for the cell to span. |
void |
setCustomAttributes(java.lang.String value)
Sets any custom attributes. |
void |
setHeader(boolean headerCell)
Sets whether the cell is a header cell. |
void |
setHeaders(java.lang.String headers)
Sets the headers String. |
void |
setHeight(int pixels)
Sets the height of the cell in pixels. |
void |
setHeightPercentage(int percentage)
Sets the height of the cell as a percentage. |
void |
setHorizontalAlignment(int alignment)
Sets the horizontal alignment of the cell. |
void |
setId(java.lang.String id)
Sets the id String. |
void |
setLocale(java.util.Locale loc)
Sets the locale. |
void |
setNoWrap(boolean nowrap)
Determines if automatic text wrapping for the cell is disabled. |
void |
setRowSpan(int span)
Sets the number of rows for the cell to span. |
void |
setScope(int newScope)
Sets the scope attribute for the cell. |
void |
setStyleInfo(StyleInfo styleInfo)
Sets the StyleInfo for this class. |
void |
setVerticalAlignment(int alignment)
Sets the vertical alignment of the cell. |
void |
setWidth(int pixels)
Sets the width of the cell in pixels. |
void |
setWidthPercentage(int percentage)
Sets the width of the cell as a percentage. |
abstract void |
write(java.io.PrintWriter out,
AbstractBaseTableView tableview,
java.lang.Object value,
java.lang.String name,
ActionList actions)
Write the entire table cell in the appropriate markup language. |
void |
writeBeginCell(java.io.PrintWriter out)
Writes the begin tag for the table cell in the appropriate markup language. |
void |
writeEndCell(java.io.PrintWriter out)
Writes the end tag for the table cell in the appropriate markup language. |
| Constructor Detail |
|---|
public BaseTableCell()
| Method Detail |
|---|
public void setId(java.lang.String id)
id - the id for the cellpublic java.lang.String getId()
public void setHeaders(java.lang.String headers)
headers - the headers for the cellpublic java.lang.String getHeaders()
public void setHorizontalAlignment(int alignment)
alignment - set the horizontal alignment of the cell
java.lang.IllegalArgumentException - if alignment is invalidpublic int getHorizontalAlignment()
public void setVerticalAlignment(int alignment)
alignment - set the vertical alignment of the cell
java.lang.IllegalArgumentException - if alignment is invalidpublic int getVerticalAlignment()
public void setColSpan(int span)
span - the number of columns for the cell to spanpublic int getColSpan()
public void setRowSpan(int span)
span - the number of rows for the cell to spanpublic int getRowSpan()
public void setWidth(int pixels)
pixels - the number of pixels wide to set the cellpublic int getWidth()
public void setWidthPercentage(int percentage)
percentage - the percentage to set the cell's widthpublic int getWidthPercentage()
public void setHeight(int pixels)
pixels - the number of pixels tall to set the cellpublic int getHeight()
public void setHeightPercentage(int percentage)
percentage - the percentage to set the cell's heightpublic int getHeightPercentage()
public void setNoWrap(boolean nowrap)
nowrap - determines if automatic text wrapping for the cell is disabledpublic boolean isNoWrap()
public void setScope(int newScope)
scope - the scope attribute for the cell
java.lang.IllegalArgumentException - if scope is invalidpublic int getScope()
public void setBgColor(java.lang.String color)
color - the background color of the cellpublic java.lang.String getBgColor()
public void setCustomAttributes(java.lang.String value)
value - The custom attributepublic java.lang.String getCustomAttributes()
public StyleInfo getStyleInfo()
getStyleInfo in interface StyleInterfacepublic void setStyleInfo(StyleInfo styleInfo)
setStyleInfo in interface StyleInterfacestyleInfo - the StyleInfo to be usedpublic boolean isHeader()
isHeader in interface TableCellpublic void setHeader(boolean headerCell)
setHeader in interface TableCellheaderCell - true if the cell is a header cell
public abstract void write(java.io.PrintWriter out,
AbstractBaseTableView tableview,
java.lang.Object value,
java.lang.String name,
ActionList actions)
throws java.io.IOException
write in interface TableCellout - the output streamtableview - the instance of the tableview being written.value - the value to display as the cell's contentsname - the name to use for the contents componentactions - an actionlist of all the valid actions for this cell
java.io.IOException - Thrown if some type of I/O error occurs
public void writeBeginCell(java.io.PrintWriter out)
throws java.io.IOException
writeBeginCell in interface TableCellout - the output stream
java.io.IOException - Thrown if some type of I/O error occurs
public void writeEndCell(java.io.PrintWriter out)
throws java.io.IOException
writeEndCell in interface TableCellout - the output stream
java.io.IOException - Thrown if some type of I/O error occurspublic void setLocale(java.util.Locale loc)
loc - an instance of java.util.Localepublic java.util.Locale getLocale()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||