- Timestamp:
- 2003-06-12T11:43:25+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java
r4592 r4593 685 685 protected void validateAdd() { 686 686 if(changed && name.getText().length() > 0 && match.getText().length() > 0) { 687 System.out.println("in validate, name="+name.getText());688 687 if (subcollections.containsKey(name.getText())) { 689 688 add.setEnabled(false); … … 760 759 761 760 public void changedUpdate(DocumentEvent event) { 762 System.out.println("changed");763 761 changed = true; 764 762 validateAdd(); 765 763 } 766 764 public void insertUpdate(DocumentEvent event) { 767 System.out.println("inserted");768 765 changed = true; 769 766 validateAdd(); … … 772 769 773 770 public void removeUpdate(DocumentEvent event) { 774 System.out.println("removed");775 771 changed = true; 776 772 validateAdd(); 777 773 } 778 /** Any inheritor of KeyAdapter can override this method so we can be informed when an key has been type in one of our target controls. In this case we want to record that somethings changed, then validate the controls.779 * @param event An <strong>KeyEvent</strong> containing information about the event.780 */781 // public void keyPressed(KeyEvent event) {782 //changed = true;783 //validate();784 // }785 786 774 } 787 775 /** Listens for actions apon the 'clear default subindex' button in the SubcollectionManager controls, and if detected calls the setDefaultSubIndex() method of the manager with <i>null</i>. */
Note:
See TracChangeset
for help on using the changeset viewer.