/** * Returns logical identifier of the column at * columnIndex in model coordinates. * * Note: it's up to the implementation to decide for which * columns it returns an identifier - most will do so for the * subset with isTestable = true.<p> * * This implementation returns DEFAULT_COLUMN_IDENTIFIER. * * PENDING JW: This method replaces the old getColumnIdentifier(int) * which returned a String which is overly restrictive. * The only way to gently replace this method was * to add this with a different name - which makes this name suboptimal. * Probably should rename again once the old has died out ;-) * * @param columnIndex in model coordinates, must be valid. * @return the identifier of the column at columnIndex or null if it has none. * @throws ArrayIndexOutOfBoundsException if columnIndex < 0 or columnIndex >= getColumnCount(). * * * @see #getColumnIndex(Object) */ public Object getColumnIdentifierAt(int columnIndex) { if ((columnIndex < 0) || (columnIndex >= getColumnCount())) { throw new ArrayIndexOutOfBoundsException("invalid column index: " + columnIndex); } return DEFAULT_COLUMN_IDENTIFIER; }
/** * Returns logical identifier of the column at * columnIndex in model coordinates. * * Note: it's up to the implementation to decide for which * columns it returns an identifier - most will do so for the * subset with isTestable = true.<p> * * This implementation returns DEFAULT_COLUMN_IDENTIFIER. * * PENDING JW: This method replaces the old getColumnIdentifier(int) * which returned a String which is overly restrictive. * The only way to gently replace this method was * to add this with a different name - which makes this name suboptimal. * Probably should rename again once the old has died out ;-) * * @param columnIndex in model coordinates, must be valid. * @return the identifier of the column at columnIndex or null if it has none. * @throws ArrayIndexOutOfBoundsException if columnIndex < 0 or columnIndex >= getColumnCount(). * * * @see #getColumnIndex(Object) */ public Object getColumnIdentifierAt(int columnIndex) { if ((columnIndex < 0) || (columnIndex >= getColumnCount())) { throw new ArrayIndexOutOfBoundsException("invalid column index: " + columnIndex); } return DEFAULT_COLUMN_IDENTIFIER; }
/** * Returns logical identifier of the column at * columnIndex in model coordinates. * * Note: it's up to the implementation to decide for which * columns it returns an identifier - most will do so for the * subset with isTestable = true.<p> * * This implementation returns DEFAULT_COLUMN_IDENTIFIER. * * PENDING JW: This method replaces the old getColumnIdentifier(int) * which returned a String which is overly restrictive. * The only way to gently replace this method was * to add this with a different name - which makes this name suboptimal. * Probably should rename again once the old has died out ;-) * * @param columnIndex in model coordinates, must be valid. * @return the identifier of the column at columnIndex or null if it has none. * @throws ArrayIndexOutOfBoundsException if columnIndex < 0 or columnIndex >= getColumnCount(). * * * @see #getColumnIndex(Object) */ public Object getColumnIdentifierAt(int columnIndex) { if ((columnIndex < 0) || (columnIndex >= getColumnCount())) { throw new ArrayIndexOutOfBoundsException("invalid column index: " + columnIndex); } return DEFAULT_COLUMN_IDENTIFIER; }
/** * Returns logical identifier of the column at * columnIndex in model coordinates. * * Note: it's up to the implementation to decide for which * columns it returns an identifier - most will do so for the * subset with isTestable = true.<p> * * This implementation returns DEFAULT_COLUMN_IDENTIFIER. * * PENDING JW: This method replaces the old getColumnIdentifier(int) * which returned a String which is overly restrictive. * The only way to gently replace this method was * to add this with a different name - which makes this name suboptimal. * Probably should rename again once the old has died out ;-) * * @param columnIndex in model coordinates, must be valid. * @return the identifier of the column at columnIndex or null if it has none. * @throws ArrayIndexOutOfBoundsException if columnIndex < 0 or columnIndex >= getColumnCount(). * * * @see #getColumnIndex(Object) */ public Object getColumnIdentifierAt(int columnIndex) { if ((columnIndex < 0) || (columnIndex >= getColumnCount())) { throw new ArrayIndexOutOfBoundsException("invalid column index: " + columnIndex); } return DEFAULT_COLUMN_IDENTIFIER; }
/** * Returns logical identifier of the column at * columnIndex in model coordinates. * * Note: it's up to the implementation to decide for which * columns it returns an identifier - most will do so for the * subset with isTestable = true.<p> * * This implementation returns DEFAULT_COLUMN_IDENTIFIER. * * PENDING JW: This method replaces the old getColumnIdentifier(int) * which returned a String which is overly restrictive. * The only way to gently replace this method was * to add this with a different name - which makes this name suboptimal. * Probably should rename again once the old has died out ;-) * * @param columnIndex in model coordinates, must be valid. * @return the identifier of the column at columnIndex or null if it has none. * @throws ArrayIndexOutOfBoundsException if columnIndex < 0 or columnIndex >= getColumnCount(). * * * @see #getColumnIndex(Object) */ public Object getColumnIdentifierAt(int columnIndex) { if ((columnIndex < 0) || (columnIndex >= getColumnCount())) { throw new ArrayIndexOutOfBoundsException("invalid column index: " + columnIndex); } return DEFAULT_COLUMN_IDENTIFIER; }
/** * This is a quickfix for #55-swingx: NPE if sorter is in pipeline. * No way to automatically cleanup "from the outside" if the sorter * is hooked to a columnIndex which is no longer valid. So we check here * for assigned and valid index.<p> * * PENDING: should be done higher up? * * @return boolean to indicate whether accessing the values is valid. */ protected boolean canFilter() { return adapter != null && (getColumnIndex() < adapter.getColumnCount()); }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param adapter * @return */ private boolean test(ComponentAdapter adapter) { // single test column if (testColumn >= 0) return testColumn(adapter, testColumn); // test all for (int column = 0; column < adapter.getColumnCount(); column++) { boolean result = testColumn(adapter, column); if (result) return true; } return false; }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param adapter * @return */ private boolean test(ComponentAdapter adapter) { // single test column if (testColumn >= 0) return testColumn(adapter, testColumn); // test all for (int column = 0; column < adapter.getColumnCount(); column++) { boolean result = testColumn(adapter, column); if (result) return true; } return false; }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param adapter * @return */ private boolean test(ComponentAdapter adapter) { // single test column if (testColumn >= 0) return testColumn(adapter, testColumn); // test all for (int column = 0; column < adapter.getColumnCount(); column++) { boolean result = testColumn(adapter, column); if (result) return true; } return false; }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param adapter * @return */ private boolean test(ComponentAdapter adapter) { // single test column if (testColumn >= 0) return testColumn(adapter, testColumn); // test all for (int column = 0; column < adapter.getColumnCount(); column++) { boolean result = testColumn(adapter, column); if (result) return true; } return false; }