Package org.netxms.client
Class TableRow
java.lang.Object
org.netxms.client.TableRow
Table row
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
fillMessage
(NXCPMessage msg, long baseId, boolean extendedFormat) get
(int column) Get table cell object for given column.int
long
Get associated object ID.getValue
(int column) Get value for given column as string.double
getValueAsDouble
(int column) Get value for given column as floating point number.int
getValueAsInteger
(int column) Get value for given column as integer.long
getValueAsLong
(int column) Get value for given column as long integer.void
setBaseRow
(int baseRow) void
setObjectId
(long objectId) Set associated object ID.int
size()
toString()
-
Constructor Details
-
TableRow
public TableRow(int rowCount) Create new row- Parameters:
rowCount
- The amount of new rows to create
-
TableRow
Copy constructor- Parameters:
src
- The TableRow source object
-
-
Method Details
-
get
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
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
- Parameters:
msg
- The NXCPMessagebaseId
- The base IDextendedFormat
- 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
-