/** * @param adapter * @param testColumn * @return */ private boolean testColumn(ComponentAdapter adapter, int testColumn) { if (!adapter.isTestable(testColumn)) return false; String value = adapter.getString(testColumn); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * @param adapter * @param testColumn * @return */ private boolean testColumn(ComponentAdapter adapter, int testColumn) { if (!adapter.isTestable(testColumn)) return false; String value = adapter.getString(testColumn); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * @param adapter * @param testColumn * @return */ private boolean testColumn(ComponentAdapter adapter, int testColumn) { if (!adapter.isTestable(testColumn)) return false; String value = adapter.getString(testColumn); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * @param adapter * @param testColumn * @return */ private boolean testColumn(ComponentAdapter adapter, int testColumn) { if (!adapter.isTestable(testColumn)) return false; String value = adapter.getString(testColumn); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param renderer * @param adapter * @return */ private boolean test(Component renderer, ComponentAdapter adapter) { // PENDING JW: why convert here? we are focused on the adapter's cell // looks like an oversight as of ol' days ;-) int columnToTest = adapter.convertColumnIndexToModel(adapter.column); String value = adapter.getString(columnToTest); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * Returns the String representation of 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. <p> * * This implementation messages the StringValue.TO_STRING with the getValue, * subclasses should re-implement and use the API appropriate for the target component type. * * @return the String representation of value of the cell identified by this adapter * @see #getValueAt(int, int) * @see #getFilteredValueAt(int, int) * @see #getValue(int) */ public String getString() { return getString(convertColumnIndexToModel(column)); }
/** * Returns the String representation of 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. <p> * * This implementation messages the StringValue.TO_STRING with the getValue, * subclasses should re-implement and use the API appropriate for the target component type. * * @return the String representation of value of the cell identified by this adapter * @see #getValueAt(int, int) * @see #getFilteredValueAt(int, int) * @see #getValue(int) */ public String getString() { return getString(convertColumnIndexToModel(column)); }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param renderer * @param adapter * @return */ private boolean test(Component renderer, ComponentAdapter adapter) { // PENDING JW: why convert here? we are focused on the adapter's cell // looks like an oversight as of ol' days ;-) int columnToTest = adapter.convertColumnIndexToModel(adapter.column); String value = adapter.getString(columnToTest); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param renderer * @param adapter * @return */ private boolean test(Component renderer, ComponentAdapter adapter) { // PENDING JW: why convert here? we are focused on the adapter's cell // looks like an oversight as of ol' days ;-) int columnToTest = adapter.convertColumnIndexToModel(adapter.column); String value = adapter.getString(columnToTest); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param renderer * @param adapter * @return */ private boolean test(Component renderer, ComponentAdapter adapter) { // PENDING JW: why convert here? we are focused on the adapter's cell // looks like an oversight as of ol' days ;-) int columnToTest = adapter.convertColumnIndexToModel(adapter.column); String value = adapter.getString(columnToTest); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); }
/** * Returns the String representation of 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. <p> * * This implementation messages the StringValue.TO_STRING with the getValue, * subclasses should re-implement and use the API appropriate for the target component type. * * @return the String representation of value of the cell identified by this adapter * @see #getValueAt(int, int) * @see #getFilteredValueAt(int, int) * @see #getValue(int) */ public String getString() { return getString(convertColumnIndexToModel(column)); }
/** * Returns the String representation of 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. <p> * * This implementation messages the StringValue.TO_STRING with the getValue, * subclasses should re-implement and use the API appropriate for the target component type. * * @return the String representation of value of the cell identified by this adapter * @see #getValueAt(int, int) * @see #getFilteredValueAt(int, int) * @see #getValue(int) */ public String getString() { return getString(convertColumnIndexToModel(column)); }
/** * Test the value. This is called only if the * pre-check returned true, because accessing the * value might be potentially costly * @param renderer * @param adapter * @return */ private boolean test(Component renderer, ComponentAdapter adapter) { if (!adapter.isTestable(testColumn)) return false; String value = adapter.getString(testColumn); if ((value == null) || (value.length() == 0)) { return false; } return pattern.matcher(value).find(); // this is pre-767-swingx: consistent string api // Object value = adapter.getValue(testColumn); // // if (value == null) { // return false; // } else { // return pattern.matcher(value.toString()).find(); // } }
/** * {@inheritDoc} */ @Override protected Component doHighlight(Component component, ComponentAdapter adapter) { String toolTipText = null; if (toolTipValue == null) { toolTipText = adapter.getString(); } else { toolTipText = toolTipValue.getString(adapter.getValue()); } ((JComponent) component).setToolTipText(toolTipText); return component; } }
/** * {@inheritDoc} */ @Override protected Component doHighlight(Component component, ComponentAdapter adapter) { String toolTipText = null; if (toolTipValue == null) { toolTipText = adapter.getString(); } else { toolTipText = toolTipValue.getString(adapter.getValue()); } ((JComponent) component).setToolTipText(toolTipText); return component; } }
/** * {@inheritDoc} */ @Override protected Component doHighlight(Component component, ComponentAdapter adapter) { String toolTipText = null; if (toolTipValue == null) { toolTipText = adapter.getString(); } else { toolTipText = toolTipValue.getString(adapter.getValue()); } ((JComponent) component).setToolTipText(toolTipText); return component; } }
/** * {@inheritDoc} */ @Override protected Component doHighlight(Component component, ComponentAdapter adapter) { String toolTipText = null; if (toolTipValue == null) { toolTipText = adapter.getString(); } else { toolTipText = toolTipValue.getString(adapter.getValue()); } ((JComponent) component).setToolTipText(toolTipText); return component; } }
@Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { JComponent c = renderer instanceof JComponent ? (JComponent) renderer : null; String text = adapter.getString(); Icon icon = null;
@Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { JComponent c = renderer instanceof JComponent ? (JComponent) renderer : null; String text = adapter.getString(); Icon icon = null;
@Override public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { JComponent c = renderer instanceof JComponent ? (JComponent) renderer : null; String text = adapter.getString(); Icon icon = null;