Class TableRow

java.lang.Object
org.netxms.client.TableRow

public class TableRow extends Object
Table row
  • Constructor Details

    • TableRow

      public TableRow(int rowCount)
      Create new row
      Parameters:
      rowCount - The amount of new rows to create
    • TableRow

      public TableRow(TableRow src)
      Copy constructor
      Parameters:
      src - The TableRow source object
  • Method Details

    • get

      public TableCell get(int column) throws IndexOutOfBoundsException
      Get table cell object for given column.
      Parameters:
      column - Column index
      Returns:
      table Cell at given index
      Throws:
      IndexOutOfBoundsException - If the index is out of bounds
    • getValue

      public String getValue(int column)
      Get value for given column as string. If column index is out of range returns null.
      Parameters:
      column - column index
      Returns:
      column value or null
    • getValueAsLong

      public long getValueAsLong(int column)
      Get value for given column as long integer. If column index is out of range or cannot be interpreted as long integer returns 0.
      Parameters:
      column - column index
      Returns:
      column value interpreted as long integer or 0
    • getValueAsInteger

      public int getValueAsInteger(int column)
      Get value for given column as integer. If column index is out of range or cannot be interpreted as integer returns 0.
      Parameters:
      column - column index
      Returns:
      column value interpreted as integer or 0
    • getValueAsDouble

      public double getValueAsDouble(int column)
      Get value for given column as floating point number. If column index is out of range or cannot be interpreted as floating point number returns 0.
      Parameters:
      column - column index
      Returns:
      column value interpreted as floating point number or 0
    • size

      public int size()
      Returns:
      The amount of cells
    • fillMessage

      public long fillMessage(NXCPMessage msg, long baseId, boolean extendedFormat)
      Parameters:
      msg - The NXCPMessage
      baseId - The base ID
      extendedFormat - True if extended format
      Returns:
      The cell ID
    • getObjectId

      public long getObjectId()
      Get associated object ID.
      Returns:
      associated object ID
    • setObjectId

      public void setObjectId(long objectId)
      Set associated object ID.
      Parameters:
      objectId - associated object ID to set
    • getBaseRow

      public int getBaseRow()
      Returns:
      the baseRow
    • setBaseRow

      public void setBaseRow(int baseRow)
      Parameters:
      baseRow - the baseRow to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: