Changeset 4622
- Timestamp:
- 2003-06-12T18:04:59+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java
r4611 r4622 411 411 source_model.add("text"); 412 412 source_model.addAll(gatherer.c_man.msm.getAssignedElements()); 413 414 413 //source_model.addAll(gatherer.c_man.msm.getElements()); 414 // Creation 415 415 add = new JButton(get("Add")); 416 416 add.setEnabled(false); … … 471 471 title.setHorizontalAlignment(JLabel.CENTER); 472 472 473 473 // Listeners 474 474 add.addActionListener(new AddListener()); 475 475 clear_default.addActionListener(new ClearDefaultListener()); … … 484 484 elsl.add(source_list); 485 485 486 486 // Layout 487 487 title.setBorder(BorderFactory.createEmptyBorder(0,0,2,0)); 488 488 … … 564 564 instructions.setCaretPosition(0); 565 565 } 566 566 // Reload the assigned indexes list. 567 567 if(source_model != null) { 568 568 source_model.clear(); … … 570 570 source_model.addAll(gatherer.c_man.msm.getAssignedElements()); 571 571 } 572 572 // Faster than a NPE its the - 'Super class'. 573 573 super.updateUI(); 574 574 } … … 576 576 private class AddListener 577 577 implements ActionListener { 578 579 580 581 582 583 584 585 586 578 /** Method called when an action is performed on a registered component, and when it does we check if we have enough data to create a new index, and if so we create one. 579 * @param event An <strong>ActionEvent</strong> providing extra information about the event. 580 * @see org.greenstone.gatherer.cdm.CollectionDesignManager 581 * @see org.greenstone.gatherer.cdm.CollectionMeta 582 * @see org.greenstone.gatherer.cdm.CollectionMetaManager 583 * @see org.greenstone.gatherer.cdm.Index 584 * @see org.greenstone.gatherer.cdm.Language 585 * @see org.greenstone.gatherer.cdm.LanguageManager 586 */ 587 587 public void actionPerformed(ActionEvent event) { 588 588 if(!source_list.isSelectionEmpty() && name.getText().length() != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.