Class NmDefaultHTMLTable

java.lang.Object
com.ptc.netmarkets.util.misc.NmModel
com.ptc.netmarkets.util.table.NmHTMLTable
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:
  • Method Summary

    Modifier and Type
    Method
    Description
    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, NmObject nmobject)
    Insert an object at a specified row of the table.
    getObject(int row)
    Get the object corresponding to a given row.
    int
    Get the number of rows in the table.

    Methods inherited from class com.ptc.netmarkets.util.table.NmHTMLTable

    getActionModel, getColumnModel, getDefaultColumFreezeIndex, getDescriptor, getDisableAction, getMenubarModel, getName, getSortMap, getSummary, getTableModel, isDragAndDropSupported, isFilterDone, isRowSelectable, isScrollable, isSortDone, isTableFreezable, readVersion, setActionModel, setColumnModel, setDefaultColumFreezeIndex, setDescriptor, setDisableAction, setDragAndDropSupported, setFilterDone, setMenubarModel, setName, setRowSelectable, setScrollable, setSortDone, setSortMap, setSummary, setTableFreezable, setTableModel

    Methods inherited from class com.ptc.netmarkets.util.misc.NmModel

    getLastUpdate, getMessage, getNonSelectableRows, getRowStyles, getRowSytle, getViewMode, isCollapseable, isNonSelectableRow, readVersion, setCollapseable, setLastUpdate, setMessage, setNonSelectableRow, setNonSelectableRows, setRowStyles, setRowSytle, setViewMode, updateModel

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • addObject

      public void addObject(int row, 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 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