Examples of siblingIndex()


Examples of org.axsl.area.NormalFlowRefArea.siblingIndex()

        final NormalFlowRefArea colArea = (NormalFlowRefArea) area;
        switch (breakableNode.traitBreakBefore(area)) {
        case PAGE: {
            // if first ColumnArea, and empty, return OK
            if (colArea.getChildCount() == 0
                    && (colArea.siblingIndex() == 0)) {
                return Status.OK;
            }
            return Status.FORCE_PAGE_BREAK;
        }
        case ODD_PAGE: {
View Full Code Here

Examples of org.axsl.area.NormalFlowRefArea.siblingIndex()

        }
        case ODD_PAGE: {
            // if first ColumnArea, empty, _and_ in odd page,
            // return OK
            if (colArea.getChildCount() == 0
                    && (colArea.siblingIndex() == 0)
                    && (colArea.getPage().getNumber() % 2 != 0)) {
                return Status.OK;
            }
            return Status.FORCE_PAGE_BREAK_ODD;
        }
View Full Code Here

Examples of org.axsl.area.NormalFlowRefArea.siblingIndex()

        }
        case EVEN_PAGE: {
            // if first ColumnArea, empty, _and_ in even page,
            // return OK
            if (colArea.getChildCount() == 0
                    && (colArea.siblingIndex() == 0)
                    && (colArea.getPage().getNumber() % 2 == 0)) {
                return Status.OK;
            }
            return Status.FORCE_PAGE_BREAK_EVEN;
        }
View Full Code Here

Examples of org.jsoup.nodes.Element.siblingIndex()

  private void removeNonStandardTopNavigation() {
    Element firstHeading = findFirstElement(Selector.TOP_LEVEL_HEADINGS);
    if (firstHeading == null)
      return;
    int firstHeadingIndex = firstHeading.siblingIndex();
    List<Node> topNavigationEtc = new ArrayList<>();
    for (Node node : firstHeading.parent().childNodes()) {
      if (node.siblingIndex() < firstHeadingIndex)
        topNavigationEtc.add(node);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.