- Timestamp:
- 2008-06-04T18:05:12+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/CreatePane.java
r15621 r15862 606 606 } 607 607 608 /** This class serves as the listener for actions on the build button. It also ensures 609 * that the log displayed is refreshed whenever the building progress display updates. */ 608 /** This class serves as the listener for actions on the build button. */ 610 609 private class BuildButtonListener 611 implements ActionListener , DocumentListener{610 implements ActionListener { 612 611 /** 613 612 * This method checks to see what needs to be done for a build, and starts the process off. … … 677 676 document = options_pane.createNewLogDocument(); 678 677 log_textarea.setDocument(document); 679 // Add a document listener to listen to DocumentEvents emitted by the custom document.680 // It prevents the blocks that appear in the log textarea that look like they need a refresh681 document.addDocumentListener(this);682 678 options_pane.log_textarea.setDocument(document); 683 679 // Change the view. … … 691 687 import_monitor.setStop(false); 692 688 } 693 694 695 // Called whenever the custom Document object has been updated (it then fires a DocumentEvent, handled here) 696 public void changedUpdate(DocumentEvent e) { refreshLog(); } 697 public void insertUpdate(DocumentEvent e) { refreshLog(); } 698 public void removeUpdate(DocumentEvent e) { refreshLog(); } 699 public void refreshLog() { CreatePane.this.log_textarea.repaint(); } 700 } 689 } 690 701 691 702 692 /** This class serves as the listener for actions on the cancel button. */
Note:
See TracChangeset
for help on using the changeset viewer.