1 33 34 package edu.rice.cs.util.text; 35 36 import java.awt.print.Pageable ; 37 import java.awt.print.PrinterException ; 38 import java.io.Serializable ; 39 40 47 public interface EditDocumentInterface extends ReadersWritersLocking, Serializable { 48 49 52 public DocumentEditCondition getEditCondition(); 53 54 57 public void setEditCondition(DocumentEditCondition condition); 58 59 65 public void insertText(int offs, String str, String style); 66 67 74 public void forceInsertText(int offs, String str, String style); 75 76 81 public void removeText(int offs, int len); 82 83 88 public void forceRemoveText(int offs, int len); 89 90 91 public int getLength(); 92 93 99 public String getDocText(int offs, int len); 100 101 106 public void append(String str, String style); 107 108 109 public String getDefaultStyle(); 110 111 114 public Pageable getPageable() throws IllegalStateException ; 115 116 117 public void print() throws PrinterException ; 118 } 119 | Popular Tags |