1 | void updateComponents(boolean b) {↵ | | 1 | void updateComponents(boolean b) {↵
|
2 | super.updateComponents(b);↵ | | 2 | super.updateComponents(b);↵
|
|
3 | if (b) {↵ | | 3 | if (b) {↵
|
4 | matchComboBox.setSelectedItem(criteria.getCriteriaString());↵ | | 4 | matchComboBox.setSelectedItem(criteria.getCriteriaString());↵
|
|
5 | String priority = criteria.getPatternString();↵ | | 5 | String flag = criteria.getPatternString();↵
|
6 | priorityComboBox.setSelectedItem(priority);↵ | | 6 | flagsComboBox.setSelectedItem(flag);↵
|
7 | } else {↵ | | 7 | } else {↵
|
8 | criteria↵ | | 8 | criteria↵
|
9 | .setCriteriaString((String) matchComboBox.getSelectedItem());↵ | | 9 | .setCriteriaString((String) matchComboBox.getSelectedItem());↵
|
10 | criteria.setPatternString((String) priorityComboBox↵ | | 10 | criteria.setPatternString((String) flagsComboBox↵
|
11 | .getSelectedItem());↵ | | 11 | .getSelectedItem());↵
|
12 | }↵ | | 12 | }↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void initComponents() {↵ | | 14 | public void initComponents() {↵
|
15 | super.initComponents();↵ | | 15 | super.initComponents();↵
|
|
16 | matchComboBox = new JComboBox();↵ | | 16 | matchComboBox = new JComboBox();↵
|
17 | matchComboBox.addItem("is");↵ | | 17 | matchComboBox.addItem("is");↵
|
18 | matchComboBox.addItem("is not");↵ | | 18 | matchComboBox.addItem("is not");↵
|
|
19 | addComponent(matchComboBox);↵ | | 19 | addComponent(matchComboBox);↵
|
|
20 | priorityComboBox = new JComboBox();↵ | | 20 | flagsComboBox = new JComboBox();↵
|
21 | priorityComboBox.addItem("Highest");↵ | | 21 | flagsComboBox.addItem("↵
|
22 | priorityComboBox.addItem("High");↵ | | |
|
23 | priorityComboBox.addItem("Normal");↵ | | |
|
24 | priority↵ | | 22 | Answered");↵
|
| | | 23 | flagsComboBox.addItem("Deleted");↵
|
| | | 24 | flagsComboBox.addItem("Flagged");↵
|
25 | ComboBox.addItem("Low");↵ | | 25 | flagsComboBox.addItem("↵
|
26 | priority↵ | | 26 | Recent");↵
|
27 | ComboBox.addItem("Lowest"); | | 27 | flagsComboBox.addItem("Draft");
|