|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TableElement
Representation of table element.
| Nested Class Summary | |
|---|---|
static class |
TableElement.Alignment
Alignment definition for the table as a whole. |
| Method Summary | |
|---|---|
void |
addColumn()
Adds a column for every existing row. |
void |
addRow()
Adds a row for every existing column. |
java.lang.String |
getAlign()
Deprecated. |
TableElement.Alignment |
getAlignment()
Gets the alignment for the table. |
java.lang.String[] |
getColumnWidths()
Returns an array container all column widths in the order of existence. |
java.lang.String |
getLinkCode()
Returns the code of the related link assigned to the table as a whole. |
java.lang.String |
getSeparatorStyle()
Deprecated. This method is only needed for backwards compatibility with table models. |
java.lang.String |
getStyle()
Deprecated. This method is only needed for backwards compatibility with table models. |
TableRow[] |
getTableRows()
Returns all the rows of the table. |
java.lang.String[] |
getTableWidths()
Deprecated. |
java.lang.String |
getTitle()
Returns the title. |
java.lang.String |
getTitleStyle()
Deprecated. This method is only needed for backwards compatibility with table models. |
java.lang.String |
getWidth()
Returns the width. |
boolean |
isFirstColumnHeader()
Returns whether the first column is defined as a header. |
boolean |
isFirstRowHeader()
Returns whether the first row is defined as a header. |
void |
removeColumn(int index)
Removes the column with indicated index. |
void |
removeRow(int index)
Removes the row with indicated index. |
void |
setAlignment(TableElement.Alignment alignment)
Sets the alignment for the table. |
void |
setCellContent(int columnIndex,
int rowIndex,
java.lang.String content)
Sets the indicated cell by row and column index with content. |
void |
setColumnWidths(java.lang.String[] columnWidths)
Sets the widths for each column defined. |
void |
setFirstColumnIsHeader(boolean isFirstColumnHeader)
Sets a prarameter to indicate wether the first column is to be shown as header. |
void |
setFirstRowIsHeader(boolean isFirstRowHeader)
Sets a prarameter to indicate wether the first row is to be shown as header. |
void |
setLinkCode(java.lang.String code)
Sets the internal link code needed to place an internal link tag around the table. |
void |
setTitle(java.lang.String title)
Sets the title. |
void |
setWidth(java.lang.String width)
Sets the width for the table either in percentages of pixels. |
| Methods inherited from interface nl.gx.webmanager.cms.element.Element |
|---|
cleanup, copy, getEditElementHeader, getElementHolder, getHeader, getIcon, getMediaItemVersion, getPageModel, getPageModelElement, getPageVersion, getPersonalization, getWebsite, isAuthorized, setAuthorized, setDefaultPresentation, setEditElementHeader, setHeader, setIcon, setPersonalization |
| Methods inherited from interface nl.gx.webmanager.cms.core.Presentable |
|---|
getPresentation, render, render, setPresentation |
| Methods inherited from interface nl.gx.webmanager.wrapper.Wrapper |
|---|
getId, getUUID, setId, setUUID |
| Methods inherited from interface nl.gx.webmanager.springmvc.DelegatedControllerAware |
|---|
getDelegatedController, setDelegatedController |
| Method Detail |
|---|
void addColumn()
void removeColumn(int index)
index - the zero bound index of the column to be removedvoid addRow()
void removeRow(int index)
index - the zero bound index of the row to be removed
void setCellContent(int columnIndex,
int rowIndex,
java.lang.String content)
columnIndex - the zero bound index of the columnrowIndex - the zero bound index of the rowcontent - The contentTableRow[] getTableRows()
boolean isFirstRowHeader()
void setFirstRowIsHeader(boolean isFirstRowHeader)
isFirstRowHeader - is the first row a headerboolean isFirstColumnHeader()
void setFirstColumnIsHeader(boolean isFirstColumnHeader)
isFirstColumnHeader - is the first columns a headerjava.lang.String getTitle()
void setTitle(java.lang.String title)
title - the titlejava.lang.String getWidth()
void setWidth(java.lang.String width)
width - The width to be set@Deprecated java.lang.String getAlign()
TableElement.Alignment getAlignment()
void setAlignment(TableElement.Alignment alignment)
alignment - the alignment for the image.@Deprecated java.lang.String[] getTableWidths()
java.lang.String[] getColumnWidths()
void setColumnWidths(java.lang.String[] columnWidths)
columnWidths - The widths of each columnjava.lang.String getStyle()
style attribute of the HTML table tag. This
method makes use of the following properties in the descriptor XML:
| Name | Required | Type | Description |
|---|---|---|---|
| tableBorder | no | int | Width of the table border in pixels |
| tableBorderColor | no | Color | Color for the table border |
| tableBackgroundColor | no | Color | Background color for the table |
| tableBackgroundImage | no | Image | Background image for the table |
java.lang.String getSeparatorStyle()
style attribute of the HTML td tag for the
separator. This method makes use of the following properties in the descriptor XML:
| Name | Required | Type | Description |
|---|---|---|---|
| tableBorder | no | int | Width of the table border in pixels |
| tableBorderColor | no | Color | Color for the table border |
| tableRowSeparatorColor | no | Color | Color for the row separator |
java.lang.String getTitleStyle()
style attribute of the HTML div tag used
for the title of the table. This method makes use of the following properties in the descriptor XML:
| Name | Required | Type | Description |
|---|---|---|---|
| tableBorder | no | int | Width of the table border in pixels |
| tableBorderColor | no | Color | Color for the table border |
| tableTitleBackgroundColor | no | Color | Background color for the title |
| tableTitleBackgroundImage | no | Image | Background image for the title |
| tableTitleFont | no | Font | Font string for the title |
| tableTitleAlign | no | String | The value to be used for the CSS |
div, e.g. "font: bold 14px Arial;text-align: right"java.lang.String getLinkCode()
void setLinkCode(java.lang.String code)
code - the internal link code needed to place an internal link tag around the table.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||