Changeset 6318 for trunk/gli/src/org/greenstone/gatherer/cdm
- Timestamp:
- 2003-12-19T14:45:12+13:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r6087 r6318 52 52 import org.greenstone.gatherer.gui.DoubleImageButton; 53 53 import org.greenstone.gatherer.gui.GComboBox; 54 import org.greenstone.gatherer.gui.GLIButton; 54 55 import org.greenstone.gatherer.msm.MSMEvent; 55 56 import org.greenstone.gatherer.msm.MSMListener; … … 571 572 Collections.sort(library); 572 573 // Create 573 add = new JButton(); 574 add = new GLIButton(); 575 add.setMnemonic(KeyEvent.VK_A); 574 576 Dictionary.registerBoth(add, "CDM.ClassifierManager.Add", "CDM.ClassifierManager.Add_Tooltip"); 575 577 JPanel button_pane = new JPanel(); 576 578 JPanel central_pane = new JPanel(); 577 configure = new JButton();579 configure = new GLIButton(); 578 580 configure.setEnabled(false); 581 configure.setMnemonic(KeyEvent.VK_C); 579 582 Dictionary.registerBoth(configure, "CDM.ClassifierManager.Configure", "CDM.ClassifierManager.Configure_Tooltip"); 580 583 JPanel header_pane = new JPanel(); … … 608 611 JPanel classifier_list_pane = new JPanel(); 609 612 JPanel classifier_pane = new JPanel(); 610 remove = new JButton();613 remove = new GLIButton(); 611 614 remove.setEnabled(false); 615 remove.setMnemonic(KeyEvent.VK_R); 612 616 Dictionary.registerBoth(remove, "CDM.ClassifierManager.Remove", "CDM.ClassifierManager.Remove_Tooltip"); 613 617 -
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r6051 r6318 34 34 import org.greenstone.gatherer.Gatherer; 35 35 import org.greenstone.gatherer.cdm.CommandTokenizer; 36 import org.greenstone.gatherer.gui.GLIButton; 36 37 import org.greenstone.gatherer.msm.MSMUtils; 37 38 import org.greenstone.gatherer.util.DOMTree; … … 337 338 JPanel content_pane = (JPanel) dialog.getContentPane(); 338 339 final DOMTree tree = new DOMTree(document); 339 JButton refresh_button = new JButton("Refresh Tree"); 340 JButton refresh_button = new GLIButton("Refresh Tree"); 341 refresh_button.setMnemonic(KeyEvent.VK_R); 340 342 refresh_button.addActionListener(new ActionListener() { 341 343 public void actionPerformed(ActionEvent event) { … … 1228 1230 Element command_element = null; 1229 1231 boolean use_metadata_files = false; 1230 boolean show_progress = false;1231 1232 try { 1232 1233 CommandTokenizer tokenizer = new CommandTokenizer(command_str); … … 1250 1251 use_metadata_files = true; 1251 1252 } 1252 else if(name.substring(1).equals(SHOW_PROGRESS_ARGUMENT)) {1253 show_progress = true;1254 }1255 1253 option_element.setAttribute(NAME_ATTRIBUTE, name.substring(1)); 1256 1254 option_element.setAttribute(ASSIGNED_ATTRIBUTE, TRUE_STR); … … 1277 1275 // We must have some RecPlug options: use_metadata_files, and show_progress 1278 1276 if (type.equals(RECPLUG_STR)) { 1279 1277 if (!use_metadata_files) { 1280 1278 Element option_element = document.createElement(OPTION_ELEMENT); 1281 1279 option_element.setAttribute(NAME_ATTRIBUTE, USE_METADATA_FILES_ARGUMENT); … … 1284 1282 command_element.appendChild(option_element); 1285 1283 option_element = null; 1286 } 1287 if(!show_progress) { 1288 Element option_element = document.createElement(OPTION_ELEMENT); 1289 option_element.setAttribute(NAME_ATTRIBUTE, SHOW_PROGRESS_ARGUMENT); 1290 option_element.setAttribute(ASSIGNED_ATTRIBUTE, TRUE_STR); 1291 option_element.setAttribute(CUSTOM_ATTRIBUTE, TRUE_STR); 1292 command_element.appendChild(option_element); 1293 option_element = null; 1294 } 1284 } 1295 1285 } 1296 1286 type = null; -
trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java
r5755 r6318 47 47 import org.greenstone.gatherer.cdm.DOMProxyListModel; 48 48 import org.greenstone.gatherer.cdm.Format; 49 import org.greenstone.gatherer.gui.GLIButton; 49 50 import org.greenstone.gatherer.msm.ElementWrapper; 50 51 import org.greenstone.gatherer.util.StaticStrings; … … 305 306 Dictionary.registerText(editor_label, "CDM.FormatManager.Editor"); 306 307 307 //default_button = new JButton();308 //default_button = new GLIButton(); 308 309 //default_button.setEnabled(false); 309 310 //default_button.setMnemonic(KeyEvent.VK_D); … … 324 325 Dictionary.registerTooltip(variable_combobox, "CDM.FormatManager.Variable_Tooltip"); 325 326 326 insert_button = new JButton();327 insert_button = new GLIButton(); 327 328 insert_button.setMnemonic(KeyEvent.VK_I); 328 329 Dictionary.registerBoth(insert_button, "CDM.FormatManager.Insert", "CDM.FormatManager.Insert_Tooltip"); … … 333 334 334 335 JPanel button_pane = new JPanel(); 335 add_button = new JButton();336 add_button = new GLIButton(); 336 337 add_button.setEnabled(false); 337 338 add_button.setMnemonic(KeyEvent.VK_A); 338 339 Dictionary.registerBoth(add_button, "CDM.FormatManager.Add", "CDM.FormatManager.Add_Tooltip"); 339 replace_button = new JButton();340 replace_button = new GLIButton(); 340 341 replace_button.setEnabled(false); 341 342 replace_button.setMnemonic(KeyEvent.VK_C); 342 343 Dictionary.registerBoth(replace_button, "CDM.FormatManager.Replace", "CDM.FormatManager.Replace_Tooltip"); 343 remove_button = new JButton();344 remove_button = new GLIButton(); 344 345 remove_button.setEnabled(false); 345 346 remove_button.setMnemonic(KeyEvent.VK_R); -
trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java
r6051 r6318 42 42 import org.greenstone.gatherer.gui.DoubleImageButton; 43 43 import org.greenstone.gatherer.gui.GComboBox; 44 import org.greenstone.gatherer.gui.GLIButton; 44 45 import org.greenstone.gatherer.msm.ElementWrapper; 45 46 import org.greenstone.gatherer.msm.MSMUtils; … … 596 597 597 598 JPanel button_pane = new JPanel(); 598 add_button = new JButton();599 add_button = new GLIButton(); 599 600 add_button.setEnabled(false); 600 601 add_button.setMnemonic(KeyEvent.VK_A); 601 602 Dictionary.registerBoth(add_button, "CDM.IndexManager.Add_Index", "CDM.IndexManager.Add_Index_Tooltip"); 602 set_default_button = new JButton();603 set_default_button = new GLIButton(); 603 604 set_default_button.setEnabled(false); 604 605 set_default_button.setMnemonic(KeyEvent.VK_S); 605 606 Dictionary.registerBoth(set_default_button, "CDM.IndexManager.Set_Default", "CDM.IndexManager.Set_Default_Tooltip"); 606 remove_button = new JButton();607 remove_button = new GLIButton(); 607 608 remove_button.setEnabled(false); 608 609 remove_button.setMnemonic(KeyEvent.VK_R); … … 981 982 JPanel index_button_panel = new JPanel(); 982 983 983 add_index_button = new JButton();984 add_index_button = new GLIButton(); 984 985 add_index_button.setEnabled(false); 985 986 add_index_button.setMnemonic(KeyEvent.VK_A); 986 987 Dictionary.registerBoth(add_index_button, "CDM.IndexManager.Add_Index", "CDM.IndexManager.Add_Index_Tooltip"); 987 988 988 add_all_button = new JButton();989 add_all_button = new GLIButton(); 989 990 add_all_button.setEnabled(true); 990 991 add_all_button.setMnemonic(KeyEvent.VK_L); 991 992 Dictionary.registerBoth(add_all_button, "CDM.IndexManager.MGPP.Add_All_Metadata", "CDM.IndexManager.MGPP.Add_All_Metadata_Tooltip"); 992 993 993 replace_button = new JButton();994 replace_button = new GLIButton(); 994 995 replace_button.setEnabled(false); 995 996 replace_button.setMnemonic(KeyEvent.VK_C); 996 997 Dictionary.registerBoth(replace_button, "CDM.IndexManager.MGPP.Replace_Index", "CDM.IndexManager.MGPP.Replace_Index_Tooltip"); 997 998 998 remove_index_button = new JButton();999 remove_index_button = new GLIButton(); 999 1000 remove_index_button.setEnabled(false); 1000 1001 remove_index_button.setMnemonic(KeyEvent.VK_A); … … 1115 1116 JPanel level_button_panel = new JPanel(); 1116 1117 1117 add_level_button = new JButton("CDM.IndexManager.MGPP.Add_Level");1118 add_level_button = new GLIButton("CDM.IndexManager.MGPP.Add_Level"); 1118 1119 add_level_button.setEnabled(false); 1119 1120 add_level_button.setMnemonic(KeyEvent.VK_A); 1120 1121 Dictionary.registerBoth(add_level_button, "CDM.IndexManager.MGPP.Add_Level", "CDM.IndexManager.MGPP.Add_Level_Tooltip"); 1121 1122 1122 remove_level_button = new JButton("CDM.IndexManager.MGPP.Remove_Level");1123 remove_level_button = new GLIButton("CDM.IndexManager.MGPP.Remove_Level"); 1123 1124 remove_level_button.setEnabled(false); 1124 1125 remove_level_button.setMnemonic(KeyEvent.VK_A); -
trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java
r5902 r6318 46 46 import org.greenstone.gatherer.cdm.Language; 47 47 import org.greenstone.gatherer.cdm.LanguageListCellRenderer; 48 import org.greenstone.gatherer.gui.GLIButton; 48 49 import org.w3c.dom.*; 49 50 … … 294 295 JPanel button_panel = new JPanel(); 295 296 296 add_button = new JButton();297 add_button = new GLIButton(); 297 298 add_button.setMnemonic(KeyEvent.VK_A); 298 299 Dictionary.registerBoth(add_button, "CDM.LanguageManager.Add", "CDM.LanguageManager.Add_Tooltip"); 299 300 300 remove_button = new JButton();301 remove_button = new GLIButton(); 301 302 remove_button.setMnemonic(KeyEvent.VK_R); 302 303 remove_button.setEnabled(false); 303 304 Dictionary.registerBoth(remove_button, "CDM.LanguageManager.Remove", "CDM.LanguageManager.Remove_Tooltip"); 304 305 305 clear_button = new JButton();306 clear_button = new GLIButton(); 306 307 clear_button.setMnemonic(KeyEvent.VK_C); 307 308 // If there is a default language, then this is enabled … … 309 310 Dictionary.registerBoth(clear_button, "CDM.LanguageManager.Clear_Default", "CDM.LanguageManager.Clear_Default_Tooltip"); 310 311 311 set_button = new JButton();312 set_button = new GLIButton(); 312 313 set_button.setMnemonic(KeyEvent.VK_S); 313 314 set_button.setEnabled(false); -
trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java
r6254 r6318 46 46 import org.greenstone.gatherer.gui.DoubleImageButton; 47 47 import org.greenstone.gatherer.gui.GComboBox; 48 import org.greenstone.gatherer.gui.GLIButton; 48 49 import org.greenstone.gatherer.msm.MSMUtils; 49 50 import org.greenstone.gatherer.util.StaticStrings; … … 590 591 public PlugInControl() { 591 592 // Create 592 add = new JButton();593 add = new GLIButton(); 593 594 add.setMnemonic(KeyEvent.VK_A); 594 595 Dictionary.registerBoth(add, "CDM.PlugInManager.Add", "CDM.PlugInManager.Add_Tooltip"); … … 597 598 central_pane = new JPanel(); 598 599 599 configure = new JButton();600 configure = new GLIButton(); 600 601 configure.setEnabled(false); 601 602 configure.setMnemonic(KeyEvent.VK_C); … … 662 663 plugin_pane = new JPanel(); 663 664 664 remove = new JButton();665 remove = new GLIButton(); 665 666 remove.setEnabled(false); 666 667 remove.setMnemonic(KeyEvent.VK_R); -
trunk/gli/src/org/greenstone/gatherer/cdm/SearchTypeManager.java
r6051 r6318 45 45 import org.greenstone.gatherer.gui.DoubleImageButton; 46 46 import org.greenstone.gatherer.gui.GComboBox; 47 import org.greenstone.gatherer.gui.GLIButton; 47 48 import org.greenstone.gatherer.msm.MSMUtils; 48 49 import org.greenstone.gatherer.util.Utility; … … 219 220 220 221 JPanel button_panel = new JPanel(); 221 add_button = new JButton();222 add_button = new GLIButton(); 222 223 add_button.setEnabled(false); 223 224 add_button.setMnemonic(KeyEvent.VK_A); 224 225 Dictionary.registerBoth(add_button, "CDM.SearchTypeManager.Add", "CDM.SearchTypeManager.Add_Tooltip"); 225 226 226 remove_button = new JButton();227 remove_button = new GLIButton(); 227 228 remove_button.setEnabled(false); 228 229 remove_button.setMnemonic(KeyEvent.VK_R); -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java
r5903 r6318 40 40 import org.greenstone.gatherer.cdm.Subcollection; 41 41 import org.greenstone.gatherer.cdm.SubcollectionIndex; 42 import org.greenstone.gatherer.gui.GLIButton; 42 43 import org.greenstone.gatherer.msm.ElementWrapper; 43 44 import org.greenstone.gatherer.util.ExclusiveListSelectionListener; … … 223 224 JPanel button_pane = new JPanel(); 224 225 225 add_index_button = new JButton();226 add_index_button = new GLIButton(); 226 227 add_index_button.setMnemonic(KeyEvent.VK_A); 227 228 add_index_button.setEnabled(false); 228 229 Dictionary.registerBoth(add_index_button, "CDM.SubcollectionIndexManager.Add_Subindex", "CDM.SubcollectionIndexManager.Add_Subindex_Tooltip"); 229 230 230 clear_default_button = new JButton();231 clear_default_button = new GLIButton(); 231 232 clear_default_button.setMnemonic(KeyEvent.VK_C); 232 233 clear_default_button.setEnabled(default_index != null); … … 247 248 default_value_field.setEditable(false); 248 249 249 remove_index_button = new JButton();250 remove_index_button = new GLIButton(); 250 251 remove_index_button.setMnemonic(KeyEvent.VK_R); 251 252 remove_index_button.setEnabled(false); 252 253 Dictionary.registerBoth(remove_index_button, "CDM.SubcollectionIndexManager.Remove_Subindex", "CDM.SubcollectionIndexManager.Remove_Subindex_Tooltip"); 253 254 254 set_default_button = new JButton();255 set_default_button = new GLIButton(); 255 256 set_default_button.setMnemonic(KeyEvent.VK_S); 256 257 set_default_button.setEnabled(false); -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java
r5785 r6318 43 43 import org.greenstone.gatherer.cdm.DOMProxyListModel; 44 44 import org.greenstone.gatherer.cdm.Subcollection; 45 import org.greenstone.gatherer.gui.GLIButton; 45 46 import org.greenstone.gatherer.gui.NonWhitespaceField; 46 47 import org.greenstone.gatherer.msm.ElementWrapper; … … 192 193 193 194 JPanel button_pane_3 = new JPanel(); 194 add_button = new JButton();195 add_button = new GLIButton(); 195 196 add_button.setMnemonic(KeyEvent.VK_A); 196 197 add_button.setEnabled(false); 197 198 Dictionary.registerBoth(add_button, "CDM.SubcollectionManager.Add", "CDM.SubcollectionManager.Add_Tooltip"); 198 remove_button = new JButton();199 remove_button = new GLIButton(); 199 200 remove_button.setMnemonic(KeyEvent.VK_R); 200 201 remove_button.setEnabled(false); 201 202 Dictionary.registerBoth(remove_button, "CDM.SubcollectionManager.Remove", "CDM.SubcollectionManager.Remove_Tooltip"); 202 update_button = new JButton();203 update_button = new GLIButton(); 203 204 update_button.setMnemonic(KeyEvent.VK_U); 204 205 update_button.setEnabled(false); -
trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java
r5901 r6318 42 42 import org.greenstone.gatherer.cdm.LanguageListCellRenderer; 43 43 import org.greenstone.gatherer.cdm.SubcollectionIndex; 44 import org.greenstone.gatherer.gui.GLIButton; 44 45 45 46 /** 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. … … 260 261 261 262 JPanel button_pane = new JPanel(); 262 add_button = new JButton();263 add_button = new GLIButton(); 263 264 add_button.setEnabled(false); 264 265 add_button.setMnemonic(KeyEvent.VK_A); 265 266 Dictionary.registerBoth(add_button, "CDM.TranslationManager.Add", "CDM.TranslationManager.Add_Tooltip"); 266 replace_button = new JButton();267 replace_button = new GLIButton(); 267 268 replace_button.setEnabled(false); 268 269 replace_button.setMnemonic(KeyEvent.VK_C); 269 270 Dictionary.registerBoth(replace_button, "CDM.TranslationManager.Replace", "CDM.TranslationManager.Replace_Tooltip"); 270 remove_button = new JButton();271 remove_button = new GLIButton(); 271 272 remove_button.setEnabled(false); 272 273 remove_button.setMnemonic(KeyEvent.VK_R);
Note:
See TracChangeset
for help on using the changeset viewer.