Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 7 package javax.swing.event; 8 9 import javax.swing.undo.*; 10 import javax.swing.text.*; 11 12 25 public interface DocumentEvent { 26 27 33 public int getOffset(); 34 35 40 public int getLength(); 41 42 47 public Document getDocument(); 48 49 54 public EventType getType(); 55 56 85 public ElementChange getChange(Element elem); 86 87 90 public static final class EventType { 91 92 private EventType(String s) { 93 typeString = s; 94 } 95 96 99 public static final EventType INSERT = new EventType("INSERT"); 100 101 104 public static final EventType REMOVE = new EventType("REMOVE"); 105 106 109 public static final EventType CHANGE = new EventType("CHANGE"); 110 111 116 public String toString() { 117 return typeString; 118 } 119 120 private String typeString; 121 } 122 123 126 public interface ElementChange { 127 128 134 public Element getElement(); 135 136 143 public int getIndex(); 144 145 153 public Element[] getChildrenRemoved(); 154 155 163 public Element[] getChildrenAdded(); 164 165 } 166 } 167
| Popular Tags
|