|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.tableview.html.HtmlTableViewUtil
public abstract class HtmlTableViewUtil
The HtmlTableViewUtil class provides several static functions needed by the html tableviews. It provides default implementation for several of the write methods need to render an html TableView. This class is used by the classes com.sas.servlet.tbeans.tableview.html.TableView and com.sas.servlet.tbeans.olaptableview.html.OLAPTableView.
This class implements the methods: writeTableHeader, writeTableFooter, writeEmptyTable, and writeActions.
TableView
,
OLAPTableView
Constructor Summary | |
---|---|
HtmlTableViewUtil()
|
Method Summary | |
---|---|
static void |
setOnModificationEvent(AbstractBaseTableView tableView,
java.lang.Object renderer)
This method is used by the TableView to set the event to be called when the cell is modified. |
static void |
setOnRowSelectionEvent(AbstractBaseTableView tableView,
java.lang.Object renderer)
This method is used by the TableView to set the event to be called when the row is selected. |
static void |
writeActions(AbstractBaseTableView tableview,
ActionList actions,
java.io.PrintWriter out)
Writes the actions in the actions list. |
static void |
writeActions(AbstractBaseTableView tableview,
ActionList actions,
java.io.PrintWriter out,
boolean encodeText)
Writes the actions in the actions list. |
static void |
writeColumnsPercentageWidthForOptimizedTreeTableView(AbstractBaseTableView tableView,
java.io.PrintWriter out)
For an optimized TreeTableView we want the tree column to have full width regardless of the percentage width set on the Table. |
static void |
writeEmptyTable(AbstractBaseTableView tableView,
java.io.PrintWriter out)
Writes an empty table when a model in not attached |
static void |
writeTableFooter(AbstractBaseTableView tableView,
java.io.PrintWriter out)
Writes the footer tag for the tableview. |
static void |
writeTableHeader(AbstractBaseTableView tableView,
java.io.PrintWriter out)
Writes the header tag and all its attributes for tableview. |
Constructor Detail |
---|
public HtmlTableViewUtil()
Method Detail |
---|
public static void writeTableHeader(AbstractBaseTableView tableView, java.io.PrintWriter out) throws java.io.IOException
tableView
- the tableView calling this method writtenout
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic static void writeTableFooter(AbstractBaseTableView tableView, java.io.PrintWriter out) throws java.io.IOException
tableView
- the tableView calling this method writtenout
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic static void writeEmptyTable(AbstractBaseTableView tableView, java.io.PrintWriter out) throws java.io.IOException
tableView
- the tableView calling this method writtenout
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic static void writeColumnsPercentageWidthForOptimizedTreeTableView(AbstractBaseTableView tableView, java.io.PrintWriter out)
tags to specify column widths.
tableView
- the TreeTableView for which a percentage width has been specifiedout
- the output stream to write the HTML code topublic static void writeActions(AbstractBaseTableView tableview, ActionList actions, java.io.PrintWriter out) throws java.io.IOException
actions
- the actions to renderout
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic static void writeActions(AbstractBaseTableView tableview, ActionList actions, java.io.PrintWriter out, boolean encodeText) throws java.io.IOException
actions
- the actions to renderout
- the output streamencodeText
- encode the Label's text
java.io.IOException
- Thrown if some type of I/O error occurspublic static void setOnModificationEvent(AbstractBaseTableView tableView, java.lang.Object renderer) throws java.io.IOException
renderer
- An instance of the CellContentsRenderer or
CellContentsEditor on which to set the onModificationEvent
java.io.IOException
public static void setOnRowSelectionEvent(AbstractBaseTableView tableView, java.lang.Object renderer) throws java.io.IOException
renderer
- An instance of the CellContentsRenderer or
CellContentsEditor on which to set the onModificationEvent
java.io.IOException
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |