org.pm4j.core.pm.impl
Class PmTableGenericRowImpl<T_ROW_ELEMENT extends PmElement>

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmTableGenericRowImpl<T_ROW_ELEMENT>
All Implemented Interfaces:
PmTableGenericRow<T_ROW_ELEMENT>

public class PmTableGenericRowImpl<T_ROW_ELEMENT extends PmElement>
extends java.lang.Object
implements PmTableGenericRow<T_ROW_ELEMENT>

A table row implementation that is specific for DeprecatedPmTableOfPmElementsImpl.

The table cells are provided as follows:
A row represents a PmElement.
For each column cell, the element will be asked for a child PM that has the same name as the table column.

Author:
olaf boede

Constructor Summary
PmTableGenericRowImpl(PmTable<T_ROW_ELEMENT> pmTable, T_ROW_ELEMENT pmElement)
           
 
Method Summary
 T_ROW_ELEMENT getBackingBean()
          Row content is based on a data object.
This method provides access to the related row data object.
 PmObject getCell(int colIdx)
           
 java.util.List<PmObject> getCells()
           
 PmTable<T_ROW_ELEMENT> getPmTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmTableGenericRowImpl

public PmTableGenericRowImpl(PmTable<T_ROW_ELEMENT> pmTable,
                             T_ROW_ELEMENT pmElement)
Method Detail

getPmTable

public PmTable<T_ROW_ELEMENT> getPmTable()
Specified by:
getPmTable in interface PmTableGenericRow<T_ROW_ELEMENT extends PmElement>
Returns:
The table this row belongs to.

getCells

public java.util.List<PmObject> getCells()
Specified by:
getCells in interface PmTableGenericRow<T_ROW_ELEMENT extends PmElement>
Returns:
The sorted set of row cells.

getCell

public PmObject getCell(int colIdx)
Specified by:
getCell in interface PmTableGenericRow<T_ROW_ELEMENT extends PmElement>
Parameters:
colIdx - Position index of the column to get the cell for.
Returns:
The corresponding row cell.

getBackingBean

public T_ROW_ELEMENT getBackingBean()
Description copied from interface: PmTableGenericRow
Row content is based on a data object.
This method provides access to the related row data object.

Specified by:
getBackingBean in interface PmTableGenericRow<T_ROW_ELEMENT extends PmElement>
Returns:
The object that provides the row content.