Package org.gwt.mosaic.ui.client

Examples of org.gwt.mosaic.ui.client.WindowPanel$ResizeDragController


   /**
   * The 'layout' window panel.
   */
  private void createLayoutWindowPanel(String title, SearchDefinitionView view) {
    window = new WindowPanel(title);
    window.setAnimationEnabled(true);
    window.setSize("250px", "160px");

    window.setWidget(view);

View Full Code Here


  /**
   * The 'layout' window panel.
   */
  private void createLayoutWindowPanel() {
    window = new WindowPanel(config.getProfileName());
    window.setAnimationEnabled(true);
    window.setSize("320px", "180px");

    LayoutPanel panel = new LayoutPanel();

View Full Code Here

    public void execute() {
        this.bus.fireEvent(new GetFormRepresentationEvent(this.saveType));
    }

    protected void refreshPopup(String url) {
        WindowPanel window = UIUtils.createWindow("Preview as " + this.saveType);
        window.getDesktopPanel().addStyleName("formDisplay");
        Frame content = new Frame(url);
        window.setWidget(content);
        int height = RootPanel.getBodyElement().getClientHeight();
        int width = RootPanel.getBodyElement().getClientWidth();
        int left = RootPanel.getBodyElement().getAbsoluteLeft();
        int top = RootPanel.getBodyElement().getAbsoluteTop();
        content.setPixelSize(width - 200, height - 200);
        window.showModal();
        window.setPopupPosition(left + 100, top + 100);
        window.setPixelSize(width - 200, height - 200);
    }
View Full Code Here

import org.gwt.mosaic.ui.client.WindowPanel;

public class UIUtils {

    public static WindowPanel createWindow(String title) {
        return new WindowPanel(new DesktopPanel() {
            @Override
            public void makeDraggable(WindowPanel w) {
                //do nothing to avoid gwt-dnd issue 43
            }
        }, title, false, true);
View Full Code Here

    userNameInput.setFocus(true);
  }

  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");
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.WindowPanel$ResizeDragController

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.