Changeset 13195
- Timestamp:
- 2006-10-30T15:39:10+13:00 (18 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r12841 r13195 295 295 ClassifierComboboxListener ccl = new ClassifierComboboxListener(); 296 296 classifier_combobox = new JComboBox(getAvailableClassifiers()); 297 classifier_combobox.setOpaque(!Utility.isMac()); 297 298 classifier_combobox.setEditable(false); 298 299 if(classifier_combobox.getItemCount() > 0) { … … 304 305 305 306 classifier_list = new JList(model); 307 classifier_list.setOpaque(true); 306 308 classifier_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 307 309 JLabel classifier_list_label = new JLabel(Dictionary.get("CDM.ClassifierManager.Assigned")); -
trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java
r13194 r13195 42 42 import org.greenstone.gatherer.metadata.MetadataSetManager; 43 43 import org.greenstone.gatherer.util.StaticStrings; 44 import org.greenstone.gatherer.util.Utility; 44 45 import org.w3c.dom.*; 45 46 … … 299 300 300 301 feature_combobox = new JComboBox(feature_model.toArray()); 302 feature_combobox.setOpaque(!Utility.isMac()); 301 303 feature_combobox.setPreferredSize(FIELD_SIZE); 302 304 feature_combobox.setEditable(false); … … 306 308 JLabel part_label = new JLabel(Dictionary.get("CDM.FormatManager.Part")); 307 309 part_combobox = new JComboBox(part_model.toArray()); 310 part_combobox.setOpaque(!Utility.isMac()); 308 311 part_combobox.setPreferredSize(FIELD_SIZE); 309 312 part_combobox.setEditable(false); … … 334 337 335 338 variable_combobox = new JComboBox(variable_model.toArray()); 339 variable_combobox.setOpaque(!Utility.isMac()); 336 340 variable_combobox.setToolTipText(Dictionary.get("CDM.FormatManager.Variable_Tooltip")); 337 341 -
trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java
r13057 r13195 770 770 JLabel level_label = new JLabel(Dictionary.get("CDM.IndexManager.Level")); 771 771 level_combobox = new JComboBox(); 772 level_combobox.setOpaque(false); 772 773 level_combobox.setPreferredSize(FIELD_SIZE); 773 774 // Note the order of these must be the same as the -
trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java
r12808 r13195 314 314 315 315 language_metadata_combo = new JComboBox(MetadataSetManager.getEveryMetadataSetElement().toArray()); 316 language_metadata_combo.setOpaque(false); 316 317 language_metadata_combo.setToolTipText(Dictionary.get("CDM.LanguageManager.LanguageMetadata_Tooltip")); 317 318 JLabel language_metadata_label = new JLabel(Dictionary.get("CDM.LanguageManager.LanguageMetadata")); -
trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java
r13182 r13195 453 453 PluginComboboxListener picl = new PluginComboboxListener(); 454 454 plugin_combobox = new JComboBox(getAvailablePlugins()); 455 plugin_combobox.setOpaque(!Utility.isMac()); 455 456 plugin_combobox.setEditable(false); 456 457 picl.itemStateChanged(new ItemEvent(plugin_combobox, 0, null, ItemEvent.SELECTED)); … … 459 460 460 461 plugin_list = new JList(model); 462 plugin_list.setOpaque(true); 461 463 plugin_list.setCellRenderer(new ListRenderer()); 462 464 plugin_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); … … 467 469 plugin_list_pane = new JPanel(); 468 470 plugin_pane = new JPanel(); 471 plugin_pane.setOpaque(true); 469 472 470 473 remove = new GLIButton(Dictionary.get("CDM.PlugInManager.Remove"), Dictionary.get("CDM.PlugInManager.Remove_Tooltip")); -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java
r12808 r13195 226 226 source_model.add(0, StaticStrings.FILENAME_STR); 227 227 source_combobox = new JComboBox(source_model); 228 source_combobox.setOpaque(false); 228 229 source_combobox.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Source_Tooltip")); 229 230 -
trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java
r13049 r13195 40 40 import org.greenstone.gatherer.gui.GLIButton; 41 41 import org.greenstone.gatherer.util.StaticStrings; 42 42 import org.greenstone.gatherer.util.Utility; 43 43 44 44 /** This class provides a graphical interface to allow a user to quickly and conviently (ie all in one place) translate the text fragments associated with general metadata and indexes into each of the assigned languages in the collection. It should provide clear controls for the editing of these text fragments, plus clear indicate what languages still need further translation, which it will do through a combination of coloring and other visual indicators. … … 236 236 237 237 language_combobox = new JComboBox(CollectionDesignManager.language_manager.getLanguageCodes().toArray()); 238 language_combobox.setOpaque(!Utility.isMac()); 238 239 language_combobox.setPreferredSize(COMPONENT_SIZE); 239 240 language_combobox.setRenderer(new LanguageListCellRenderer()); -
trunk/gli/src/org/greenstone/gatherer/feedback/FeedbackInterface.java
r11624 r13195 379 379 messages.getString("Other")}; 380 380 problem_type = new JComboBox(type); 381 problem_type.setOpaque(false); 381 382 problem_type.addActionListener(this); 382 383 problem_type.setBackground(bckcolor); … … 393 394 messages.getString("Trivial")}; 394 395 problem_urgency = new JComboBox(urgent); 396 problem_urgency.setOpaque(false); 395 397 problem_urgency.addActionListener(this); 396 398 problem_urgency.setBackground(bckcolor); -
trunk/gli/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r13076 r13195 185 185 186 186 saveas_combobox = new JComboBox(saveas_formats.toArray()); 187 saveas_combobox.setOpaque(false); 187 188 saveas_combobox.setToolTipText(Dictionary.get("ExportAsPrompt.SaveAs_Tooltip")); 188 189 -
trunk/gli/src/org/greenstone/gatherer/gui/GComboBox.java
r12823 r13195 42 42 import javax.swing.plaf.basic.*; 43 43 import org.greenstone.gatherer.Configuration; 44 import org.greenstone.gatherer.util.Utility; 44 45 45 46 /** … … 62 63 super(); 63 64 init(); 65 setOpaque(!Utility.isMac()); 64 66 } 65 67 66 68 public GComboBox(boolean editable) { 67 69 super(); 68 setEditable(editable); 69 init(); 70 setOpaque(!Utility.isMac()); 71 setEditable(editable); 72 init(); 73 70 74 } 71 75 72 76 public GComboBox(ArrayList data) { 73 77 super(data.toArray()); 78 setOpaque(!Utility.isMac()); 74 79 init(); 75 80 } … … 77 82 public GComboBox(ArrayList data, boolean editable) { 78 83 super(data.toArray()); 84 setOpaque(!Utility.isMac()); 79 85 setEditable(editable); 80 86 init(); … … 83 89 public GComboBox(ArrayList data, boolean editable, boolean sorted) { 84 90 super(data.toArray()); 91 setOpaque(!Utility.isMac()); 85 92 setEditable(editable); 86 93 setSorted(sorted); … … 90 97 public GComboBox(ComboBoxModel model) { 91 98 super(model); 99 setOpaque(!Utility.isMac()); 92 100 init(); 93 101 } … … 95 103 public GComboBox(ComboBoxModel model, boolean editable) { 96 104 super(model); 105 setOpaque(!Utility.isMac()); 97 106 setEditable(editable); 98 107 init(); … … 101 110 public GComboBox(Object data[]) { 102 111 super(data); 112 setOpaque(!Utility.isMac()); 103 113 init(); 104 114 } … … 106 116 public GComboBox(Object data[], boolean editable) { 107 117 super(data); 118 setOpaque(!Utility.isMac()); 108 119 setEditable(editable); 109 120 init(); … … 112 123 public GComboBox(Object data[], boolean editable, boolean sorted) { 113 124 super(data); 125 setOpaque(!Utility.isMac()); 114 126 setEditable(editable); 115 127 setSorted(sorted); … … 119 131 public GComboBox(Vector data) { 120 132 super(data); 133 setOpaque(!Utility.isMac()); 121 134 init(); 122 135 } … … 124 137 public GComboBox(Vector data, boolean editable) { 125 138 super(data); 139 setOpaque(!Utility.isMac()); 126 140 setEditable(editable); 127 141 init(); -
trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java
r12300 r13195 143 143 JLabel base_collection_label = new JLabel(Dictionary.get("NewCollectionPrompt.Base_Collection")); 144 144 base_collection = new JComboBox(base_collection_model); 145 base_collection.setOpaque(false); 145 146 base_collection.setToolTipText(Dictionary.get("NewCollectionPrompt.Base_Collection_Tooltip")); 146 147 … … 333 334 title_final = title.getText(); 334 335 if(title_final.length() == 0) { 335 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE); 336 JOptionPane jOptionPane=new JOptionPane(); 337 jOptionPane.setOpaque(!Utility.isMac()); 338 jOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE); 336 339 return; 337 340 } … … 339 342 else { 340 343 if(titleClashes(title_final, null)) { 341 if (JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) { 344 JOptionPane jOptionPane=new JOptionPane(); 345 jOptionPane.setOpaque(!Utility.isMac()); 346 if (jOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) { 342 347 return; 343 348 } -
trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java
r12745 r13195 230 230 // what should we do if Gatherer.servlet_config.getSites() is null? 231 231 site_combobox = new JComboBox(Gatherer.servlet_config.getSites().toArray()); 232 site_combobox.setOpaque(false); 232 233 site_combobox.setToolTipText(Dictionary.get("Preferences.Connection.Site_Tooltip")); 233 234 … … 237 238 servlet_label.setPreferredSize(LABEL_SIZE); 238 239 servlet_combobox = new JComboBox(); 240 servlet_combobox.setOpaque(false); 239 241 // try to locate and select the current site 240 242 String this_site = Configuration.site_name; … … 424 426 425 427 language_combobox = new JComboBox(dictionary_model.toArray()); 428 language_combobox.setOpaque(false); 426 429 language_combobox.setToolTipText(Dictionary.get("Preferences.General.Interface_Language_Tooltip")); 427 430 … … 598 601 JLabel predefined_label = new JLabel(Dictionary.get("Preferences.Workflow.Predefined.Label")); 599 602 JComboBox predefined_combobox = new JComboBox(predefined); 600 603 predefined_combobox.setOpaque(false); 601 604 // Connection 602 605 predefined_combobox.addActionListener(new PredefinedActionListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java
r12115 r13195 125 125 JLabel value_label = new JLabel(Dictionary.get("Autofilter.eqeq")); 126 126 value = new JComboBox(); 127 value.setOpaque(false); 127 128 value.setEditable(false); 128 129 JPanel custom_pane = new JPanel(); … … 130 131 JPanel first_pane = new JPanel(); 131 132 first_method = new JComboBox(); 133 first_method.setOpaque(false); 132 134 first_value = new JComboBox(); 135 first_value.setOpaque(false); 133 136 first_value.setEditable(true); 134 137 first_value.addItem(""); … … 151 154 JPanel second_pane = new JPanel(); 152 155 second_method = new JComboBox(); 156 second_method.setOpaque(false); 153 157 second_method.setEnabled(false); 154 158 second_value = new JComboBox(); 159 second_value.setOpaque(false); 155 160 second_value.setEditable(true); 156 161 second_value.setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.