/** * applies the memory hack for renderers of type DefaultTableCellRenderer, * does nothing for other types. * @param renderer the component to highlight * @param adapter the renderee's component state. */ @Override public Component highlight(Component renderer, ComponentAdapter adapter) { //JW // table renderers have different state memory as list/tree renderers // without the null they don't unstamp! // but... null has adversory effect on JXList f.i. - selection // color is changed. This is related to #178-swingx: // highlighter background computation is weird. // if (renderer instanceof DefaultTableCellRenderer) { return super.highlight(renderer, adapter); } return renderer; }
/** * applies the memory hack for renderers of type DefaultTableCellRenderer, * does nothing for other types. * @param renderer the component to highlight * @param adapter the renderee's component state. */ @Override public Component highlight(Component renderer, ComponentAdapter adapter) { //JW // table renderers have different state memory as list/tree renderers // without the null they don't unstamp! // but... null has adversory effect on JXList f.i. - selection // color is changed. This is related to #178-swingx: // highlighter background computation is weird. // if (renderer instanceof DefaultTableCellRenderer) { return super.highlight(renderer, adapter); } return renderer; }
/** * applies the memory hack for renderers of type DefaultTableCellRenderer, * does nothing for other types. * @param renderer the component to highlight * @param adapter the renderee's component state. */ @Override public Component highlight(Component renderer, ComponentAdapter adapter) { //JW // table renderers have different state memory as list/tree renderers // without the null they don't unstamp! // but... null has adversory effect on JXList f.i. - selection // color is changed. This is related to #178-swingx: // highlighter background computation is weird. // if (renderer instanceof DefaultTableCellRenderer) { return super.highlight(renderer, adapter); } return renderer; }
/** * applies the memory hack for renderers of type DefaultTableCellRenderer, * does nothing for other types. * @param renderer the component to highlight * @param adapter the renderee's component state. */ @Override public Component highlight(Component renderer, ComponentAdapter adapter) { //JW // table renderers have different state memory as list/tree renderers // without the null they don't unstamp! // but... null has adversory effect on JXList f.i. - selection // color is changed. This is related to #178-swingx: // highlighter background computation is weird. // if (renderer instanceof DefaultTableCellRenderer) { return super.highlight(renderer, adapter); } return renderer; }
/** * applies the memory hack for renderers of type DefaultTableCellRenderer, * does nothing for other types. * @param renderer the component to highlight * @param adapter the renderee's component state. */ @Override public Component highlight(Component renderer, ComponentAdapter adapter) { //JW // table renderers have different state memory as list/tree renderers // without the null they don't unstamp! // but... null has adversory effect on JXList f.i. - selection // color is changed. This is related to #178-swingx: // highlighter background computation is weird. // if (renderer instanceof DefaultTableCellRenderer) { return super.highlight(renderer, adapter); } return renderer; }
@Override public Component highlight(Component component, ComponentAdapter adapter) { if (adapter.getValue() instanceof String) { final String str = (String) adapter.getValue(); switch (str) { case LabelUtils.NULL_LABEL: return _nullHighlighter.highlight(component, adapter); case LabelUtils.BLANK_LABEL: return _blankHighlighter.highlight(component, adapter); case FillPatternAnalyzer.FILLED_LABEL: return _filledHighlighter.highlight(component, adapter); default: return _normalHighlighter.highlight(component, adapter); } } return component; }
@Override public Component highlight(Component component, ComponentAdapter adapter) { if (adapter.getValue() instanceof String) { final String str = (String) adapter.getValue(); switch (str) { case LabelUtils.NULL_LABEL: return _nullHighlighter.highlight(component, adapter); case LabelUtils.BLANK_LABEL: return _blankHighlighter.highlight(component, adapter); case FillPatternAnalyzer.FILLED_LABEL: return _filledHighlighter.highlight(component, adapter); default: return _normalHighlighter.highlight(component, adapter); } } return component; }
public Component highlight(final Component component, final ComponentAdapter adapter) { if (_evaluatedColumnsPredicate.isHighlighted(component, adapter)) { return _colorHighlighter.highlight(component, adapter); } return component; }