public class JsSelection extends JsElementalMixinBase implements Selection
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsSelection() |
Modifier and Type | Method and Description |
---|---|
void |
addRange(Range range) |
void |
collapse(Node node,
int index) |
void |
collapseToEnd() |
void |
collapseToStart() |
boolean |
containsNode(Node node,
boolean allowPartial) |
void |
deleteFromDocument() |
void |
empty() |
void |
extend(Node node,
int offset) |
JsNode |
getAnchorNode() |
int |
getAnchorOffset() |
JsNode |
getBaseNode() |
int |
getBaseOffset() |
JsNode |
getExtentNode() |
int |
getExtentOffset() |
JsNode |
getFocusNode() |
int |
getFocusOffset() |
JsRange |
getRangeAt(int index) |
int |
getRangeCount() |
String |
getType() |
boolean |
isCollapsed() |
void |
modify(String alter,
String direction,
String granularity) |
void |
removeAllRanges() |
void |
selectAllChildren(Node node) |
void |
setBaseAndExtent(Node baseNode,
int baseOffset,
Node extentNode,
int extentOffset) |
void |
setPosition(Node node,
int offset) |
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final JsNode getAnchorNode()
getAnchorNode
in interface Selection
public final int getAnchorOffset()
getAnchorOffset
in interface Selection
public final JsNode getBaseNode()
getBaseNode
in interface Selection
public final int getBaseOffset()
getBaseOffset
in interface Selection
public final JsNode getExtentNode()
getExtentNode
in interface Selection
public final int getExtentOffset()
getExtentOffset
in interface Selection
public final JsNode getFocusNode()
getFocusNode
in interface Selection
public final int getFocusOffset()
getFocusOffset
in interface Selection
public final boolean isCollapsed()
isCollapsed
in interface Selection
public final int getRangeCount()
getRangeCount
in interface Selection
public final void collapse(Node node, int index)
public final void collapseToEnd()
collapseToEnd
in interface Selection
public final void collapseToStart()
collapseToStart
in interface Selection
public final boolean containsNode(Node node, boolean allowPartial)
containsNode
in interface Selection
public final void deleteFromDocument()
deleteFromDocument
in interface Selection
public final JsRange getRangeAt(int index)
getRangeAt
in interface Selection
public final void removeAllRanges()
removeAllRanges
in interface Selection
public final void selectAllChildren(Node node)
selectAllChildren
in interface Selection
public final void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset)
setBaseAndExtent
in interface Selection
public final void setPosition(Node node, int offset)
setPosition
in interface Selection
Copyright © 2018. All rights reserved.