public interface TableRenderToolkit
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCalculationCellId(Column column,
TableCalculation calculation,
boolean currentPage)
Returns the id of the HTML table cell that holds the result of the
calculation.
|
java.lang.String |
getCommonResourceURL(TableRenderContext rc,
java.lang.String resource)
Returns a URL to the resource specified by the resource
parameter.
|
java.lang.String |
getIconURLForCell(TableCellRenderContext rc,
CellValue value)
Returns the URL to the configured icon for the specified cell value.
|
java.lang.String |
getInputId(long dataId,
int col,
int value)
Returns the id of the HTML input element for a cell value in edit mode.
|
java.lang.String |
getInputId(TableBean<?> table,
TableData data,
CellValue value)
Returns the id of the HTML input element for a cell value in edit mode.
|
com.technia.tvc.core.gui.common.InputType |
getInputType(CellValue cv)
Returns the input type for the cell value
|
java.lang.String |
getObjectImageURL(TableRenderContext rc,
java.lang.String oid)
Returns the URL to the object image.
|
java.lang.String |
getPopupURLForCell(TableCellRenderContext rc,
CellValue value)
Returns the URL that will show the entire cell value in a popup when the
original value was truncated in the page.
|
java.lang.String |
getResourceURL(TableRenderContext rc,
java.lang.String resource)
Returns a URL to the resource specified by the resource
parameter.
|
java.lang.String |
getStyleForCell(TableCellRenderContext rc)
Returns the style for the specified cell
|
java.lang.String |
getTVCActionURL(TableRenderContext rc,
java.lang.String action)
Returns the URL a the specified TVC action.
|
java.lang.String |
getTypeIconURL(TableRenderContext rc,
java.lang.String type)
Returns the URL to the type icon for the specified type.
|
java.lang.String |
getURLForCell(TableCellRenderContext rc,
CellValue value)
Returns the URL for the specified cell.
|
void |
renderCalculationResultDefault(CalculationResultRenderContext ctx)
Returns a result from a calculation.
|
void |
renderCellDefault(TableCellRenderContext rc)
Render a cell as it would be rendered by the default cell renderer.
|
boolean |
renderCellInEditMode(TableCellRenderContext rc)
Renders the cell in edit mode.
|
void |
renderComboBox(MassUpdateRenderContext rc,
InputFieldStyle styles)
Render a multi-cell editing enabled combo box.
|
void |
renderComboBox(MassUpdateRenderContext rc,
RangeValue[] ranges,
InputFieldStyle styles)
Render a multi-cell editing enabled combo box.
|
void |
renderComboBox(TableCellRenderContext rc,
CellValue val,
InputFieldStyle styles)
Render a in-cell editing enabled combo box.
|
void |
renderComboBox(TableCellRenderContext rc,
CellValue val,
RangeValue[] ranges,
InputFieldStyle styles)
Render a in-cell editing enabled combo box.
|
void |
renderDatePicker(MassUpdateRenderContext rc,
InputFieldStyle styles)
Render a multi-cell editing enabled date picker (e.g., calendar drop
down).
|
void |
renderDatePicker(TableCellRenderContext rc,
CellValue val,
InputFieldStyle styles)
Render a in-cell editing enabled date picker (e.g., calendar drop down).
|
void |
renderFontIcon(TableCellRenderContext rc,
java.lang.String iconClass,
java.lang.String text,
java.lang.String tooltip,
java.lang.String onClick)
Renders a font icon and/or a text.
|
void |
renderGroupPageLegend(TableRenderContext ctx)
Renders the legend related to table grouping above the table.
|
void |
renderGroupRow(TableBodyRowRenderContext ctx) |
void |
renderHeader(TableCellHeaderRenderContext rc,
java.lang.String headerText)
Renders a header in the same way as the default renderer would, except
that this method allows you to specify a custom header text.
|
void |
renderHeader(TableCellHeaderRenderContext rc,
java.lang.String headerText,
HeaderSpec spec)
Renders a header in the same way as the default renderer would, except
that this method allows you to specify a custom header text.
|
void |
renderHeaderDefault(TableCellHeaderRenderContext rc)
Render a header as it would be rendered by the default cell renderer.
|
void |
renderHeaderHTML(TableCellHeaderRenderContext rc,
java.lang.String headerInnerHTML)
Renders a header with custom HTML instead of a label (or image).
|
void |
renderHeaderHTML(TableCellHeaderRenderContext rc,
java.lang.String headerInnerHTML,
HeaderSpec spec)
Renders a header with custom HTML instead of a label (or image).
|
void |
renderHeaderImage(TableCellHeaderRenderContext rc,
java.lang.String headerImageSrc)
Renders a header with an image.
|
void |
renderHeaderImage(TableCellHeaderRenderContext rc,
java.lang.String headerImageSrc,
HeaderSpec spec)
Renders a header with an image.
|
void |
renderIcon(TableCellRenderContext rc,
java.lang.String iconId,
java.lang.String tooltip,
java.lang.String onClick,
java.lang.String cssClass)
Renders an icon specified in the theme.
|
void |
renderMassUpdateFieldDefault(MassUpdateRenderContext rc)
Render a mass update field as it would be rendered by the default cell
renderer.
|
void |
renderPopupCellValueDefault(PopupCellValueRenderContext rc)
Render a cell when the [More] link has been clicked.
|
void |
renderPopupLink(TableCellRenderContext rc,
CellValue cv)
Renders the default popup link for a cell value.
|
void |
renderQueryParameters(AboveTableRendererContext ctx)
Returns the query parameters above the table.
|
void |
renderRowAction(com.technia.tvc.structurebrowser.render.rowactions.RowActionsBodyRenderContext ctx,
com.technia.tvc.structurebrowser.render.rowactions.RowActionSpec spec)
Renders a row action.
|
void |
renderStyleCell(TableCellRenderContext rc) |
void |
renderTableRowGroup(TableBodyRowRenderContext ctx) |
void |
renderTextArea(MassUpdateRenderContext rc,
InputFieldStyle styles)
Render a multi-cell editing enabled text area.
|
void |
renderTextArea(TableCellRenderContext rc,
CellValue val,
InputFieldStyle styles)
Render a in-cell editing enabled text area for the specified cell value.
|
void |
renderTextField(MassUpdateRenderContext rc,
InputFieldStyle styles)
Render a multi-cell editing enabled text field.
|
void |
renderTextField(MassUpdateRenderContext rc,
InputFieldType dataType,
InputFieldStyle styles)
Render a multi-cell editing enabled text field.
|
void |
renderTextField(TableCellRenderContext rc,
CellValue val,
InputFieldStyle styles)
Render a in-cell editing enabled text field for the specified cell value.
|
void |
renderTextField(TableCellRenderContext rc,
CellValue val,
InputFieldType dataType,
InputFieldStyle styles)
Render a in-cell editing enabled text field for the specified cell value.
|
java.lang.String getCalculationCellId(Column column, TableCalculation calculation, boolean currentPage)
column - A column.calculation - A calculation.currentPage - Whether the result is for the current page only. If
false the result is for all rows.java.lang.String getCommonResourceURL(TableRenderContext rc, java.lang.String resource)
rc - The rendering context.resource - The path to the resource (relative from the AEF's common
directory within the web application).java.lang.String getIconURLForCell(TableCellRenderContext rc, CellValue value)
rc - The rendering context.value - The current cell value, which icon URL should be returned.java.lang.String getInputId(long dataId,
int col,
int value)
dataId - The id of the TableData.col - The column index.value - The cell value index.java.lang.String getInputId(TableBean<?> table, TableData data, CellValue value)
table - The table being rendered.data - The row.value - The cell value.java.lang.String getObjectImageURL(TableRenderContext rc, java.lang.String oid)
rc - The rendering context.oid - The OID of the object which image the URL should point to.java.lang.String getPopupURLForCell(TableCellRenderContext rc, CellValue value)
rc - The rendering context.value - The current cell value.java.lang.String getResourceURL(TableRenderContext rc, java.lang.String resource)
rc - The rendering context.resource - The path to the resource (relative from the root of the
web application).java.lang.String getTVCActionURL(TableRenderContext rc, java.lang.String action)
rc - The rendering context.action - The name of a TVC action.java.lang.String getStyleForCell(TableCellRenderContext rc)
java.lang.String getTypeIconURL(TableRenderContext rc, java.lang.String type)
rc - The rendering context.type - The name of a type.java.lang.String getURLForCell(TableCellRenderContext rc, CellValue value)
rc - The rendering context.value - The current cell value, which URL should be returned.void renderCalculationResultDefault(CalculationResultRenderContext ctx)
ctx - The render context.void renderCellDefault(TableCellRenderContext rc)
rc - The current render context.void renderComboBox(MassUpdateRenderContext rc, InputFieldStyle styles)
rc - The rendering context.styles - The visual styles of the combo box.void renderComboBox(MassUpdateRenderContext rc, RangeValue[] ranges, InputFieldStyle styles)
rc - The rendering context.ranges - The accepted range values.styles - The visual styles of the combo box.void renderComboBox(TableCellRenderContext rc, CellValue val, InputFieldStyle styles)
rc - The rendering context.val - The cell value.styles - The visual styles of the combo box.void renderComboBox(TableCellRenderContext rc, CellValue val, RangeValue[] ranges, InputFieldStyle styles)
rc - The rendering context.val - The cell value.ranges - The accepted range values.styles - The visual styles of the combo box.void renderDatePicker(MassUpdateRenderContext rc, InputFieldStyle styles)
rc - The rendering context.styles - The visual styles of the field.void renderDatePicker(TableCellRenderContext rc, CellValue val, InputFieldStyle styles)
rc - The rendering context.val - The cell value.styles - The visual styles of the field.void renderGroupPageLegend(TableRenderContext ctx)
ctx - The table renderer context.void renderHeader(TableCellHeaderRenderContext rc, java.lang.String headerText)
rc - The rendering context.headerText - The custom header text. If null the default column
label will be rendered.void renderHeader(TableCellHeaderRenderContext rc, java.lang.String headerText, HeaderSpec spec)
rc - The rendering context.headerText - The custom header text. If null the default column
label will be rendered.spec - Header properties to override default behavior.void renderHeaderDefault(TableCellHeaderRenderContext rc)
rc - The current render context.void renderHeaderHTML(TableCellHeaderRenderContext rc, java.lang.String headerInnerHTML)
rc - The rendering context.headerInnerHTML - The custom HTML.void renderHeaderHTML(TableCellHeaderRenderContext rc, java.lang.String headerInnerHTML, HeaderSpec spec)
rc - The rendering context.headerInnerHTML - The custom HTML.spec - Header properties to override default behavior.void renderHeaderImage(TableCellHeaderRenderContext rc, java.lang.String headerImageSrc)
rc - The rendering context.headerImageSrc - The image path.void renderHeaderImage(TableCellHeaderRenderContext rc, java.lang.String headerImageSrc, HeaderSpec spec)
rc - The rendering context.headerImageSrc - The image path.spec - Header properties to override default behavior.void renderMassUpdateFieldDefault(MassUpdateRenderContext rc)
rc - The current render context.void renderPopupCellValueDefault(PopupCellValueRenderContext rc)
rc - The current render context.void renderPopupLink(TableCellRenderContext rc, CellValue cv)
rc - The rendering context.cv - The cell value.void renderQueryParameters(AboveTableRendererContext ctx)
ctx - The rendering context.void renderRowAction(com.technia.tvc.structurebrowser.render.rowactions.RowActionsBodyRenderContext ctx,
com.technia.tvc.structurebrowser.render.rowactions.RowActionSpec spec)
ctx - The rendering context.spec - The specification of the row action.void renderTableRowGroup(TableBodyRowRenderContext ctx)
void renderGroupRow(TableBodyRowRenderContext ctx)
void renderTextArea(MassUpdateRenderContext rc, InputFieldStyle styles)
rc - The current render context.styles - The visual styles of the text field.void renderTextArea(TableCellRenderContext rc, CellValue val, InputFieldStyle styles)
rc - The current cell render context.val - The cell value for which the text area is rendered.styles - The visual styles of the text area.void renderTextField(MassUpdateRenderContext rc, InputFieldStyle styles)
rc - The current render context.styles - The visual styles of the text field.void renderTextField(MassUpdateRenderContext rc, InputFieldType dataType, InputFieldStyle styles)
rc - The current render context.dataType - The input data type.styles - The visual styles of the text field.void renderTextField(TableCellRenderContext rc, CellValue val, InputFieldStyle styles)
rc - The current render context.val - The cell value for which the text field is rendered.styles - The visual styles of the text field.void renderTextField(TableCellRenderContext rc, CellValue val, InputFieldType dataType, InputFieldStyle styles)
rc - The current render context.val - The cell value for which the text field is rendered.dataType - The input data type.styles - The visual styles of the text field.com.technia.tvc.core.gui.common.InputType getInputType(CellValue cv)
cv - The cell valueboolean renderCellInEditMode(TableCellRenderContext rc)
rc - The current render context.void renderStyleCell(TableCellRenderContext rc)
rc - void renderIcon(TableCellRenderContext rc, java.lang.String iconId, java.lang.String tooltip, java.lang.String onClick, java.lang.String cssClass)
rc - The current render contexticonId - Id of icon to rendertooltip - Tooltip for icononClick - Behavior when icon is clickedcssClass - CSS class(es) applied on iconvoid renderFontIcon(TableCellRenderContext rc, java.lang.String iconClass, java.lang.String text, java.lang.String tooltip, java.lang.String onClick)
rc - The current render contexticonClass - CSS class(es) specifying icon to usetext - Texttooltip - Tooltip for icononClick - OnClick behaviourCopyright ? Technia AB. All Rights Reserved.