/** * Collapses the range. * @param toStart indicates if collapse should be done to the start * @see <a href="http://msdn.microsoft.com/en-us/library/ms536371.aspx">MSDN doc</a> */ public void jsxFunction_collapse(final boolean toStart) { collapsed_ = true; range_.collapse(toStart); }
/** * Collapses the range. * @param toStart indicates if collapse should be done to the start * @see <a href="http://msdn.microsoft.com/en-us/library/ms536371.aspx">MSDN doc</a> */ public void jsxFunction_collapse(final boolean toStart) { collapsed_ = true; range_.collapse(toStart); }
/** * Collapses the range. * @param toStart indicates if collapse should be done to the start * @see <a href="http://msdn.microsoft.com/en-us/library/ms536371.aspx">MSDN doc</a> */ public void jsxFunction_collapse(final boolean toStart) { collapsed_ = true; range_.collapse(toStart); }
/** * Collapses the range. * @param toStart indicates if collapse should be done to the start * @see <a href="http://msdn.microsoft.com/en-us/library/ms536371.aspx">MSDN doc</a> */ @JsxFunction public void collapse(final boolean toStart) { range_.collapse(toStart); }
/** * Moves the anchor of the selection to the same point as the focus. The focus does not move. */ public void jsxFunction_collapseToEnd() { getPageSelection().collapse(false); }
/** * Collapses the range. * @param toStart indicates if collapse should be done to the start * @see <a href="http://msdn.microsoft.com/en-us/library/ms536371.aspx">MSDN doc</a> */ @JsxFunction public void collapse(final boolean toStart) { range_.collapse(toStart); }
/** * Moves the focus of the selection to the same point at the anchor. The anchor does not move. */ public void jsxFunction_collapseToStart() { getPageSelection().collapse(true); }
/** * Moves the anchor of the selection to the same point as the focus. The focus does not move. */ public void jsxFunction_collapseToEnd() { getPageSelection().collapse(false); }
/** * Moves the focus of the selection to the same point at the anchor. The anchor does not move. */ public void jsxFunction_collapseToStart() { getPageSelection().collapse(true); }
/** * Moves the focus of the selection to the same point at the anchor. The anchor does not move. */ public void jsxFunction_collapseToStart() { getPageSelection().collapse(true); }
/** * Moves the anchor of the selection to the same point as the focus. The focus does not move. */ public void jsxFunction_collapseToEnd() { getPageSelection().collapse(false); }
/** * Moves the anchor of the selection to the same point as the focus. The focus does not move. */ @JsxFunction public void collapseToEnd() { final Range last = getLastRange(); if (last != null) { final List<Range> ranges = getRanges(); ranges.clear(); ranges.add(last); last.collapse(false); } type_ = TYPE_CARET; }
/** * Moves the focus of the selection to the same point at the anchor. The anchor does not move. */ @JsxFunction public void collapseToStart() { final Range first = getFirstRange(); if (first != null) { final List<Range> ranges = getRanges(); ranges.clear(); ranges.add(first); first.collapse(true); } type_ = TYPE_CARET; }
/** * Moves the anchor of the selection to the same point as the focus. The focus does not move. */ @JsxFunction public void collapseToEnd() { final Range last = getLastRange(); if (last != null) { final List<Range> ranges = getRanges(); ranges.clear(); ranges.add(last); last.collapse(false); } type_ = TYPE_CARET; }
/** * Moves the focus of the selection to the same point at the anchor. The anchor does not move. */ @JsxFunction public void collapseToStart() { final Range first = getFirstRange(); if (first != null) { final List<Range> ranges = getRanges(); ranges.clear(); ranges.add(first); first.collapse(true); } type_ = TYPE_CARET; }
final DomNode child = htmlPage.getBody().getFirstChild(); htmlPage.getSelection().setStart(child, 0); htmlPage.getSelection().collapse(true);
final DomNode child = htmlPage.getBody().getFirstChild(); htmlPage.getSelection().setStart(child, 0); htmlPage.getSelection().collapse(true);
final DomNode child = htmlPage.getBody().getFirstChild(); htmlPage.getSelection().setStart(child, 0); htmlPage.getSelection().collapse(true);