/** * {@inheritDoc} * * This calls doHighlight to apply the decoration if both HighlightPredicate * isHighlighted and canHighlight return true. Returns the undecorated component otherwise. * * @param component the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation * * @see #canHighlight(Component, ComponentAdapter) * @see #doHighlight(Component, ComponentAdapter) * @see #getHighlightPredicate() */ @Override public Component highlight(Component component, ComponentAdapter adapter) { if (canHighlight(component, adapter) && getHighlightPredicate().isHighlighted(component, adapter)) { component = doHighlight(component, adapter); } return component; }
/** * {@inheritDoc} * * This calls doHighlight to apply the decoration if both HighlightPredicate * isHighlighted and canHighlight return true. Returns the undecorated component otherwise. * * @param component the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation * * @see #canHighlight(Component, ComponentAdapter) * @see #doHighlight(Component, ComponentAdapter) * @see #getHighlightPredicate() */ public Component highlight(Component component, ComponentAdapter adapter) { if (canHighlight(component, adapter) && getHighlightPredicate().isHighlighted(component, adapter)) { component = doHighlight(component, adapter); } return component; }
/** * {@inheritDoc} * * This calls doHighlight to apply the decoration if both HighlightPredicate * isHighlighted and canHighlight return true. Returns the undecorated component otherwise. * * @param component the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation * * @see #canHighlight(Component, ComponentAdapter) * @see #doHighlight(Component, ComponentAdapter) * @see #getHighlightPredicate() */ @Override public Component highlight(Component component, ComponentAdapter adapter) { if (canHighlight(component, adapter) && getHighlightPredicate().isHighlighted(component, adapter)) { component = doHighlight(component, adapter); } return component; }
/** * {@inheritDoc} * * This calls doHighlight to apply the decoration if both HighlightPredicate * isHighlighted and canHighlight return true. Returns the undecorated component otherwise. * * @param component the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation * * @see #canHighlight(Component, ComponentAdapter) * @see #doHighlight(Component, ComponentAdapter) * @see #getHighlightPredicate() */ @Override public Component highlight(Component component, ComponentAdapter adapter) { if (canHighlight(component, adapter) && getHighlightPredicate().isHighlighted(component, adapter)) { component = doHighlight(component, adapter); } return component; }
/** * {@inheritDoc} * * This calls doHighlight to apply the decoration if both HighlightPredicate * isHighlighted and canHighlight return true. Returns the undecorated component otherwise. * * @param component the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation * * @see #canHighlight(Component, ComponentAdapter) * @see #doHighlight(Component, ComponentAdapter) * @see #getHighlightPredicate() */ @Override public Component highlight(Component component, ComponentAdapter adapter) { if (canHighlight(component, adapter) && getHighlightPredicate().isHighlighted(component, adapter)) { component = doHighlight(component, adapter); } return component; }