org.xwiki.gwt.wysiwyg.client.plugin.readonly
Class ReadOnlyUtils

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.readonly.ReadOnlyUtils

public class ReadOnlyUtils
extends Object

Utility methods concerning read-only regions inside the rich text area.

Version:
$Id$

Constructor Summary
ReadOnlyUtils()
           
 
Method Summary
 org.xwiki.gwt.dom.client.Element getClosestReadOnlyAncestor(com.google.gwt.dom.client.Node node)
           
 boolean isSelectionBoundaryInsideReadOnlyElement(org.xwiki.gwt.dom.client.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyUtils

public ReadOnlyUtils()
Method Detail

getClosestReadOnlyAncestor

public org.xwiki.gwt.dom.client.Element getClosestReadOnlyAncestor(com.google.gwt.dom.client.Node node)
Parameters:
node - a DOM node
Returns:
the closest ancestor of the given node that is marked as read-only

isSelectionBoundaryInsideReadOnlyElement

public boolean isSelectionBoundaryInsideReadOnlyElement(org.xwiki.gwt.dom.client.Document document)
Parameters:
document - a DOM document
Returns:
true if the selection starts or ends inside a read-only element


Copyright © 2004-2011 XWiki. All Rights Reserved.