static Color getForegroundFor(HtmlRendererImpl r) { if (r.isSelected() && !r.isParentFocused() && !isGTK() && !isNimbus()) { return getUnfocusedSelectionForeground(); } if (!r.isEnabled()) { return UIManager.getColor("textInactiveText"); //NOI18N } Color result = null; if (r.isSelected()) { switch (r.getType()) { case LIST: result = UIManager.getColor("List.selectionForeground"); //NOI18N break; case TABLE: result = UIManager.getColor("Table.selectionForeground"); //NOI18N break; case TREE: result = UIManager.getColor("Tree.selectionForeground"); //NOI18N } } return (result == null) ? r.getForeground() : result; }
static Color getForegroundFor (HtmlRendererImpl r) { if (r.isSelected() && !r.isParentFocused()) { return getUnfocusedSelectionForeground(); } if (!r.isEnabled()) { return UIManager.getColor ("textInactiveText"); //NOI18N } Color result = null; if (r.isSelected()) { switch (r.getType()) { case HtmlRendererImpl.TYPE_LIST : result = UIManager.getColor ("List.selectionForeground"); //NOI18N case HtmlRendererImpl.TYPE_TABLE : result = UIManager.getColor ("Table.selectionForeground"); //NOI18N case HtmlRendererImpl.TYPE_TREE : result = UIManager.getColor ("Tree.selectionForeground"); //NOI18N } } return result == null ? r.getForeground() : result; }
static Color getForegroundFor (HtmlRendererImpl r) { if (r.isSelected() && !r.isParentFocused()) { return getUnfocusedSelectionForeground(); } if (!r.isEnabled()) { return UIManager.getColor ("textInactiveText"); //NOI18N } Color result = null; if (r.isSelected()) { switch (r.getType()) { case HtmlRendererImpl.TYPE_LIST : result = UIManager.getColor ("List.selectionForeground"); //NOI18N case HtmlRendererImpl.TYPE_TABLE : result = UIManager.getColor ("Table.selectionForeground"); //NOI18N case HtmlRendererImpl.TYPE_TREE : result = UIManager.getColor ("Tree.selectionForeground"); //NOI18N } } return result == null ? r.getForeground() : result; }