Changeset 4409


Ignore:
Timestamp:
2003-05-30T10:20:36+12:00 (21 years ago)
Author:
kjdon
Message:

fix to be able to add new text to a SmarterTextArea

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/SmarterTextArea.java

    r4367 r4409  
    6363    }
    6464
     65    /** we want to be able to set the text without the user being able to */
     66    public void systemSetText(String text) {
     67    init = true;
     68    setText(text);
     69    init = false;
     70    }
    6571    private class UnchangingDocument
    6672    extends PlainDocument {
     
    7177        }
    7278    }
    73     public void remove(int offs, int len) {
     79    public void remove(int offs, int len) 
     80        throws BadLocationException {
     81        if (init) {
     82        super.remove(offs, len);
     83        }
    7484    }
    7585    }
     86
     87   
    7688}
Note: See TracChangeset for help on using the changeset viewer.