Package org.gwt.mosaic.ui.client.layout

Examples of org.gwt.mosaic.ui.client.layout.BoxLayout


  }

  protected ComboBoxBase(String styleName) {
    super();
    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setLayout(new BoxLayout(Orientation.HORIZONTAL));
    layoutPanel.setPadding(0);
    layoutPanel.setWidgetSpacing(0);

    sinkEvents(Event.KEYEVENTS);
View Full Code Here


  /**
   * Creates a new <code>ScrollLayoutPanel</code> with a vertical
   * <code>BoxLayout</code>.
   */
  public ScrollLayoutPanel() {
    this(new BoxLayout(Orientation.VERTICAL));
  }
View Full Code Here

  }

  public Separator(String text, HorizontalAlignmentConstant align) {
    this.align = checkHorizontalAlignment(align);
    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setLayout(new BoxLayout(Alignment.CENTER));
    layoutPanel.setPadding(0);
    layoutPanel.setWidgetSpacing(8);

    final TextLabel l = new TextLabel(text);
    l.setWordWrap(false);
View Full Code Here

  /**
   * Creates a {@code ToolBar} instance.
   */
  public ToolBar() {
    super(new BoxLayout());
    setStyleName(DEFAULT_STYLENAME);
  }
View Full Code Here

   *
   * @see com.google.gwt.user.client.ui.HasWidgets#add(com.google.gwt.user.client.ui.Widget)
   */
  public void add(Widget w) {
    final LayoutPanel layoutPanel = getLayoutPanel();
    final BoxLayout boxLayoutMgr = (BoxLayout) layoutPanel.getLayout();
    if (w instanceof ToolBarSpring) {
      layoutPanel.add(w, new BoxLayoutData(FillStyle.BOTH));
    } else if (boxLayoutMgr.getOrientation() == Orientation.HORIZONTAL) {
      final String width = getWidgetWidth(w);
      layoutPanel.add(w, new BoxLayoutData(FillStyle.VERTICAL, width, null));
    } else {
      final String height = getWidgetHeight(w);
      getLayoutPanel().add(w, new BoxLayoutData(FillStyle.BOTH, null, height));
View Full Code Here

   *          a row (horizontal) or in a column (vertical)
   * @deprecated use {{@link #setOrientation(Orientation)} instead
   */
  @Deprecated
  public void setOrient(BoxLayout.Orientation orient) {
    final BoxLayout boxLayout = (BoxLayout) getLayoutPanel().getLayout();
    if (boxLayout.getOrientation() != orient) {
      boxLayout.setOrientation(orient);
    }
  }
View Full Code Here

    prompt.setAnimationEnabled(true);
    int preferredWidth = Window.getClientWidth();
    preferredWidth = Math.max(preferredWidth / 3, 256);
    prompt.setWidth(preferredWidth + "px");

    final LayoutPanel panel = new LayoutPanel(new BoxLayout(
        Orientation.VERTICAL));
    panel.setPadding(0);
    panel.add(new HTML(message), new BoxLayoutData(FillStyle.HORIZONTAL));
    panel.add(input, new BoxLayoutData(FillStyle.HORIZONTAL));
View Full Code Here

    // (ggeorg) this is a workaround for the infamous Firefox cursor bug
    if (UserAgent.isGecko()) {
      DOM.setStyleAttribute(getLayoutPanel().getElement(), "overflow", "auto");
    }

    final BoxLayout buttonPanelLayout = new BoxLayout(Orientation.HORIZONTAL);
    buttonPanelLayout.setLeftToRight(false);
    buttonPanel.setLayout(buttonPanelLayout);
    buttonPanel.setPadding(5);
    setFooter(buttonPanel);

    if (type == MessageBoxType.ALERT) {
View Full Code Here

      }
    }
  };

  public StackLayoutPanel() {
    super(new BoxLayout(Orientation.VERTICAL));
    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setWidgetSpacing(0);
    layoutPanel.setAnimationCallback(new AnimationCallback() {
      public void onAnimationComplete() {
        for (int i = 0, n = getLayoutPanel().getWidgetCount(); i < n; i++) {
View Full Code Here

   * Constructs a <code>DefaultFormBuilder</code> for the given layout.
   *
   * @param layout the <code>FormLayout</code> to be used
   */
  public DefaultFormBuilder(FormLayout layout) {
    this(layout, new LayoutPanel(new BoxLayout(Orientation.VERTICAL)));
  }
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.layout.BoxLayout

Copyright © 2018 www.massapicom. 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.