1 12 13 package org.w3c.dom.ranges; 14 15 import org.w3c.dom.Node ; 16 import org.w3c.dom.DOMException ; 17 import org.w3c.dom.DocumentFragment ; 18 19 23 public interface Range { 24 30 public Node getStartContainer() 31 throws DOMException ; 32 33 39 public int getStartOffset() 40 throws DOMException ; 41 42 48 public Node getEndContainer() 49 throws DOMException ; 50 51 57 public int getEndOffset() 58 throws DOMException ; 59 60 66 public boolean getCollapsed() 67 throws DOMException ; 68 69 76 public Node getCommonAncestorContainer() 77 throws DOMException ; 78 79 99 public void setStart(Node refNode, 100 int offset) 101 throws RangeException, DOMException ; 102 103 123 public void setEnd(Node refNode, 124 int offset) 125 throws RangeException, DOMException ; 126 127 141 public void setStartBefore(Node refNode) 142 throws RangeException, DOMException ; 143 144 158 public void setStartAfter(Node refNode) 159 throws RangeException, DOMException ; 160 161 175 public void setEndBefore(Node refNode) 176 throws RangeException, DOMException ; 177 178 192 public void setEndAfter(Node refNode) 193 throws RangeException, DOMException ; 194 195 203 public void collapse(boolean toStart) 204 throws DOMException ; 205 206 220 public void selectNode(Node refNode) 221 throws RangeException, DOMException ; 222 223 235 public void selectNodeContents(Node refNode) 236 throws RangeException, DOMException ; 237 238 244 public static final short START_TO_START = 0; 245 250 public static final short START_TO_END = 1; 251 256 public static final short END_TO_END = 2; 257 262 public static final short END_TO_START = 3; 263 264 279 public short compareBoundaryPoints(short how, 280 Range sourceRange) 281 throws DOMException ; 282 283 294 public void deleteContents() 295 throws DOMException ; 296 297 310 public DocumentFragment extractContents() 311 throws DOMException ; 312 313 323 public DocumentFragment cloneContents() 324 throws DOMException ; 325 326 352 public void insertNode(Node newNode) 353 throws DOMException , RangeException; 354 355 378 public void surroundContents(Node newParent) 379 throws DOMException , RangeException; 380 381 389 public Range cloneRange() 390 throws DOMException ; 391 392 400 public String toString() 401 throws DOMException ; 402 403 413 public void detach() 414 throws DOMException ; 415 416 } 417 | Popular Tags |