|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.table.DefaultLiveTableRenderer
public class DefaultLiveTableRenderer
DefaultLiveTableRenderer is a default implementation for
rendering the rows in LiveTable.
This class uses the folllowing styles names when rendering the styles for the LiveTable data. The names are intentionally kept short to minmise the traffic between the server and client.
A tr.sNNNN CSS rule and a tr.seNNNN CSS rule is generated for rows of
table data and the empty row of table data.
A td.sNNNN CSS rule and a td.seNNNN CSS rule is generated for each cell within
a row of data.
A td.srNNNN CSS rule is generated to perform rollovers.
A td.ssNNNN CSS rule is generated to perform selection.
LiveTableRenderer| Field Summary | |
|---|---|
protected static java.lang.String |
NBSP
This contains the entityt numeric value for |
| Constructor Summary | |
|---|---|
DefaultLiveTableRenderer()
|
|
| Method Summary | |
|---|---|
void |
renderEmptyRow(LiveTable liveTable,
org.w3c.dom.Node parentNode)
This method is called to get the XHTML for an empty row with the LiveTable. |
java.lang.String |
renderRolloverStyle(LiveTable liveTable,
org.w3c.dom.Node parentNode,
RenderContext rc)
This method will be called if rollover's are enabled on the LiveTable. |
protected void |
renderRowCell(LiveTable liveTable,
org.w3c.dom.Element parentTD,
int column,
int row)
This method is called to render a cell within a given row. |
void |
renderRows(LiveTable liveTable,
org.w3c.dom.Node parentNode,
int rowStart,
int rowEnd)
This method is called to render the XHTML for the data starting from rowStart and ending at rowEnd. |
java.lang.String |
renderSelectionStyle(LiveTable liveTable,
org.w3c.dom.Node parentNode,
RenderContext rc)
This method will be called if selection is enabled on the LiveTable. |
void |
renderStyles(LiveTable liveTable,
org.w3c.dom.Node parentNode)
This method is called to render a series of XTHML Style Elements (eg. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String NBSP
| Constructor Detail |
|---|
public DefaultLiveTableRenderer()
| Method Detail |
|---|
public void renderEmptyRow(LiveTable liveTable,
org.w3c.dom.Node parentNode)
LiveTableRendererThis XHTML is a TR tag representing an empty row.
Each row must be the same height as all the other rows otherwise the LiveTable scrolling algorithm wont work.
You should use the styleNames returned in the getStyles() method on rows cells to ensure the least amount of data is sent down the client and hence UI feedback is faster.
renderEmptyRow in interface LiveTableRendererliveTable - -
the LiveTable in questionparentNode - -
the parentNode to place the XHTML inLiveTableRenderer.renderEmptyRow(echopointng.LiveTable,
org.w3c.dom.Node)
public void renderRows(LiveTable liveTable,
org.w3c.dom.Node parentNode,
int rowStart,
int rowEnd)
LiveTableRendererThis XHTML is a series of TR tags for the given data.
Each row must be the same height as all the other rows otherwise the LiveTable scrolling algorithm wont work.
You should use the styleNames returned in the getStyles() method on rows cells to ensure the least amount of data is sent down the client and hence UI feedback is faster.
renderRows in interface LiveTableRendererliveTable - -
the LiveTable in questionparentNode - -
the parentNode to place the XHTML inrowStart - -
the starting row of datarowEnd - -
the ending row of data
protected void renderRowCell(LiveTable liveTable,
org.w3c.dom.Element parentTD,
int column,
int row)
One thing you could possibly do is put <a> tags into the output, which would allow the user to click on some given row data. You can use a construct like this to raise action events back on the LiveTable.
<a href="javascript:EPLiveTable.href('c_1234','actionValue')">Click Me To Raise An ActionEvent</a>
liveTable - -
the LiveTable in questionparentTD - -
the parent TD element to place the XHTML incolumn - -
the current columnrow - -
the current row
public void renderStyles(LiveTable liveTable,
org.w3c.dom.Node parentNode)
LiveTableRendererThe style names should perhaps use the renderId() of the LiveTable to ensure that they are unique.
renderStyles in interface LiveTableRendererliveTable - -
the LiveTable in questionparentNode - -
the parentNode to place the XHTML inLiveTableRenderer.renderStyles(echopointng.LiveTable,
org.w3c.dom.Node)
public java.lang.String renderRolloverStyle(LiveTable liveTable,
org.w3c.dom.Node parentNode,
RenderContext rc)
LiveTableRendererTh implementor should render a rollover style for a cell inside row data (eg a TD) and then return the style className that will be applied to the cell when the mouse moves over the cells in a row of data.
The rollover style properties should be based on the LiveTable rollover related properties.
renderRolloverStyle in interface LiveTableRendererliveTable - -
the LiveTable in questionparentNode - -
the parentNode to place the XHTML inrc - -
the RenderContext in place at the time this call is made
LiveTableRenderer.renderRolloverStyle(LiveTable, Node, RenderContext)
public java.lang.String renderSelectionStyle(LiveTable liveTable,
org.w3c.dom.Node parentNode,
RenderContext rc)
LiveTableRendererTh implementor should render a selection style for a cell inside row data (eg a TD) and then return the style className that will be applied to the cell when the selection is made on a row of data. .
The selection style properties should be based on the LiveTable selection related properties.
renderSelectionStyle in interface LiveTableRendererliveTable - -
the LiveTable in questionparentNode - -
the parentNode to place the XHTML inrc - -
the RenderContext in place at the time this call is made
LiveTableRenderer.renderSelectionStyle(LiveTable, Node, RenderContext)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||