Package org.netxms.client
Class TableRow
java.lang.Object
org.netxms.client.TableRow
Table row
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongfillMessage(NXCPMessage msg, long baseId, boolean extendedFormat) get(int column) Get table cell object for given column.intlongGet associated object ID.getValue(int column) Get value for given column as string.doublegetValueAsDouble(int column) Get value for given column as floating point number.intgetValueAsInteger(int column) Get value for given column as integer.longgetValueAsLong(int column) Get value for given column as long integer.voidsetBaseRow(int baseRow) voidsetObjectId(long objectId) Set associated object ID.intsize()toString()
- 
Constructor Details- 
TableRowpublic TableRow(int rowCount) Create new row- Parameters:
- rowCount- The amount of new rows to create
 
- 
TableRowCopy constructor- Parameters:
- src- The TableRow source object
 
 
- 
- 
Method Details- 
getGet 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
 
- 
getValueGet value for given column as string. If column index is out of range returns null.- Parameters:
- column- column index
- Returns:
- column value or null
 
- 
getValueAsLongpublic 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
 
- 
getValueAsIntegerpublic 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
 
- 
getValueAsDoublepublic 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
 
- 
sizepublic int size()- Returns:
- The amount of cells
 
- 
fillMessage- Parameters:
- msg- The NXCPMessage
- baseId- The base ID
- extendedFormat- True if extended format
- Returns:
- The cell ID
 
- 
getObjectIdpublic long getObjectId()Get associated object ID.- Returns:
- associated object ID
 
- 
setObjectIdpublic void setObjectId(long objectId) Set associated object ID.- Parameters:
- objectId- associated object ID to set
 
- 
getBaseRowpublic int getBaseRow()- Returns:
- the baseRow
 
- 
setBaseRowpublic void setBaseRow(int baseRow) - Parameters:
- baseRow- the baseRow to set
 
- 
toString
 
-