Changeset 4960 for trunk/gli/src/org/greenstone
- Timestamp:
- 2003-07-16T15:49:12+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Classifier.java
r4932 r4960 176 176 * @param object The classifier to test against, as an <strong>Object</strong>. 177 177 * @return <i>true</i> if the classifier names match, <i>false</i> otherwise. 178 * @see org.greenstone.gatherer.cdm.CustomClassifier179 178 */ 180 179 public boolean equals(Object object) { -
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r4932 r4960 46 46 import org.greenstone.gatherer.cdm.Control; 47 47 import org.greenstone.gatherer.cdm.Classifier; 48 import org.greenstone.gatherer.cdm.CustomClassifier;49 48 import org.greenstone.gatherer.cdm.DOMProxyListModel; 50 49 import org.greenstone.gatherer.file.FileNode; … … 695 694 * @see org.greenstone.gatherer.cdm.ArgumentConfiguration 696 695 * @see org.greenstone.gatherer.cdm.Classifier 697 * @see org.greenstone.gatherer.cdm.CustomClassifier698 696 */ 699 697 public void actionPerformed(ActionEvent event) { … … 763 761 * @see org.greenstone.gatherer.cdm.ArgumentConfiguration 764 762 * @see org.greenstone.gatherer.cdm.Classifier 765 * @see org.greenstone.gatherer.cdm.CustomClassifier766 763 */ 767 764 public void actionPerformed(ActionEvent event) { … … 828 825 private class RemoveListener 829 826 implements ActionListener { 830 /** Any implementation of <i>ActionListener</i> must include this method so that we can be informed when an action has occured on one of our target controls, so we can remove the selected Classifier. 831 * @param event An <strong>ActionEvent</strong> containing information garnered from the control action. 832 * @see org.greenstone.gatherer.cdm.Classifier 833 * @see org.greenstone.gatherer.cdm.CustomClassifier 834 */ 827 /** Any implementation of <i>ActionListener</i> must include this method so that we can be informed when an action has occured on one of our target controls, so we can remove the selected Classifier. 828 * @param event An <strong>ActionEvent</strong> containing information garnered from the control action. 829 * @see org.greenstone.gatherer.cdm.Classifier 830 */ 835 831 public void actionPerformed(ActionEvent event) { 836 832 if(!classifier_list.isSelectionEmpty()) { -
trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java
r4932 r4960 200 200 ArrayList feature_model = buildFeatureModel(); 201 201 part_model = new Vector(); 202 part_model.add(""); //get("Custom"));202 part_model.add(""); 203 203 part_model.add("DateList"); 204 204 part_model.add("HList"); … … 537 537 implements Comparable { 538 538 private Classifier classifier = null; 539 private CustomClassifier custom_classifier = null;540 539 private String text = null; 541 540 public Entry(Object object) { … … 543 542 classifier = (Classifier)object; 544 543 } 545 if(object instanceof CustomClassifier) {546 custom_classifier = (CustomClassifier)object;547 }548 544 else if(object instanceof String) { 549 545 text = (String)object; … … 580 576 return classifier; 581 577 } 582 public CustomClassifier getCustomClassifier() {583 return custom_classifier;584 }585 578 public Object getFeature() { 586 579 if(classifier != null) { … … 593 586 String name = classifier.toString(); 594 587 return name.substring(9); 595 }596 if(custom_classifier != null) {597 String name = custom_classifier.toString();598 return name;//.substring(17);599 588 } 600 589 return text;
Note:
See TracChangeset
for help on using the changeset viewer.