|
||||||||||
| 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.NativeSelection
public final class NativeSelection
Wraps the selection JavaScript object provided by Internet Explorer.
| Constructor Summary | |
|---|---|
protected |
NativeSelection()
Default constructor. |
| Method Summary | |
|---|---|
NativeRange |
createRange()
Creates a TextRange object from the current text selection, or a ControlRange object from a control selection. |
void |
empty()
Cancels the current selection and sets the selection type to none. |
static void |
ensureSelectionIsPreserved(Document document)
Ensures that the selection of the given document is preserved when the document looses focus. |
static NativeSelection |
getInstance(Document document)
|
Document |
getOwnerDocument()
|
| 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 NativeSelection()
| Method Detail |
|---|
public static NativeSelection getInstance(Document document)
document - the DOM document for which to retrieve the selection object
public static void ensureSelectionIsPreserved(Document document)
document - the document whose selection has to be preservedpublic NativeRange createRange()
public void empty()
public Document getOwnerDocument()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||