/** * A quick pre-check. * @param adapter * * @return */ private boolean isHighlightCandidate(ComponentAdapter adapter) { return (pattern != null) && ((highlightColumn < 0) || (highlightColumn == adapter.convertColumnIndexToModel(adapter.column))); }
/** * A quick pre-check. * @param adapter * * @return */ private boolean isHighlightCandidate(ComponentAdapter adapter) { return (pattern != null) && ((highlightColumn < 0) || (highlightColumn == adapter.convertColumnIndexToModel(adapter.column))); }
/** * A quick pre-check. * @param adapter * * @return */ private boolean isHighlightCandidate(ComponentAdapter adapter) { return (pattern != null) && ((highlightColumn < 0) || (highlightColumn == adapter.convertColumnIndexToModel(adapter.column))); }
/** * A quick pre-check. * @param adapter * * @return */ private boolean isHighlightCandidate(ComponentAdapter adapter) { return (pattern != null) && ((highlightColumn < 0) || (highlightColumn == adapter.convertColumnIndexToModel(adapter.column))); }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); return columnList.contains(modelIndex); }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); return columnList.contains(modelIndex); }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); return columnList.contains(modelIndex); }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); return columnList.contains(modelIndex); }
/** * Returns the common class of all data in the current column.<p> * * This implementation delegates to getColumnClass(int) with the current * column converted to model coordinates. * * @return the common class of all data in the current column. * @see #getColumnClass(int) */ public Class<?> getColumnClass() { return getColumnClass(convertColumnIndexToModel(column)); }
/** * Returns the common class of all data in the current column.<p> * * This implementation delegates to getColumnClass(int) with the current * column converted to model coordinates. * * @return the common class of all data in the current column. * @see #getColumnClass(int) */ public Class<?> getColumnClass() { return getColumnClass(convertColumnIndexToModel(column)); }
/** * Returns the common class of all data in the current column.<p> * * This implementation delegates to getColumnClass(int) with the current * column converted to model coordinates. * * @return the common class of all data in the current column. * @see #getColumnClass(int) */ public Class<?> getColumnClass() { return getColumnClass(convertColumnIndexToModel(column)); }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); Object identifier = adapter.getColumnIdentifierAt(modelIndex); return identifier != null ? columnList.contains(identifier) : false; }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); Object identifier = adapter.getColumnIdentifierAt(modelIndex); return identifier != null ? columnList.contains(identifier) : false; }
/** * Returns the common class of all data in the current column.<p> * * This implementation delegates to getColumnClass(int) with the current * column converted to model coordinates. * * @return the common class of all data in the current column. * @see #getColumnClass(int) */ public Class<?> getColumnClass() { return getColumnClass(convertColumnIndexToModel(column)); }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); Object identifier = adapter.getColumnIdentifierAt(modelIndex); return identifier != null ? columnList.contains(identifier) : false; }
/** * {@inheritDoc} * * This implementation returns true if the adapter's column * is contained in this predicates list. * */ @Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { int modelIndex = adapter.convertColumnIndexToModel(adapter.column); Object identifier = adapter.getColumnIdentifierAt(modelIndex); return identifier != null ? columnList.contains(identifier) : false; }
/** * A quick pre-check. * * @param renderer * @param adapter * @return */ private boolean isHighlightCandidate(Component renderer, ComponentAdapter adapter) { if (!isEnabled()) return false; if (highlightRow >= 0 && (adapter.row != highlightRow)) { return false; } return ((highlightColumn < 0) || (highlightColumn == adapter.convertColumnIndexToModel(adapter.column))); }
/** * A quick pre-check. * * @param renderer * @param adapter * @return */ private boolean isHighlightCandidate(Component renderer, ComponentAdapter adapter) { if (!isEnabled()) return false; if (highlightRow >= 0 && (adapter.row != highlightRow)) { return false; } return ((highlightColumn < 0) || (highlightColumn == adapter.convertColumnIndexToModel(adapter.column))); }
/** * A quick pre-check. * * @param renderer * @param adapter * @return */ private boolean isHighlightCandidate(Component renderer, ComponentAdapter adapter) { if (!isEnabled()) return false; if (highlightRow >= 0 && (adapter.row != highlightRow)) { return false; } return ((highlightColumn < 0) || (highlightColumn == adapter.convertColumnIndexToModel(adapter.column))); }
@Override protected void applyBackground(Component renderer, ComponentAdapter adapter ) { super.applyBackground(renderer, adapter); int columnIndex = adapter.convertColumnIndexToModel(adapter.column); if (this.tableModel.isFirstSampleColumn(columnIndex) && renderer instanceof JComponent ) { ((JComponent) renderer) .setBorder(createMatteBorder(0, borderSize, 0, 0, BLACK)); } } }