1 2 15 package org.wings.text; 16 17 import org.wings.event.SDocumentListener; 18 19 import javax.swing.text.BadLocationException ; 20 21 25 public interface SDocument { 26 32 public int getLength(); 33 34 41 public void addDocumentListener(SDocumentListener listener); 42 43 50 public void removeDocumentListener(SDocumentListener listener); 51 52 71 public void remove(int offs, int len) throws BadLocationException ; 72 73 87 public void insert(int offset, String string) throws BadLocationException ; 88 89 90 102 public String getText(int offset, int length) throws BadLocationException ; 103 104 public String getText(); 105 106 public void setText(String text); 107 } 108 | Popular Tags |