/** * Returns the String representation of the value of the cell identified by the current * adapter row and the given column index in model coordinates.<p> * * @param modelColumnIndex the column index in model coordinates * @return the String representation of the value of the cell identified by this adapter * * @see #getFilteredStringAt(int, int) * @see #getString() */ public String getString(int modelColumnIndex) { return getFilteredStringAt(row, modelColumnIndex); }
/** * Returns the String representation of the value of the cell identified by the current * adapter row and the given column index in model coordinates.<p> * * @param modelColumnIndex the column index in model coordinates * @return the String representation of the value of the cell identified by this adapter * * @see #getFilteredStringAt(int, int) * @see #getString() */ public String getString(int modelColumnIndex) { return getFilteredStringAt(row, modelColumnIndex); }
/** * Returns the String representation of the value of the cell identified by the current * adapter row and the given column index in model coordinates.<p> * * @param modelColumnIndex the column index in model coordinates * @return the String representation of the value of the cell identified by this adapter * * @see #getFilteredStringAt(int, int) * @see #getString() */ public String getString(int modelColumnIndex) { return getFilteredStringAt(row, modelColumnIndex); }
/** * Returns the String representation of the value of the cell identified by the current * adapter row and the given column index in model coordinates.<p> * * @param modelColumnIndex the column index in model coordinates * @return the String representation of the value of the cell identified by this adapter * * @see #getFilteredStringAt(int, int) * @see #getString() */ public String getString(int modelColumnIndex) { return getFilteredStringAt(row, modelColumnIndex); }
/** * Returns the String representation of the value of the cell identified by the current * adapter row and the given column index in model coordinates.<p> * * @param modelColumnIndex the column index in model coordinates * @return the String representation of the value of the cell identified by this adapter * * @see #getFilteredStringAt(int, int) * @see #getString() */ public String getString(int modelColumnIndex) { return getFilteredStringAt(row, modelColumnIndex); }
/** * {@inheritDoc} * <p> * * PENDING JW: this is implemented to duplicate this table's lookup code * if the column is not visible. That's not good enough if subclasses * implemented a different strategy! We do it anyway for now, mostly we * will be lucky and improve the situation against using toString * always. * */ @Override public String getFilteredStringAt(int row, int column) { int viewColumn = modelToView(column); if (viewColumn >= 0) { return table.getStringAt(row, viewColumn); } // PENDING JW: how to get a String rep for invisible cells? // rows may be filtered, columns hidden. TableCellRenderer renderer = getRendererByModelColumn(column); if (renderer instanceof StringValue) { return ((StringValue) renderer).getString(getFilteredValueAt( row, column)); } return super.getFilteredStringAt(row, column); }