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

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


    layoutPanel.setWidgetSpacing(10);
    // if (UserAgent.isGecko()) {
    DOM.setStyleAttribute(layoutPanel.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() {
    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setLayout(new BoxLayout(Orientation.VERTICAL));
    layoutPanel.setWidgetSpacing(0);

    setStyleName(DEFAULT_STYLENAME);
  }
View Full Code Here

   */
  private static final String DEFAULT_STYLENAME = "mosaic-ToolBar";

  public ToolBar() {
    super();
    getLayoutPanel().setLayout(new BoxLayout());
    setStyleName(DEFAULT_STYLENAME);
  }
View Full Code Here

    add(sep);
    return sep;
  }

  public void setOrient(BoxLayout.Orientation orient) {
    final BoxLayout boxLayout = (BoxLayout) getLayoutPanel().getLayout();
    if (boxLayout.getOrient() != orient) {
      boxLayout.setOrient(orient);
    }
  }
View Full Code Here

  }

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

    input = new TextBox();
    layoutPanel.add(input, new BoxLayoutData(FillStyle.BOTH));
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 Label l = new Label(text);
    l.setWordWrap(false);
View Full Code Here

  private String name;

  private List<ClickHandler> clickHandlers;

  public WSLaunchButton(ImageResource resource, String name) {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));


    this.name = name;

    sinkEvents(Event.MOUSEEVENTS);
View Full Code Here

  public WSWindowPanel()
  {
    windowPanel = new WindowPanel();
    windowPanel.setAnimationEnabled(true);
    layout = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    layout.setPadding(5);
    windowPanel.setWidget(layout);
  }
View Full Code Here

class SourceViewWidget extends LayoutPanel {
  private SourcePanel formatted;
  private MessageBus bus = ErraiBus.get();

  public SourceViewWidget(boolean hasInput) {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));

    if (hasInput) {
      final TextBox sourceName = new TextBox();

      this.add(sourceName);
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.