Examples of AnchorAlignment


Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

  }

  protected AnchorAlignment getAnchorAlign() {
    switch (toolTipConfig.getAnchor()) {
      case TOP:
        return new AnchorAlignment(Anchor.TOP_LEFT, Anchor.BOTTOM_LEFT);
      case LEFT:
        return new AnchorAlignment(Anchor.TOP_LEFT, Anchor.TOP_RIGHT);
      case RIGHT:
        return new AnchorAlignment(Anchor.TOP_RIGHT, Anchor.TOP_LEFT);
      default:
        return new AnchorAlignment(Anchor.BOTTOM_LEFT, Anchor.TOP_LEFT);
    }
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

        targetPos = Anchor.TOP_LEFT;
        offsetX = 2;
        offsetY = 11 + anchorOffset;
        break;
    }
    anchorEl.alignTo(getElement(), new AnchorAlignment(anchorPos, targetPos, false), offsetX, offsetY);
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

   *
   * @param constrainViewport true to constrain the element position to the
   *          viewport.
   */
  public final void center(boolean constrainViewport) {
    alignTo(Document.get().getBody(), new AnchorAlignment(Anchor.CENTER, Anchor.CENTER, constrainViewport), null);
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

   */
  public final void center(Element container) {
    if (container == null) {
      container = Document.get().getBody();
    }
    alignTo(container, new AnchorAlignment(Anchor.CENTER, Anchor.CENTER, false), null);
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

      public void execute() {
        Element input = null;//target.getElement().<XElement> cast().selectNode("input");
        if (input == null) {
          input = target.getElement();
        }
        errorIcon.getElement().alignTo(input, new AnchorAlignment(Anchor.TOP_LEFT, Anchor.TOP_RIGHT, true),
            new int[] {2, 3});
      }
    });
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

  }

  protected AnchorAlignment getAnchorAlign() {
    switch (toolTipConfig.getAnchor()) {
      case TOP:
        return new AnchorAlignment(Anchor.TOP_LEFT, Anchor.BOTTOM_LEFT);
      case LEFT:
        return new AnchorAlignment(Anchor.TOP_LEFT, Anchor.TOP_RIGHT);
      case RIGHT:
        return new AnchorAlignment(Anchor.TOP_RIGHT, Anchor.TOP_LEFT);
      default:
        return new AnchorAlignment(Anchor.BOTTOM_LEFT, Anchor.TOP_LEFT);
    }
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

        anchorPos = Anchor.RIGHT;
        targetPos = Anchor.TOP_LEFT;
        offset = new int[] {2, 11 + anchorOffset};
        break;
    }
    anchorEl.alignTo(getElement(), new AnchorAlignment(anchorPos, targetPos, false), offset);
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

        logger.finest("doLayout");
      }
      XElement con = getContainerTarget();
      XElement e = widget.getElement().cast();
      e.makePositionable(true);
      Point p = e.getAlignToXY(con, new AnchorAlignment(Anchor.CENTER, Anchor.CENTER), null);
      p = e.translatePoints(p);
      applyLayout(widget, new Rectangle(p.getX(), p.getY(), -1, -1));
    }
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

              boolean before = event.getNativeEvent().getClientX() < active.getAbsoluteLeft() + active.getOffsetWidth()
                  / 2;
              showStatusIndicator(true);

              if (before) {
                statusIndicatorTop.alignTo(active.getElement(), new AnchorAlignment(Anchor.BOTTOM, Anchor.TOP_LEFT),
                    new int[] {-1, 0});
                statusIndicatorBottom.alignTo(active.getElement(), new AnchorAlignment(Anchor.TOP, Anchor.BOTTOM_LEFT),
                    new int[] {-1, 0});
              } else {
                statusIndicatorTop.alignTo(active.getElement(), new AnchorAlignment(Anchor.BOTTOM, Anchor.TOP_RIGHT),
                    new int[] {1, 0});
                statusIndicatorBottom.alignTo(active.getElement(),
                    new AnchorAlignment(Anchor.TOP, Anchor.BOTTOM_RIGHT), new int[] {1, 0});
              }

              int i = active.column;
              if (!before) {
                i++;
View Full Code Here

Examples of com.sencha.gxt.core.client.Style.AnchorAlignment

          if (container instanceof Component) {
            ((Component) container).focus();
          }
        }
      });
      menu.show(h.getTrigger(), new AnchorAlignment(Anchor.TOP_LEFT, Anchor.BOTTOM_LEFT, true));
    }
  }
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.