1 33 34 package edu.rice.cs.util.text; 35 36 import javax.swing.text.AttributeSet ; 37 import javax.swing.text.BadLocationException ; 38 import javax.swing.text.Position ; 40 41 42 public interface AbstractDocumentInterface extends ReadersWritersLocking { 43 44 45 46 47 int getLength(); 48 49 50 String getText(int offset, int length) throws BadLocationException ; 51 52 53 String getText(); 54 55 56 void insertString(int offset, String str, AttributeSet a) throws BadLocationException ; 57 58 59 void remove(int offset, int length) throws BadLocationException ; 60 61 62 void append(String str, AttributeSet set); 63 64 65 Position createPosition(int offs) throws BadLocationException ; 66 } 67 68 69 70 | Popular Tags |