Changeset 9200
- Timestamp:
- 2005-02-25T17:22:07+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java
r9161 r9200 744 744 source_list.clearSelection(); 745 745 ArrayList sources = selected_index.getSources(); 746 source_list.set SelectedObjects(sources.toArray());746 source_list.setTickedObjects(sources.toArray()); 747 747 748 748 } … … 758 758 } 759 759 // Can't add a new index if no sources are selected 760 else if (source_list. getSelected().size() == 0) {760 else if (source_list.isNothingTicked()) { 761 761 add_enabled = false; 762 762 } 763 763 // If we get this far, create a dummy index and see if it's already assigned in the collection 764 764 else { 765 Object object[] = source_list.get Selected().toArray();765 Object object[] = source_list.getTicked().toArray(); 766 766 ArrayList sources = new ArrayList(); 767 767 for(int i = 0; i < object.length; i++) { … … 806 806 { 807 807 String name = name_textfield.getText(); 808 if ( source_list.getSelected().size() > 0&& name.length() != 0) {809 ArrayList sources = source_list.get Selected();808 if (!source_list.isNothingTicked() && name.length() != 0) { 809 ArrayList sources = source_list.getTicked(); 810 810 Index index = new Index(level_combobox.getSelectedIndex(), sources); 811 811 -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java
r9161 r9200 409 409 410 410 // Display the selected subcollection index's sources 411 source_list.clear Selection();412 source_list.set SelectedObjects(selected_index.getSources().toArray());411 source_list.clearTicked(); 412 source_list.setTickedObjects(selected_index.getSources().toArray()); 413 413 } 414 414 … … 424 424 } 425 425 // Can't add a new index if no sources are selected 426 else if (source_list. getSelected().size() == 0) {426 else if (source_list.isNothingTicked()) { 427 427 add_enabled = false; 428 428 } 429 429 // If we get this far, create a dummy index and see if it's already assigned in the collection 430 430 else { 431 ArrayList sources = source_list.get Selected();431 ArrayList sources = source_list.getTicked(); 432 432 SubcollectionIndex subcollection_index = new SubcollectionIndex(sources.toArray()); 433 433 … … 468 468 { 469 469 String name = subcollection_index_name_textfield.getText(); 470 if ( source_list.getSelected().size() > 0&& name.length() != 0) {471 ArrayList sources = source_list.get Selected();470 if (!source_list.isNothingTicked() && name.length() != 0) { 471 ArrayList sources = source_list.getTicked(); 472 472 SubcollectionIndex subcollection_index = new SubcollectionIndex(sources.toArray()); 473 473 -
trunk/gli/src/org/greenstone/gatherer/gui/ExportCollectionPrompt.java
r9196 r9200 448 448 ///ystem.err.println("OK Clicked"); 449 449 // Make sure there are some colls specified 450 selected_collections = list.get Selected();450 selected_collections = list.getTicked(); 451 451 error_message = new StringBuffer(); 452 452 -
trunk/gli/src/org/greenstone/gatherer/util/CheckList.java
r9196 r9200 88 88 89 89 90 public void clear Selection()90 public void clearTicked() 91 91 { 92 92 DefaultListModel model = (DefaultListModel) getModel(); … … 102 102 * @see org.greenstone.gatherer.checklist.Entry 103 103 */ 104 public ArrayList get Selected()104 public ArrayList getTicked() 105 105 { 106 106 ArrayList result = new ArrayList(); … … 148 148 149 149 150 public void set SelectedObjects(Object objects[])150 public void setTickedObjects(Object[] objects) 151 151 { 152 152 if (objects == null) {
Note:
See TracChangeset
for help on using the changeset viewer.