Exemple #1
0
 /**
  * Gets a DOM node enclosing the selection. The node returned should be the inner-most node that
  * encloses both selection start and end points. Note that the selection end point may be just
  * outside of the selection.
  *
  * <p>Note: This method should be invoked in the GUI thread.
  *
  * @return A node enclosing the current selection, or <code>null</code> if there is no such node.
  *     It also returns <code>null</code> for FRAMESETs.
  */
 public org.w3c.dom.Node getSelectionNode() {
   final HtmlBlockPanel block = this.htmlBlockPanel;
   if (block == null) {
     return null;
   } else {
     return block.getSelectionNode();
   }
 }