/** * Returns the value of the cell identified by this adapter. That is, * for the at position (adapter.row, adapter.column) in view coordinates.<p> * * NOTE: this implementation assumes that view coordinates == model * coordinates, that is simply calls getValueAt(this.row, this.column). It is * up to subclasses to override appropriately is they support model/view * coordinate transformation. * * @return the value of the cell identified by this adapter * @see #getValueAt(int, int) * @see #getFilteredValueAt(int, int) * @see #getValue(int) */ public Object getValue() { return getValueAt(row, column); }
/** * Returns the String representation of the value of the cell identified by the row * specified row and column in model coordinates.<p> * * This implementation messages the StringValue.TO_STRING with the valueAt, * subclasses should re-implement and use the api appropriate for the target component type.<p> * * @param row in model coordinates * @param column in model coordinates * @return the value of the target component's cell identified by the * specified row and column */ public String getStringAt(int row, int column) { return StringValues.TO_STRING.getString(getValueAt(row, column)); }
/** * Returns the String representation of the value of the cell identified by the row * specified row and column in model coordinates.<p> * * This implementation messages the StringValue.TO_STRING with the valueAt, * subclasses should re-implement and use the api appropriate for the target component type.<p> * * @param row in model coordinates * @param column in model coordinates * @return the value of the target component's cell identified by the * specified row and column */ public String getStringAt(int row, int column) { return StringValues.TO_STRING.getString(getValueAt(row, column)); }
/** * Returns the String representation of the value of the cell identified by the row * specified row and column in model coordinates.<p> * * This implementation messages the StringValue.TO_STRING with the valueAt, * subclasses should re-implement and use the api appropriate for the target component type.<p> * * @param row in model coordinates * @param column in model coordinates * @return the value of the target component's cell identified by the * specified row and column */ public String getStringAt(int row, int column) { return StringValues.TO_STRING.getString(getValueAt(row, column)); }
/** * Returns the String representation of the value of the cell identified by the row * specified row and column in model coordinates.<p> * * This implementation messages the StringValue.TO_STRING with the valueAt, * subclasses should re-implement and use the api appropriate for the target component type.<p> * * @param row in model coordinates * @param column in model coordinates * @return the value of the target component's cell identified by the * specified row and column */ public String getStringAt(int row, int column) { return StringValues.TO_STRING.getString(getValueAt(row, column)); }
/** * Returns the String representation of the value of the cell identified by the row * specified row and column in model coordinates.<p> * * This implementation messages the StringValue.TO_STRING with the valueAt, * subclasses should re-implement and use the api appropriate for the target component type.<p> * * @param row in model coordinates * @param column in model coordinates * @return the value of the target component's cell identified by the * specified row and column */ public String getStringAt(int row, int column) { return StringValues.TO_STRING.getString(getValueAt(row, column)); }
/** * Returns the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates. * * Note: the asymmetry of the coordinates is intentional - clients like * Highlighters are interested in view values but might need to access * non-visible columns for testing. While it is possible to access * row coordinates different from the current (that is this.row) it is not * safe to do so for row > this.row because the adapter doesn't allow to * query the count of visible rows. * * @param row the row of the cell in view coordinates * @param column the column of the cell in model coordinates. * @return the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates */ public Object getFilteredValueAt(int row, int column) { return getValueAt(convertRowIndexToModel(row), column); }
/** * Returns the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates. * * Note: the asymmetry of the coordinates is intentional - clients like * Highlighters are interested in view values but might need to access * non-visible columns for testing. While it is possible to access * row coordinates different from the current (that is this.row) it is not * safe to do so for row > this.row because the adapter doesn't allow to * query the count of visible rows. * * @param row the row of the cell in view coordinates * @param column the column of the cell in model coordinates. * @return the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates */ public Object getFilteredValueAt(int row, int column) { return getValueAt(convertRowIndexToModel(row), column); }
/** * Returns the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates. * * Note: the asymmetry of the coordinates is intentional - clients like * Highlighters are interested in view values but might need to access * non-visible columns for testing. While it is possible to access * row coordinates different from the current (that is this.row) it is not * safe to do so for row > this.row because the adapter doesn't allow to * query the count of visible rows. * * @param row the row of the cell in view coordinates * @param column the column of the cell in model coordinates. * @return the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates */ public Object getFilteredValueAt(int row, int column) { return getValueAt(convertRowIndexToModel(row), column); }
/** * Returns the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates. * * Note: the asymmetry of the coordinates is intentional - clients like * Highlighters are interested in view values but might need to access * non-visible columns for testing. While it is possible to access * row coordinates different from the current (that is this.row) it is not * safe to do so for row > this.row because the adapter doesn't allow to * query the count of visible rows. * * @param row the row of the cell in view coordinates * @param column the column of the cell in model coordinates. * @return the filtered value of the cell identified by the row * in view coordinate and the column in model coordinates */ public Object getFilteredValueAt(int row, int column) { return getValueAt(convertRowIndexToModel(row), column); }
/** * Returns the value of the cell at the specified row and column. * The column index is in absolute column coordinates. * * @param row in the coordinates of what is the filter's input ("model"). * @param column in model coordinates * @return the value of the cell at the specified row and column. */ protected Object getInputValue(int row, int column) { Filter filter = getMappingFilter(); if (filter != null) { return filter.getValueAt(row, column); } if (adapter != null) { return adapter.getValueAt(row, column); } return null; }
/** * Returns the value at the specified row and column. * The column index is in absolute column coordinates. * * PRE: 0 <= row < getSize() * * @param row the row index in this filter's output ("view") coordinates * @param column column index in absolute model coordinates * @return the value at the specified row and column */ public Object getValueAt(int row, int column) { int mappedRow = mapTowardModel(row); Filter filter = getMappingFilter(); if (filter != null) { return filter.getValueAt(mappedRow, column); } return adapter.getValueAt(mappedRow, column); }