public class Selection extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<Node> |
anchorNode |
Objs.Property<Number> |
anchorOffset |
Objs.Property<Node> |
focusNode |
Objs.Property<Number> |
focusOffset |
Objs.Property<Boolean> |
isCollapsed |
Objs.Property<Number> |
rangeCount |
Objs.Property<String> |
type |
Modifier | Constructor and Description |
---|---|
protected |
Selection(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static Selection |
$as(Object obj) |
void |
addRange(Range range) |
Node |
anchorNode() |
Number |
anchorOffset() |
void |
collapse(Node parentNode,
double offset) |
void |
collapseToEnd() |
void |
collapseToStart() |
Boolean |
containsNode(Node node,
Boolean partlyContained) |
void |
deleteFromDocument() |
void |
empty() |
void |
extend(Node newNode,
double offset) |
Node |
focusNode() |
Number |
focusOffset() |
Range |
getRangeAt(double index) |
Boolean |
isCollapsed() |
Number |
rangeCount() |
void |
removeAllRanges() |
void |
removeRange(Range range) |
void |
selectAllChildren(Node parentNode) |
void |
setBaseAndExtent(Node baseNode,
double baseOffset,
Node extentNode,
double extentOffset) |
String |
type() |
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<Node> anchorNode
public Objs.Property<Number> anchorOffset
public Objs.Property<Node> focusNode
public Objs.Property<Number> focusOffset
public Objs.Property<Boolean> isCollapsed
public Objs.Property<Number> rangeCount
public Objs.Property<String> type
protected Selection(Objs.Constructor<?> c, Object js)
public Node anchorNode()
public Number anchorOffset()
public Node focusNode()
public Number focusOffset()
public Boolean isCollapsed()
public Number rangeCount()
public String type()
public void addRange(Range range)
public void collapse(Node parentNode, double offset)
public void collapseToEnd()
public void collapseToStart()
public void deleteFromDocument()
public void empty()
public void extend(Node newNode, double offset)
public Range getRangeAt(double index)
public void removeAllRanges()
public void removeRange(Range range)
public void selectAllChildren(Node parentNode)
Copyright © 2018. All rights reserved.