com.ptc.netmarkets.util.table
Class NmDefaultHTMLTable

java.lang.Object
  extended by com.ptc.netmarkets.util.misc.NmModel
      extended by com.ptc.netmarkets.util.table.NmHTMLTable
          extended by com.ptc.netmarkets.util.table.NmDefaultHTMLTable
All Implemented Interfaces:
NmTabular, Externalizable, Serializable, Cloneable

public class NmDefaultHTMLTable
extends com.ptc.netmarkets.util.table.NmHTMLTable
implements NmTabular, Cloneable, Externalizable



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 void addCellValue(int row, int col, Object value)
          Add a value to a specified cell

Supported API: true
 void addColumn(Object loc_name)
          Add a new column to the table with a given name.
 void addObject(int row, com.ptc.netmarkets.model.NmObject nmobject)
          Insert an object at a specified row of the table.
 com.ptc.netmarkets.model.NmObject getObject(int row)
          Get the object corresponding to a given row.
 int getRowCount()
          Get the number of rows in the table.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addObject

public void addObject(int row,
                      com.ptc.netmarkets.model.NmObject nmobject)
Insert an object at a specified row of the table.

Supported API: true

Parameters:
row - row number
nmobject - object to be added

getRowCount

public int getRowCount()
Get the number of rows in the table.

Supported API: true

Specified by:
getRowCount in interface NmTabular
Returns:
int

getObject

public com.ptc.netmarkets.model.NmObject getObject(int row)
Get the object corresponding to a given row.

Supported API: true

Specified by:
getObject in interface NmTabular
Parameters:
row - row number in the table
Returns:
NmObject

addColumn

public void addColumn(Object loc_name)
Add a new column to the table with a given name.

Supported API: true

Specified by:
addColumn in interface NmTabular
Parameters:
loc_name - name of the new column to be added

addCellValue

public void addCellValue(int row,
                         int col,
                         Object value)
Add a value to a specified cell

Supported API: true

Specified by:
addCellValue in interface NmTabular
Parameters:
row - row number
col - column number
value - value to be added