Changeset 11028
- Timestamp:
- 2006-01-12T11:21:19+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java
r10237 r11028 68 68 private JPanel central_pane = null; 69 69 /** The field for entering custom arguments. */ 70 private JTextField custom = null;70 //private JTextField custom = null; 71 71 /** The panel for the custom arguments */ 72 private JPanel custom_pane = null;72 //private JPanel custom_pane = null; 73 73 /** The name of the owner of the last argument control. */ 74 74 private String previous_owner = null; … … 98 98 JPanel content_pane = (JPanel) getContentPane(); 99 99 100 custom_pane = new JPanel();101 String custom_str = data.getCustom();102 if (custom_str != null) {103 custom = new JTextField(custom_str);104 }105 else {106 custom = new JTextField();107 }108 JLabel custom_label = new JLabel();109 custom_label.setPreferredSize(LABEL_SIZE);110 Dictionary.setText(custom_label, "CDM.ArgumentConfiguration.Custom");100 // custom_pane = new JPanel(); 101 // String custom_str = data.getCustom(); 102 // if (custom_str != null) { 103 // custom = new JTextField(custom_str); 104 // } 105 // else { 106 // custom = new JTextField(); 107 // } 108 // JLabel custom_label = new JLabel(); 109 // custom_label.setPreferredSize(LABEL_SIZE); 110 // Dictionary.setText(custom_label, "CDM.ArgumentConfiguration.Custom"); 111 111 112 112 JPanel header_pane = new JPanel(); … … 132 132 133 133 // Layout 134 custom_pane.setLayout(new BorderLayout());135 custom_pane.add(custom_label, BorderLayout.WEST);136 custom_pane.add(custom, BorderLayout.CENTER);134 // custom_pane.setLayout(new BorderLayout()); 135 // custom_pane.add(custom_label, BorderLayout.WEST); 136 // custom_pane.add(custom, BorderLayout.CENTER); 137 137 138 138 button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); … … 168 168 if (event.getSource() == ok) { 169 169 // Clear the current focus to ensure components such as combobox have correctly updated 170 custom.requestFocus();170 //custom.requestFocus(); 171 171 // Update the details stored in the data objects arguments. 172 data.setCustom(custom.getText());172 //data.setCustom(custom.getText()); 173 173 // Loop through each of the controls in the central pane, updating the matching argument as necessary. 174 174 for(int i = 0; i < central_pane.getComponentCount(); i++) { … … 191 191 cancel = null; 192 192 central_pane = null; 193 custom_pane = null;194 custom = null;193 //custom_pane = null; 194 //custom = null; 195 195 data = null; 196 196 ok = null; … … 243 243 } 244 244 // now add in the custom args bit 245 coloured = !coloured;246 Color color = (coloured ? Configuration.getColor("coloring.collection_heading_background", false) : Configuration.getColor("coloring.collection_tree_background", false));247 addHeader(Dictionary.get("CDM.ArgumentConfiguration.Custom_Header"), color);248 custom_pane.setBackground(color);249 central_pane.add(custom_pane);245 // coloured = !coloured; 246 // Color color = (coloured ? Configuration.getColor("coloring.collection_heading_background", false) : Configuration.getColor("coloring.collection_tree_background", false)); 247 // addHeader(Dictionary.get("CDM.ArgumentConfiguration.Custom_Header"), color); 248 // custom_pane.setBackground(color); 249 // central_pane.add(custom_pane); 250 250 if(total_height > 0) { 251 251 JPanel filler = new JPanel();
Note:
See TracChangeset
for help on using the changeset viewer.