| de.ug2t.unifiedGui.interfaces.IUnTable
All known Subclasses: de.ug2t.channel.markup.generic.MuGenericTable, de.ug2t.channel.ho.client.swing.HoSwingTable, de.ug2t.channel.ho.server.generic.HoSrvGenericTable,
IUnTable | public interface IUnTable extends IUnComponent,IUnListSelectComponent,IUnMultiSelectComponent,IUnScrollController(Code) | | author: Dirk author: date: 15.03.2004 project: WiSer-Framework author: author: IUnTable is the common interface to a table-widget. A table-widget consists author: of a table header and one or more table rows. Each row as well as the header author: has multiple cells. A cell may contain a string or other widgets. The table author: model is a table-object (KeTable) author:
|
Inner Class :public static class Factory | |
Method Summary | |
public void | pcmf_addRow(Collection xRow) | public void | pcmf_addRow(Collection xRow, int xIdx) | public void | pcmf_addRows(Collection xRow) | public void | pcmf_clearCommitHandler() | public void | pcmf_clearSelection() | public void | pcmf_clearTableBody() | public void | pcmf_commitTable() | public Object | pcmf_getCellValue(int xRow, int xCol) | public ArrayList | pcmf_getCol(int xCol) | public int | pcmf_getColCount() | public KeTable | pcmf_getComplete() | public Collection | pcmf_getHeader() | public int | pcmf_getPadding()
Gets the padding in pixel. | public int | pcmf_getRowCount() | public Iterator | pcmf_getRows()
Gets an iterator which returns all rows of the table. | public Collection | pcmf_getRowsOnly() | public ArrayList | pcmf_getSelectedTableRow() | public ArrayList | pcmf_getSelectedTableRows() | public int | pcmf_getSpacing()
Gets the spacing in pixel. | public int | pcmf_getTableBorder()
Gets the border width in pixel. | public void | pcmf_hideRow(int xRow) Hides a row. | public boolean | pcmf_isHiddenRow(int xRow) | public void | pcmf_lockColumn(int xCol, boolean xLock)
Locks the columns, that means that the column is not scrolled horizonally. | public Object | pcmf_modCell(int xRow, int xCol, Object xObj) | public void | pcmf_refresh(Collection xRows)
Sets new table-data (header as well as rows) and commits it. | public void | pcmf_relockCol()
Refreshes the locked columns. | public Collection | pcmf_removeRow(int xIdx) | public void | pcmf_removeSelected() | public void | pcmf_removeSpan(int xRow, int xColumn) | public void | pcmf_setCellAlign(int xRow, int xCol, String xAlign)
Sets the alignment of the cell content. | public void | pcmf_setCellBgColor(int xRow, int xCol, String xColor) | public void | pcmf_setCellBorder(int xRow, int xCol, int xDir, String xColor, int xWidth, int xStyle)
Sets the border of a cell. | public void | pcmf_setCellCssClass(int xRow, int xCol, String xClass)
Sets the css class of the cell. | public void | pcmf_setCellFgColor(int xRow, int xCol, String xColor) | public void | pcmf_setCellMargin(int xRow, int xCol, int xDir, int xWidth)
Sets the margin of a cell. | public void | pcmf_setCellPadding(int xRow, int xCol, int xDir, int xWidth)
Sets the padding of a cell. | public void | pcmf_setCommitHandler(IKeExecutable xHandler) | public void | pcmf_setComplete(KeTable xTable)
Changes the complete table content including header and rows. | public void | pcmf_setHeader(Collection xHead) | public void | pcmf_setPadding(int xPad) | public void | pcmf_setRowsOnly(Collection xRows)
Sets new table-data (rows only). | public void | pcmf_setRowsOnly(KeTable xRows)
Sets new table-data (rows only) from another table. | public void | pcmf_setSelected(int xRow) | public void | pcmf_setSelected(int[] xRows) | public Object | pcmf_setSelectedRow(int xRow) | public ArrayList | pcmf_setSelectedRows(int[] xRows) | public void | pcmf_setSpacing(int xSpace)
Sets the spacing in pixel between the table-cells. | public void | pcmf_setSpan(int xRow, int xColumn, int xRowSpan, int xColumnSpan) Create and store a span defintion upon the table. | public void | pcmf_setTableBorder(int xBorder) | public void | pcmf_unHideRow(int xRow) Unhides a row. |
pcmf_addRow | public void pcmf_addRow(Collection xRow)(Code) | |
Adds a row to a table
Parameters: xRow - collection of row-data |
pcmf_addRow | public void pcmf_addRow(Collection xRow, int xIdx)(Code) | |
Adds a row to a table
Parameters: xRow - collection of row-data Parameters: xIdx - RowIndex, 0 = header |
pcmf_addRows | public void pcmf_addRows(Collection xRow)(Code) | |
Adds multiple rows to a table
Parameters: xRow - collection of multiple collections each of which contains onetable row |
pcmf_clearCommitHandler | public void pcmf_clearCommitHandler()(Code) | |
Clears the commit handler
|
pcmf_clearSelection | public void pcmf_clearSelection()(Code) | | Clears the selection
|
pcmf_clearTableBody | public void pcmf_clearTableBody()(Code) | |
Clears the tables roes
|
pcmf_commitTable | public void pcmf_commitTable()(Code) | |
Commits the changes
|
pcmf_getCellValue | public Object pcmf_getCellValue(int xRow, int xCol)(Code) | |
Gets on table cell's content
content Parameters: xRow - index of the row (started by 0) Parameters: xCol - index of the column (started by 0)
|
pcmf_getCol | public ArrayList pcmf_getCol(int xCol)(Code) | |
Gets the cell values of the specifoed column
Parameters: xCol - column started by 0 ArrayList which contains the column |
pcmf_getColCount | public int pcmf_getColCount()(Code) | |
Gets the number of cols
number of cols |
pcmf_getComplete | public KeTable pcmf_getComplete()(Code) | |
Gets a new table from this one
new table object |
pcmf_getHeader | public Collection pcmf_getHeader()(Code) | |
Gets the table header
collection of table-header values |
pcmf_getPadding | public int pcmf_getPadding()(Code) | |
Gets the padding in pixel.
padding |
pcmf_getRowCount | public int pcmf_getRowCount()(Code) | |
Gets the number of rows including the header
number of rows |
pcmf_getRows | public Iterator pcmf_getRows()(Code) | |
Gets an iterator which returns all rows of the table. Each row consists of
one collection of cells
row-iterator |
pcmf_getRowsOnly | public Collection pcmf_getRowsOnly()(Code) | |
Gets table-data excluding the header
collection of multiple collections each of which contains one tablerow |
pcmf_getSelectedTableRow | public ArrayList pcmf_getSelectedTableRow()(Code) | |
Gets the selected row
ArrayList which contains the row values |
pcmf_getSelectedTableRows | public ArrayList pcmf_getSelectedTableRows()(Code) | |
Gets the selected rows in case of multiselectable
ArrayList which contains the rows each as an own ArrayList |
pcmf_getSpacing | public int pcmf_getSpacing()(Code) | |
Gets the spacing in pixel.
spacing |
pcmf_getTableBorder | public int pcmf_getTableBorder()(Code) | |
Gets the border width in pixel.
border width |
pcmf_hideRow | public void pcmf_hideRow(int xRow)(Code) | | Hides a row. A call to index row 0 (which is the header) does not work in
all channels
Parameters: xRow - |
pcmf_isHiddenRow | public boolean pcmf_isHiddenRow(int xRow)(Code) | | Returns whether a row is hidden or not
|
pcmf_lockColumn | public void pcmf_lockColumn(int xCol, boolean xLock)(Code) | |
Locks the columns, that means that the column is not scrolled horizonally.
Parameters: xCol - column started by 0 Parameters: xLock - true indicates lock, false indicates unlock |
pcmf_modCell | public Object pcmf_modCell(int xRow, int xCol, Object xObj)(Code) | |
Modifies one existing table-cell
old value of the table-cell Parameters: xRow - index of the row (started by 0) Parameters: xCol - index of the column (started by 0) Parameters: xObj - new object
|
pcmf_refresh | public void pcmf_refresh(Collection xRows)(Code) | |
Sets new table-data (header as well as rows) and commits it.
Parameters: xRows - a collection of one collection containing a new table header andmultiple collections containing the row-values |
pcmf_relockCol | public void pcmf_relockCol()(Code) | |
Refreshes the locked columns. The function is only used internally
|
pcmf_removeRow | public Collection pcmf_removeRow(int xIdx)(Code) | |
Removes one row from the table
Collection containing the removed row-values Parameters: xIdx - row index (started by 0)
|
pcmf_removeSelected | public void pcmf_removeSelected()(Code) | |
Removes all selected Rows
|
pcmf_removeSpan | public void pcmf_removeSpan(int xRow, int xColumn)(Code) | | Removes a column span for the given row (if present)
Parameters: xRow - Parameters: xColumn - |
pcmf_setCellAlign | public void pcmf_setCellAlign(int xRow, int xCol, String xAlign)(Code) | |
Sets the alignment of the cell content.
Parameters: xRow - row index (started by 0) Parameters: xCol - col index (started by 0) Parameters: xAlign - NORTH | WEST | EAST | SOUTH - and combinations |
pcmf_setCellBgColor | public void pcmf_setCellBgColor(int xRow, int xCol, String xColor)(Code) | |
Modifies the background of a cell
Parameters: xRow - row index (started by 0) Parameters: xCol - col index (started by 0) Parameters: xColor - color |
pcmf_setCellBorder | public void pcmf_setCellBorder(int xRow, int xCol, int xDir, String xColor, int xWidth, int xStyle)(Code) | |
Sets the border of a cell. To unset a border set its width to 0.
Parameters: xRow - row index (started by 0) Parameters: xCol - col index (started by 0) Parameters: xDir - IUnBox.LEFT | IUnBox.RIGHT | IUnBox.TOP | IUnBox.BOTTOM Parameters: xColor - color Parameters: xWidth - width in pixel Parameters: xStyle - IUnBox.DOTTED | IUnBox.DASHED | IUnBox.DOUBLE | IUnBox.LINE |
pcmf_setCellCssClass | public void pcmf_setCellCssClass(int xRow, int xCol, String xClass)(Code) | |
Sets the css class of the cell. (Works only im markup based channels by
default)
Parameters: xRow - row index (started by 0) Parameters: xCol - col index (started by 0) Parameters: xClass - css class |
pcmf_setCellFgColor | public void pcmf_setCellFgColor(int xRow, int xCol, String xColor)(Code) | |
Modifies the foreground of a cell
Parameters: xRow - row index (started by 0) Parameters: xCol - col index (started by 0) Parameters: xColor - color |
pcmf_setCellMargin | public void pcmf_setCellMargin(int xRow, int xCol, int xDir, int xWidth)(Code) | |
Sets the margin of a cell. (Does not work in HTML by default)
Parameters: xRow - row index (started by 0) Parameters: xCol - col index (started by 0) Parameters: xDir - IUnBox.LEFT | IUnBox.RIGHT | IUnBox.TOP | IUnBox.BOTTOM Parameters: xWidth - width in pixel |
pcmf_setCellPadding | public void pcmf_setCellPadding(int xRow, int xCol, int xDir, int xWidth)(Code) | |
Sets the padding of a cell.
Parameters: xRow - row index (started by 0) Parameters: xCol - col index (started by 0) Parameters: xDir - IUnBox.LEFT | IUnBox.RIGHT | IUnBox.TOP | IUnBox.BOTTOM Parameters: xWidth - width in pixel |
pcmf_setCommitHandler | public void pcmf_setCommitHandler(IKeExecutable xHandler)(Code) | |
Sets a commit handler which is called each time the table is commited
Parameters: xHandler - handler |
pcmf_setComplete | public void pcmf_setComplete(KeTable xTable)(Code) | |
Changes the complete table content including header and rows. The new
content is read from another table
Parameters: xTable - table-object to copy the content from |
pcmf_setHeader | public void pcmf_setHeader(Collection xHead)(Code) | |
Sets a new header
Parameters: xHead - collection containing the header-values |
pcmf_setPadding | public void pcmf_setPadding(int xPad)(Code) | |
Sets the distance between the cell's content and the cell's border in pixel
Parameters: xPad - distance in pixel |
pcmf_setRowsOnly | public void pcmf_setRowsOnly(Collection xRows)(Code) | |
Sets new table-data (rows only).
Parameters: xRows - a collection of collections containing the row-values |
pcmf_setRowsOnly | public void pcmf_setRowsOnly(KeTable xRows)(Code) | |
Sets new table-data (rows only) from another table.
Parameters: xRows - a table object to copy row data from |
pcmf_setSelected | public void pcmf_setSelected(int xRow)(Code) | |
Sets one row selected
Parameters: xRow - rowIndex to select |
pcmf_setSelected | public void pcmf_setSelected(int[] xRows)(Code) | |
Sets multiple rows selected and returns the rows
Parameters: xRows - rowIndex to select |
pcmf_setSelectedRow | public Object pcmf_setSelectedRow(int xRow)(Code) | |
Sets one row selected and returns the row
Parameters: xRow - rowIndex ArrayList which contains the row |
pcmf_setSelectedRows | public ArrayList pcmf_setSelectedRows(int[] xRows)(Code) | |
Sets multiple rows selected and returns the rows
Parameters: xRow - rowIndex to select ArrayList which contains the rows |
pcmf_setSpacing | public void pcmf_setSpacing(int xSpace)(Code) | |
Sets the spacing in pixel between the table-cells.
Parameters: xSpace - space in cells |
pcmf_setSpan | public void pcmf_setSpan(int xRow, int xColumn, int xRowSpan, int xColumnSpan)(Code) | | Create and store a span defintion upon the table.
Parameters: xRow - Parameters: xColumn - Parameters: xRowSpan - Parameters: xColumnSpan - |
pcmf_setTableBorder | public void pcmf_setTableBorder(int xBorder)(Code) | |
Sets the width of the cell's border in pixel
Parameters: xBorder - width in pixel |
pcmf_unHideRow | public void pcmf_unHideRow(int xRow)(Code) | | Unhides a row. A call to index row 0 (which is the header) does not work in
all channels
Parameters: xRow - |
|
|