Class NmDefaultHTMLTableTree

java.lang.Object
com.ptc.netmarkets.util.misc.NmModel
com.ptc.netmarkets.util.treetable.NmHTMLTableTree
com.ptc.netmarkets.util.treetable.NmDefaultHTMLTableTree
All Implemented Interfaces:
NmTabular, Externalizable, Serializable, Cloneable

public class NmDefaultHTMLTableTree extends com.ptc.netmarkets.util.treetable.NmHTMLTableTree implements NmTabular, Externalizable


Supported API: true

Extendable: false
See Also:
  • Method Details

    • 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 NmObject getObject(int row)
      Get the object corresponding to a given row.

      Supported API: true
      Specified by:
      getObject in interface NmTabular
      Overrides:
      getObject in class com.ptc.netmarkets.util.treetable.NmHTMLTableTree
      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