/** * Get the data value at the given row and field as a * <code>boolean</code>. * @param row the table row to retrieve * @param col the column number of the data field to get * @see #canGetBoolean(String) */ public final boolean getBoolean(int row, int col) { row = getColumnRow(row, col); return getColumn(col).getBoolean(row); }
/** * Set the data value of the given row and field as a * <code>String</code>. * @param row the table row to set * @param col the column number of the data field to set * @param val the value to set * @see #canSetString(String) */ public final void setString(int row, int col, String val) { row = getColumnRow(row, col); getColumn(col).setString(val, row); }
/** * Set the data value of the given row and field as a * <code>double</code>. * @param row the table row to set * @param col the column number of the data field to set * @param val the value to set * @see #canSetDouble(String) */ public final void setDouble(int row, int col, double val) { row = getColumnRow(row, col); getColumn(col).setDouble(val, row); }
/** * Get the data value at the given row and field as an * <code>long</code>. * @param row the table row to retrieve * @param col the column number of the data field to retrieve * @see #canGetLong(String) */ public final long getLong(int row, int col) { row = getColumnRow(row, col); return getColumn(col).getLong(row); }
/** * Set the data value of the given row and field as an * <code>long</code>. * @param row the table row to set * @param col the column number of the data field to set * @param val the value to set * @see #canSetLong(String) */ public final void setLong(int row, int col, long val) { row = getColumnRow(row, col); getColumn(col).setLong(val, row); }
/** * Set the data value of the given row and field as a * <code>float</code>. * @param row the table row to set * @param col the column number of the data field to set * @param val the value to set * @see #canSetFloat(String) */ public final void setFloat(int row, int col, float val) { row = getColumnRow(row, col); getColumn(col).setFloat(val, row); }
/** * Get the data value at the given row and field as a * <code>Date</code>. * @param row the table row to retrieve * @param col the column number of the data field to retrieve * @see #canGetDate(String) */ public final Date getDate(int row, int col) { row = getColumnRow(row, col); return getColumn(col).getDate(row); }
/** * Set the data value of the given row and field as an * <code>int</code>. * @param row the table row to set * @param col the column number of the data field to set * @param val the value to set * @see #canSetInt(String) */ public final void setInt(int row, int col, int val) { row = getColumnRow(row, col); getColumn(col).setInt(val, row); }
/** * Get the data value at the given row and field as a * <code>double</code>. * @param row the table row to retrieve * @param col the column number of the data field to get * @see #canGetDouble(String) */ public final double getDouble(int row, int col) { row = getColumnRow(row, col); return getColumn(col).getDouble(row); }
/** * Set the data value of the given row and field as a * <code>boolean</code>. * @param row the table row to set * @param col the column number of the data field to set * @param val the value to set * @see #canSetBoolean(String) */ public final void setBoolean(int row, int col, boolean val) { row = getColumnRow(row, col); getColumn(col).setBoolean(val, row); }
/** * Get the data value at the given row and field as a * <code>String</code>. * @param row the table row to retrieve * @param col the column number of the data field to retrieve * @see #canGetString(String) */ public final String getString(int row, int col) { row = getColumnRow(row, col); return getColumn(col).getString(row); }
/** * Get the data value at the given row and column numbers as an Object. * @param row the row number * @param col the column number * @return the data value as an Object. The concrete type of this * Object is dependent on the underlying data column used. * @see #canGet(String, Class) * @see #getColumnType(int) */ public Object get(int row, int col) { row = getColumnRow(row, col); return getColumn(col).get(row); }
/** * Revert this tuple's value for the given field to the default value * for the field. * @param field the data field * @see #getDefault(String) */ public void revertToDefault(int row, String field) { int col = getColumnNumber(field); row = getColumnRow(row, col); getColumn(col).revertToDefault(row); }
/** * Get the data value at the given row and field as a * <code>boolean</code>. * @param row the table row to retrieve * @param field the data field to retrieve * @see #canGetBoolean(String) */ public final boolean getBoolean(int row, String field) { int col = getColumnNumber(field); row = getColumnRow(row, col); return getColumn(col).getBoolean(row); }
/** * Get the data value at the given row and field as an * <code>int</code>. * @param row the table row to retrieve * @param field the data field to retrieve * @see #canGetInt(String) */ public final int getInt(int row, String field) { int col = getColumnNumber(field); row = getColumnRow(row, col); return getColumn(col).getInt(row); }
/** * Get the data value at the given row and field as a * <code>float</code>. * @param row the table row to retrieve * @param field the data field to retrieve * @see #canGetFloat(String) */ public final float getFloat(int row, String field) { int col = getColumnNumber(field); row = getColumnRow(row, col); return getColumn(col).getFloat(row); }
/** * Get the data value at the given row and field as a * <code>String</code>. * @param row the table row to retrieve * @param field the data field to retrieve * @see #canGetString(String) */ public final String getString(int row, String field) { int col = getColumnNumber(field); row = getColumnRow(row, col); return getColumn(col).getString(row); }
/** * Get the data value at the given row and field as a * <code>Date</code>. * @param row the table row to retrieve * @param field the data field to retrieve * @see #canGetDate(String) */ public final Date getDate(int row, String field) { int col = getColumnNumber(field); row = getColumnRow(row, col); return getColumn(col).getDate(row); }
/** * Set the data value of the given row and field as a * <code>boolean</code>. * @param row the table row to set * @param field the data field to set * @param val the value to set * @see #canSetBoolean(String) */ public final void setBoolean(int row, String field, boolean val) { int col = getColumnNumber(field); row = getColumnRow(row, col); getColumn(col).setBoolean(val, row); }
/** * @see prefuse.data.util.RowManager#getColumnRow(int, int) */ public int getColumnRow(int row, int col) { if ( !isValidRow(row) ) return -1; else if ( col >= ((CascadedTable)getTable()).getLocalColumnCount() ) return ((CascadedTable)m_table).getParentTable() .getColumnRow(getParentRow(row), col); else return row; }