|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
org.xwiki.gwt.dom.client.internal.ie.NativeRange
org.xwiki.gwt.dom.client.internal.ie.ControlRange
public final class ControlRange
A control range is a list of DOM elements. When an element is added to a control range and that range is selected the element will be decorated with special markers for editing that element. For instance if an image is selected this way the user will be able to resize the image.
| Constructor Summary | |
|---|---|
protected |
ControlRange()
Default constructor. |
| Method Summary | |
|---|---|
void |
add(Element element)
Adds an element to the control range. |
Element |
get(int index)
|
int |
getLength()
|
static ControlRange |
newInstance(Document doc)
Creates a new control range from the given document. |
void |
remove(int index)
Removes an element from this control range. |
| Methods inherited from class org.xwiki.gwt.dom.client.internal.ie.NativeRange |
|---|
getOwnerDocument, isTextRange, select |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ControlRange()
| Method Detail |
|---|
public static ControlRange newInstance(Document doc)
doc - The owner document of the created control range.
public int getLength()
public void add(Element element)
element - The element to include in this range.public Element get(int index)
index - Zero-based index of the element to get.
public void remove(int index)
index - Zero-based index of the element to remove from the control range.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||