File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/util/ActionComboBoxRenderer.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/util/CriteriaComboBoxRenderer.java
|
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
|
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
Number of AST nodes: 10
|
|
Number of AST nodes: 10
|
|
1 | if (cellHasFocus) {↵ | | 1 | if (isSelected) {↵
|
2 | setBackground(list.getSelectionBackground());↵ | | 2 | setBackground(list.getSelectionBackground());↵
|
3 | setForeground(list.getSelectionForeground());↵ | | 3 | setForeground(list.getSelectionForeground());↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | setBackground(list.getBackground());↵ | | 5 | setBackground(list.getBackground());↵
|
6 | setForeground(list.getForeground());↵ | | 6 | setForeground(list.getForeground());↵
|
7 | }↵ | | 7 | }↵
|
|
8 | setBorder((cellHasFocus) ? UIManager↵ | | 8 | setBorder((cellHasFocus) ? UIManager↵
|
9 | .getBorder("List.focusCellHighlightBorder") : noFocusBorder);↵ | | 9 | .getBorder("List.focusCellHighlightBorder") : noFocusBorder);↵
|
|
10 | // id = org.columba.example.HelloWorld$HelloWorldPlugin↵ | | 10 | // id = org.columba.example.HelloWorld$HelloWorldPlugin↵
|
11 | String id = (String) value;↵ | | 11 | String id = (String) value;↵
|
|
12 | //String userVisibleName = pluginHandler.getUserVisibleName(id);↵ | | 12 | // String userVisibleName = pluginHandler.getUserVisibleName(id);↵
|
13 | String userVisibleName = id;↵ | | 13 | String userVisibleName = id;↵
|
|
14 | setText(userVisibleName);↵ | | 14 | setText(userVisibleName);↵
|
|
15 | return this; | | 15 | return this;
|