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

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


   * as layout manager.
   *
   * @param layout the FormLayout to use
   */
  public PanelBuilder(FormLayout layout) {
    this(layout, new LayoutPanel(new BoxLayout(Orientation.VERTICAL)));
  }
View Full Code Here


   * Creates an empty sheet panel. A child widget must be added to it before it
   * is shown.
   */
  public SheetLayoutPanel(Resources resources) {
    super(resources);
    final LayoutPanel layoutPanel = new LayoutPanel();
    layoutPanel.setPadding(0);
    super.setWidget(layoutPanel);
  }
View Full Code Here

    return result;
  }

  @Override
  public Widget getWidget() {
    final LayoutPanel layoutPanel = getLayoutPanel();
    if (layoutPanel.getWidgetCount() > 0) {
      return layoutPanel.getWidget(0);
    } else {
      return null;
    }
  }
View Full Code Here

    return getLayoutPanel().needsLayout();
  }

  @Override
  public void setWidget(Widget w) {
    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.clear();
    layoutPanel.add(w);
  }
View Full Code Here

    firePropertyChange("sideBar", oldValue, this.sideBar);
  }

  private void replaceLayoutPanelChild(Widget oldChild, Widget newChild,
      LayoutData layoutData) {
    LayoutPanel layoutPanel = getLayoutPanel();
    if (oldChild != null) {
      layoutPanel.remove(oldChild);
    }
    if (newChild != null) {
      layoutPanel.add(newChild, layoutData);
    }
    if (layoutPanel.isAttached()) {
      layoutPanel.invalidate(newChild);
      // XXX layoutPanel.layout();
    }
  }
View Full Code Here

            }
        };
    };
   
    public AnimatedMenuViewImpl() {
        LayoutPanel layoutPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
        layoutPanel.setLayoutData(new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
        layoutPanel.setAnimationEnabled(true);
        panel.setStylePrimaryName("fbStackPanel");
        layoutPanel.add(panel);
        add(layoutPanel);
       
        new MenuPresenter(this);
    }
View Full Code Here

  private void createLayoutWindowPanel() {
    windowPanel = new WindowPanel("Authentication required");
    Widget closeBtn = windowPanel.getHeader().getWidget(0, Caption.CaptionRegion.RIGHT);
    closeBtn.setVisible(false);
    windowPanel.setAnimationEnabled(false);
    LayoutPanel panel = new LayoutPanel();
    //panel.addStyleName("WSLogin");
    windowPanel.setWidget(panel);


    // create contents
    panel.setLayout(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    Grid grid = new Grid(3, 2);
    grid.setWidget(0, 0, new Label("Username:"));
    grid.setWidget(0, 1, userNameInput);

    grid.setWidget(1, 0, new Label("Password:"));
    grid.setWidget(1, 1, passwordInput);

    grid.setWidget(2, 0, new HTML(""));
    grid.setWidget(2, 1, loginButton);

    /**
     * Create a handler so that striking enter automatically
     * submits the login.
     */
    KeyDownHandler clickOnEnter = new KeyDownHandler() {

      public void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
          loginButton.click();
        }
      }
    };

    userNameInput.addKeyDownHandler(clickOnEnter);
    passwordInput.addKeyDownHandler(clickOnEnter);

    /**
     * Close the window immediately upon submission.
     */
    loginButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        windowPanel.hide();
      }
    });

    panel.add(grid);

    windowPanel.getHeader().add(Caption.IMAGES.window().createImage());

    windowPanel.addCloseHandler(new CloseHandler<PopupPanel>() {
      public void onClose(CloseEvent<PopupPanel> event) {
View Full Code Here

 
  private void createInfoPanel()
  {

    // ----------- logo panel
    LayoutPanel logoPanel = new LayoutPanel(new BoxLayout());
    logoPanel.setStyleName("bpm-header-left");

    /*Image logo = new Image(appContext.getConfig().getLogo());
    logo.setHeight("50");
    logoPanel.add(logo);*/

 
View Full Code Here

TOP

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

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.