Examples of LayoutPosition


Examples of mindnotes.client.ui.NodeLayout.LayoutPosition

  @Override
  public void onMove(DragContext context) {
    super.onMove(context);

    LayoutPosition position = findBestDropPosition(context);

    if (_position == null || !_position.equals(position)) {
      _mindMapWidget.holdLayout();
      // remove ghost from previous node
      if (_position != null) {
View Full Code Here

Examples of mindnotes.client.ui.NodeLayout.LayoutPosition

    int px = -_mindMapWidget.getLayoutOffsetX() + root.getOffsetX()
        + context.mouseX - panelLeft;
    int py = -_mindMapWidget.getLayoutOffsetY() + root.getOffsetY()
        + context.mouseY - panelTop;

    LayoutPosition position = NodeLayout.findClosestInsertPosition(root,
        px, py);
    while (!(position.parent instanceof NodeWidget)
        && position.parent != null) {
      LayoutTreeElement newParent = position.parent.getLayoutParent();
      position.index = newParent.getLayoutChildren().indexOf(
View Full Code Here

Examples of mindnotes.client.ui.NodeLayout.LayoutPosition

    MockLayoutTreeElement child = new MockLayoutTreeElement(0, 0, 200, 100,
        root, NodeLocation.LEFT);
    root.addChild(child);

    NodeLayout.doLayout(root);
    LayoutPosition position = NodeLayout.findClosestInsertPosition(root,
        110, -100);

    assertEquals(position.parent, root);
    assertEquals(NodeLocation.RIGHT, position.location);
View Full Code Here

Examples of org.richfaces.component.LayoutPosition

  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.component.LayoutPosition

  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.component.LayoutPosition

        } else {
            writer.write(".rf-pg{margin:auto 10px;width:auto;}\n");
        }
        // Calculate sidebar width
        if (component.getFacet("sidebar") != null) {
            LayoutPosition sidebarPosition = page.getSidebarPosition();
            if (LayoutPosition.right.equals(sidebarPosition)) {
                writer
                        .write(".rf-pg-m{float:left;margin-right:-30em;}\n");
            } else {
                writer
View Full Code Here

Examples of org.richfaces.component.LayoutPosition

// -------------------------- OTHER METHODS --------------------------

    public String layoutStyle(FacesContext context, AbstractLayoutPanel panel) {
        StringBuilder style = new StringBuilder();
        LayoutPosition position = panel.getPosition();
        Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
        Object parentLayout = requestMap.get(LayoutRenderer.LAYOUT_STRUCTURE_ATTRIBUTE);
        LayoutStructure structure;
        if (null != parentLayout && parentLayout instanceof LayoutStructure) {
            structure = (LayoutStructure) parentLayout;
View Full Code Here

Examples of org.richfaces.component.LayoutPosition

    }
  }

  public String layoutStyle(FacesContext context, UILayoutPanel panel) {
    StringBuilder style = new StringBuilder();
    LayoutPosition position = panel.getPosition();
    Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
    Object parentLayout = requestMap.get(LayoutRenderer.LAYOUT_STRUCTURE_ATTRIBUTE);
    LayoutStructure structure;
    if (null != parentLayout && parentLayout instanceof LayoutStructure) {
      structure = (LayoutStructure) parentLayout;     
View Full Code Here

Examples of org.richfaces.component.LayoutPosition

  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.component.LayoutPosition

  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
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.