Changeset 6032
- Timestamp:
- 2003-11-28T17:42:04+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r5984 r6032 162 162 } 163 163 return controls; 164 } 165 166 public ArrayList getHierarchyClassifiers() { 167 ArrayList result = new ArrayList(); 168 for(int i = 0; i < getSize(); i++) { 169 Classifier classifier = (Classifier) getElementAt(i); 170 if(classifier.getName().equalsIgnoreCase(StaticStrings.HIERARCHY_CLASSIFIER)) { 171 result.add(classifier); 172 } 173 classifier = null; 174 } 175 return result; 176 164 177 } 165 178 … … 550 563 classifier.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false)); 551 564 classifier.setEditable(true); 552 classifier.setSelectedIndex(0);553 565 classifier.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false)); 554 566 classifier.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false)); 555 ccl.itemStateChanged(new ItemEvent(classifier, 0, null, ItemEvent.SELECTED)); 567 if(classifier.getItemCount() > 0) { 568 classifier.setSelectedIndex(0); 569 ccl.itemStateChanged(new ItemEvent(classifier, 0, null, ItemEvent.SELECTED)); 570 } 556 571 557 572 JLabel classifier_label = new JLabel();
Note:
See TracChangeset
for help on using the changeset viewer.