Examples of AnchorAlignment


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

  /**
   * Centers the window in the viewport. Should only be called when the window
   * is visible.
   */
  public void center() {
    Point p = getElement().getAlignToXY(Document.get().getBody(), new AnchorAlignment(Anchor.CENTER, Anchor.CENTER),
        null);
    setPagePosition(p.getX(), p.getY());
  }
View Full Code Here

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

   
    int aw = width - listContainer.getElement().getFrameWidth(Side.LEFT, Side.RIGHT);

    listContainer.getElement().makePositionable(true);
    listContainer.setPixelSize(aw, h);
    listContainer.getElement().alignTo(wrapper, new AnchorAlignment(Anchor.TOP_LEFT, Anchor.BOTTOM_LEFT, true), 0, 0);
    listContainer.getElement().setVisibility(true);

    listView.setWidth(aw);
    listView.setHeight(h - 2 - (pagingToolBar != null ? pagingToolBar.getOffsetHeight() : 0));
View Full Code Here

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

    // handle case when down arrow is opening menu
    Scheduler.get().scheduleDeferred(new ScheduledCommand() {

      @Override
      public void execute() {
        menu.show(parent, new AnchorAlignment(Anchor.TOP_LEFT, Anchor.BOTTOM_LEFT, true));
        menu.getDatePicker().focus();
       
        fireEvent(context, new ExpandEvent(context));
      }
    });
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), 0, 0);
      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

          active = h;
          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), -1, 0);
            statusIndicatorBottom.alignTo(active.getElement(), new AnchorAlignment(Anchor.TOP, Anchor.BOTTOM_LEFT), -1, 0);
          } else {
            statusIndicatorTop.alignTo(active.getElement(), new AnchorAlignment(Anchor.BOTTOM, Anchor.TOP_RIGHT), 1, 0);
            statusIndicatorBottom.alignTo(active.getElement(), new AnchorAlignment(Anchor.TOP, Anchor.BOTTOM_RIGHT), 1, 0);
          }

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

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

        assert errorIcon.isAttached() : "errorIcon not attached";
        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, false), 2, 3);
      }
    });
  }
View Full Code Here

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

   * Centers the element.
   *
   * @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), 0, 0);
  }
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), 0, 0);
  }
View Full Code Here

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

  /**
   * Centers the window in the viewport. Should only be called when the window is visible.
   */
  public void center() {
    Point p = getElement().getAlignToXY(Document.get().getBody(), new AnchorAlignment(Anchor.CENTER, Anchor.CENTER), 0,
        0);
    setPagePosition(p.getX(), p.getY());
  }
View Full Code Here

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

      public void onHide(HideEvent event) {
        h.activateTrigger(false);
        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.