Java 类com.google.gwt.user.client.ui.Frame 实例源码

项目:sig-seguimiento-vehiculos    文件:PreviewWidget.java   
private Frame createFrame() {
    final Frame frame = new Frame(DEFAULT_TEMPLATE_PATH);
    frame.getElement().setId(DEFAULT_FRAME_NAME);
    frame.setTitle(UIMessages.INSTANCE.previewTitle());
    frame.setWidth("500px");
    frame.setHeight("500px");
    frame.getElement().getStyle().setBackgroundColor("gray");

    frame.setVisible(true);
    RootPanel.get().add(frame);

    frame.addLoadHandler(new LoadHandler() {

        @Override
        public void onLoad(LoadEvent event) {
            frame.getElement().getStyle().setBackgroundColor("white");
            zoomPageComboBox.setValue(75);
        }

    });

    return frame;
}
项目:document-management-system    文件:Administration.java   
/**
 * Administration
 */
public Administration() {
    iframe = new Frame("about:blank");

    DOM.setElementProperty(iframe.getElement(), "frameborder", "0");
    DOM.setElementProperty(iframe.getElement(), "marginwidth", "0");
    DOM.setElementProperty(iframe.getElement(), "marginheight", "0");
    DOM.setElementProperty(iframe.getElement(), "scrolling", "no");

    // Commented because on IE show clear if allowtransparency=true
    DOM.setElementProperty(iframe.getElement(), "allowtransparency", "false");

    iframe.setUrl(Main.CONTEXT + "/admin/index.jsp");
    iframe.setStyleName("okm-Iframe");

    initWidget(iframe);
}
项目:document-management-system    文件:HTMLPreview.java   
/**
 * HTMLPreview
 */
public HTMLPreview() {
    iframe = new Frame("about:blank");

    DOM.setElementProperty(iframe.getElement(), "frameborder", "0");
    DOM.setElementProperty(iframe.getElement(), "marginwidth", "0");
    DOM.setElementProperty(iframe.getElement(), "marginheight", "0");
    //DOM.setElementProperty(iframe.getElement(), "scrolling", "yes");

    // Commented because on IE show clear if allowtransparency=true
    DOM.setElementProperty(iframe.getElement(), "allowtransparency", "false");

    iframe.setStyleName("okm-Iframe");
    iframe.addStyleName("okm-EnableSelect");

    initWidget(iframe);
}
项目:document-management-system    文件:MailPreview.java   
/**
 * MailPreview
 */
public MailPreview() {
    iframe = new Frame("about:blank");

    DOM.setElementProperty(iframe.getElement(), "frameborder", "0");
    DOM.setElementProperty(iframe.getElement(), "marginwidth", "0");
    DOM.setElementProperty(iframe.getElement(), "marginheight", "0");
    //DOM.setElementProperty(iframe.getElement(), "scrolling", "yes");

    // Commented because on IE show clear if allowtransparency=true
    DOM.setElementProperty(iframe.getElement(), "allowtransparency", "false");

    iframe.setStyleName("okm-Iframe");
    iframe.addStyleName("okm-EnableSelect");

    initWidget(iframe);
}
项目:document-management-system    文件:SyntaxHighlighterPreview.java   
/**
 * HTMLPreview
 */
public SyntaxHighlighterPreview() {
    iframe = new Frame("about:blank");

    DOM.setElementProperty(iframe.getElement(), "frameborder", "0");
    DOM.setElementProperty(iframe.getElement(), "marginwidth", "0");
    DOM.setElementProperty(iframe.getElement(), "marginheight", "0");
    //DOM.setElementProperty(iframe.getElement(), "scrolling", "yes");

    // Commented because on IE show clear if allowtransparency=true
    DOM.setElementProperty(iframe.getElement(), "allowtransparency", "false");

    iframe.setStyleName("okm-Iframe");
    iframe.addStyleName("okm-EnableSelect");

    initWidget(iframe);
}
项目:dataworks-zeus    文件:DefaultPanel.java   
public DefaultPanel(final String id){
        setModal(true);
        setSize("800", "800");
//      setBorders(hidden);
//      setBodyStyle("border:none");
        setHeadingText("datax配置工具");

        FramedPanel fp=new FramedPanel();
        fp.setHeaderVisible(false);
        fp.setButtonAlign(BoxLayoutPack.CENTER);

        Date d = new Date();
        Frame frame = new Frame("lingoes.html?="+d.getTime());
        frame.setStylePrimaryName("lingoes");
        frame.getElement().getStyle().setProperty("border", "none");
        fp.add(frame);

        add(fp,new MarginData(5));
    }
项目:aggregate    文件:ViewServletPopup.java   
public ViewServletPopup(String title, String url) {
  super();
  setTitle(title);

  // so we can play with the dimensions...
  int innerWidth = Window.getClientWidth()*2 / 3;
  int innerHeight = Window.getClientHeight()*2 /3;

  Frame frame = new Frame(url);
  frame.addStyleName("uploadFrame");
  frame.setPixelSize(innerWidth - 30,innerHeight);

  FlowPanel panel = new FlowPanel();
  panel.setPixelSize(innerWidth+6,innerHeight+30);

  ClosePopupButton closeButton = new ClosePopupButton(this);
  closeButton.addStyleName("uploadCloseButton");
  panel.add(closeButton);
  panel.add(frame);
  setWidget(panel);
}
项目:aggregate    文件:BinaryPopup.java   
public BinaryPopup(String url, boolean larger) {
  super();
  setTitle("Binary");

  int width = Window.getClientWidth() / 2;
  int height = Window.getClientHeight() / 2;

  if(larger) {
    width = Window.getClientWidth() * 4 / 5;
    height = Window.getClientHeight() * 4 / 5;
  }

  Frame frame = new Frame(url);
  frame.setPixelSize(width, height); 

  FlowPanel panel = new FlowPanel();
  panel.setStylePrimaryName(UIConsts.VERTICAL_FLOW_PANEL_STYLENAME);
  panel.setPixelSize(width+6, height+30);
  panel.add(new SimplePanel(new ClosePopupButton(this)));       
  panel.add(frame);      
  setWidget(panel);
}
项目:che    文件:GreetingPartViewImpl.java   
public GreetingPartViewImpl() {
  frame = new Frame();
  frame.setWidth("100%");
  frame.setHeight("100%");
  frame.getElement().getStyle().setBorderStyle(Style.BorderStyle.NONE);
  frame.getElement().getStyle().setVisibility(Style.Visibility.HIDDEN);

  frame.getElement().setAttribute("id", "greetingFrame");
  frame.getElement().setAttribute("tabindex", "0");

  setContentWidget(frame);

  frame.addLoadHandler(
      event -> frame.getElement().getStyle().setVisibility(Style.Visibility.VISIBLE));

  handleFrameEvents(frame.getElement());
}
项目:onecmdb    文件:RegistrationWindow.java   
protected void initUI() {
    BaseModel param = item.getParams();
    String url = (String)param.get("url");
    Frame f = new Frame();
    f.setSize("100%", "100%");
    ContentPanel cp = new ContentPanel();
    cp.setHeaderVisible(false);
    cp.setLayout(new FitLayout());
    cp.add(f);
    ToolBar bottom = new ToolBar();
    CheckBox checkBox = new CheckBox();
    checkBox.setBoxLabel("Don't show this again");
    bottom.add(new AdapterToolItem(checkBox));
    bottom.add(new FillToolItem());
    bottom.add(new CloseTextToolItem(this));
    cp.setBottomComponent(bottom);
    add(cp);
    layout();
}
项目:geowe-core    文件:PreviewWidget.java   
private Frame createFrame() {
    final Frame frame = new Frame(DEFAULT_TEMPLATE_PATH);
    frame.getElement().setId(DEFAULT_FRAME_NAME);
    frame.setTitle(UIMessages.INSTANCE.previewTitle());
    frame.setWidth("500px");
    frame.setHeight("500px");
    frame.getElement().getStyle().setBackgroundColor("gray");

    frame.setVisible(true);
    RootPanel.get().add(frame);

    frame.addLoadHandler(new LoadHandler() {

        @Override
        public void onLoad(LoadEvent event) {
            frame.getElement().getStyle().setBackgroundColor("white");
            zoomPageComboBox.setValue(75);
        }

    });

    return frame;
}
项目:firefly    文件:GwtUtil.java   
/**
 *
 * @param url
 * @param checkIntvlInMsec check interval in milliseconds
 * @param maxTries
 * @param confirmationCallback
 */
public static void submitDownloadUrl(String url, int checkIntvlInMsec, final int maxTries, final Command confirmationCallback) {
    if (checkIntvlInMsec > 0 && maxTries > 0 && confirmationCallback != null) {
        Frame f = Application.getInstance().getNullFrame();
        final String codId = String.valueOf(System.currentTimeMillis());
        url += (url.contains("?") ? "&" : "?") + COD_ID + "="+ codId;
        f.setUrl(url);
        Scheduler.get().scheduleFixedDelay(new Scheduler.RepeatingCommand() {
            int tries = 0;
            public boolean execute() {
                String c = Cookies.getCookie(COD_ID);
                tries++;
                if ((c != null && c.equals(codId)) || tries > maxTries) {
                    Cookies.removeCookie(COD_ID, "/");
                    confirmationCallback.execute();
                    return false;
                } else {
                    return true;
                }
            }
        }, checkIntvlInMsec);
    } else {
        showDebugMsg("InvalidArgumentException: submitDownloadUrl");
    }
}
项目:platypus-js    文件:AppClient.java   
public void startDownloadRequest(String aUrlPrefix, final int aRequestType, Map<String, String> aParams, RequestBuilder.Method aMethod) throws Exception {
    final Frame frame = new Frame();
    frame.setVisible(false);

    frame.addLoadHandler(new LoadHandler() {

        @Override
        public void onLoad(LoadEvent event) {
            Timer timer = new Timer() {

                @Override
                public void run() {
                    frame.removeFromParent();
                }
            };
            timer.schedule(2000);
        }
    });
    String query = "";
    for (Map.Entry<String, String> ent : aParams.entrySet()) {
        query += param(ent.getKey(), ent.getValue()) + "&";
    }
    query += param(PlatypusHttpRequestParams.TYPE, String.valueOf(aRequestType));
    frame.setUrl(apiUrl + aUrlPrefix + "?" + query);
    RootPanel.get().add(frame);
}
项目:OneCMDBwithMaven    文件:RegistrationWindow.java   
protected void initUI() {
    BaseModel param = item.getParams();
    String url = (String)param.get("url");
    Frame f = new Frame();
    f.setSize("100%", "100%");
    ContentPanel cp = new ContentPanel();
    cp.setHeaderVisible(false);
    cp.setLayout(new FitLayout());
    cp.add(f);
    ToolBar bottom = new ToolBar();
    CheckBox checkBox = new CheckBox();
    checkBox.setBoxLabel("Don't show this again");
    bottom.add(new AdapterToolItem(checkBox));
    bottom.add(new FillToolItem());
    bottom.add(new CloseTextToolItem(this));
    cp.setBottomComponent(bottom);
    add(cp);
    layout();
}
项目:prima-aletheia-web-emop    文件:WebLayoutEditor.java   
/**
 * Shows the help dialogue.
 */
private void showHelp() {
    try {
        final DialogBox helpDialog = new DialogBox(true);
        helpDialog.setGlassEnabled(true);

        //Renders "help.html" in an iframe.
        Frame frame = new Frame("Help.html"); 
        frame.setWidth(CONSTANTS.HelpDialogWidth()); 
        frame.setHeight(CONSTANTS.HelpDialogWidth()); 
        frame.getElement().getStyle().setBorderWidth(0, Unit.PX);
        helpDialog.setWidget(frame);

        helpDialog.center();

        helpDialog.show();
    } catch (Exception exc) {
        logManager.logError(ERROR_SHOWING_HELP_DIALOG, "Error on trying to display the help dialogue");
        exc.printStackTrace();
    }
}
项目:geomajas-project-client-gwt2    文件:DefaultPrintRequestHandler.java   
private void createHiddenFrame(PrintFinishedInfo info) {
    final Frame frame = new Frame();
    frame.setVisible(false);
    UrlBuilder builder = new UrlBuilder(info.getUrl());
    for (String name : info.getParams().keySet()) {
        builder.addParameter(name, info.getParams().get(name));
    }
    frame.setUrl(builder.toString());
    frame.setPixelSize(0, 0);
    frame.getElement().getStyle().setPosition(Style.Position.ABSOLUTE);
    frame.getElement().getStyle().setBorderWidth(0, Style.Unit.PX);
    frame.addLoadHandler(new LoadHandler() {

        @Override
        public void onLoad(LoadEvent event) {
            frame.removeFromParent();
        }
    });
    RootPanel.get().add(frame);
}
项目:LAS    文件:HelpPanel.java   
public void setHelpURL(String url) {
    Frame help = new Frame(GWT.getModuleBaseURL()+url);
    help.setHeight(frameHeight);
    help.setWidth(frameWidth);
    layoutPanel.clear();
    layoutPanel.add(closeButton);
    layoutPanel.add(help);
}
项目:wte4j    文件:TemplateUploadFormPanel.java   
private void initIFrame() {
    final Frame iframe = new Frame("javascript:\"\"");
    iframe.getElement().setAttribute("name", id);
    iframe.getElement().setAttribute("style", "position:absolute;width:0;height:0;border:0");
    iframe.addLoadHandler(new LoadHandler() {
        @Override
        public void onLoad(LoadEvent arg0) {
            String content = IFrameElement.as(iframe.getElement()).getContentDocument().getBody().getInnerHTML();
            if (content != null && !"".equals(content))
                formPanel.fireEvent(new SubmitCompleteEvent(content) {
                });
        }
    });
    flowPanel.add(iframe);
}
项目:dataworks-zeus    文件:PartitionTab.java   
private void downloadSelectPartition() {
    PartitionModel pm = grid.getSelectionModel().getSelectedItem();
    if (RootPanel.get("downloadiframe") != null) {
        Widget widgetFrame = (Widget) RootPanel
                .get("downloadiframe");
        widgetFrame.removeFromParent();
    }
    Frame frame = new Frame(GWT.getHostPageBaseURL()
            + "partition_download.do" + "?path=" + pm.getPath()
            + "&table=" + panel.getTable().getName() + "&dbname=" + panel.getTable().getDbName());
    frame.setVisible(false);
    frame.setSize("0px", "0px");
    RootPanel.get().add(frame);
}
项目:che    文件:DownloadContainer.java   
@Inject
public DownloadContainer() {
  frame = new Frame();
  frame.getElement().setAttribute("name", TARGET);
  frame.setSize("0px", "0px");
  frame.setVisible(false);
  frame.ensureDebugId(TARGET);

  RootLayoutPanel.get().add(frame);
}
项目:che    文件:QuickDocViewImpl.java   
private void createFrame() {
  frame = new Frame();
  frame.setSize("100%", "100%");
  frame.getElement().getStyle().setBorderStyle(Style.BorderStyle.NONE);
  frame
      .getElement()
      .setAttribute("sandbox", "allow-scripts allow-same-origin"); // empty value, not null
  frame.getElement().getStyle().setProperty("resize", "both");
}
项目:che    文件:JavaCompletionProposal.java   
/** {@inheritDoc} */
@Override
public void getAdditionalProposalInfo(AsyncCallback<Widget> callback) {
  Frame frame = new Frame();
  frame.setSize("100%", "100%");
  frame.getElement().getStyle().setBorderStyle(Style.BorderStyle.NONE);
  frame.getElement().setAttribute("sandbox", ""); // empty value, not null
  frame.setUrl(client.getProposalDocUrl(id, sessionId));
  callback.onSuccess(frame);
}
项目:onecmdb    文件:WelcomeScreen.java   
public WelcomeScreen() {
    Frame f = new Frame("welcome.html");
    f.setWidth("100%");
    f.setHeight("100%");
    initWidget(f);

}
项目:onecmdb    文件:MDRStartWidget.java   
public void doStart() {
 for (TabItem item : advanced.getItems()) {
     CIModel model = (CIModel)item.getData("model");
     item.removeAll();
     Frame f = new Frame();
     item.add(f);
     f.setUrl(getStartURL(model));
     item.layout();
 }
}
项目:firefly    文件:DownloadScriptDialog.java   
public void onSuccess(String url) {
    if (!StringUtils.isEmpty(url)) {
        url= GWT.getModuleBaseURL()+url;
        Frame f= Application.getInstance().getNullFrame();
        f.setUrl(url);
    }
}
项目:firefly    文件:FitsDownloadOpsDialog.java   
@Override
protected void inputComplete() {
    Frame f= Application.getInstance().getNullFrame();
    WebPlot plot= _pv.getPrimaryPlot();
    PlotState state= plot.getPlotState();
    String url;
    if (_dType.getValue().equals("fits")) {
        Band band= Band.NO_BAND;
        if (_bandSelect!=null) {
            band=  Band.parse(_bandSelect.getValue());
        }
        String fitsFile= state.getOriginalFitsFileStr(band)==null  || _whichOp.getValue().equals("modified")?
                         state.getWorkingFitsFileStr(band) :
                         state.getOriginalFitsFileStr(band);

        url= WebUtil.encodeUrl(GWT.getModuleBaseURL()+ "servlet/Download",
                                      new Param("file", fitsFile),
                                      new Param("return", makeFileName(state,band)),
                                      new Param("log", "true"));
        if (url!=null) f.setUrl(url);
    }
    else if (_dType.getValue().equals("region")) {
        retrieveRegion(plot);
    }
    else {
        retrievePng(plot);
    }

}
项目:daris    文件:DataSetDetails.java   
private void updateNiftiTab() {

        if (mode() != FormEditMode.READ_ONLY) {
            return;
        }
        final DataSet ds = (DataSet) object();
        if (ds.data() != null && (MimeTypes.NIFTI_SERIES.equals(ds.mimeType())
                || MimeTypes.NIFTI_SERIES.equals(ds.data().logicalMimeType()))) {
            String niftiViewerUrl = DataSet.niftiViewerUrl(ds);
            Frame frame = new Frame(niftiViewerUrl);
            frame.getElement().getStyle().setBorderWidth(0, Unit.PX);
            frame.setSize("100%", "100%");
            SimplePanel sp = new SimplePanel();
            sp.fitToParent();
            sp.setContent(frame);
            setTab(TAB_NAME_NIFTI, TAB_DESC_NIFTI, sp);
            // @formatter:off
            // TODO: we should include analyzer in the pssd/daris all-in-one
            // package so that we do not have to maintain the package
            // dependencies. It is annoying.
            /*
             * Session.execute("package.exists",
             * "<package>nig-analyzer</package>", 0, new
             * ServiceResponseHandler() {
             * 
             * @Override public void processResponse(XmlElement xe, List<Output>
             * outputs) throws Throwable { boolean exists =
             * xe.booleanValue("exists", false); if (exists) {
             * setTab(TAB_NAME_NIFTI, TAB_DESC_NIFTI, new NiftiSeriesViewer(ds,
             * false) .widget()); } else { setTab(TAB_NAME_NIFTI,
             * TAB_DESC_NIFTI, new NiftiSeriesViewer(ds, true) .widget()); } }
             * });
             */
            // @formatter:on
        }
    }
项目:daris    文件:DownloadUtil.java   
public static void download(String url) {
    if (_downloadFrame == null) {
        _downloadFrame = Frame.wrap(Document.get().getElementById(
                "__gwt_downloadFrame"));
    }
    _downloadFrame.setUrl(url);
}
项目:qafe-platform    文件:MainFactory.java   
public static void createWindowWithUrl(String title, String url, int width, int height, boolean resizable, boolean centered, int top, int left, boolean modal) {
    Frame frame = new Frame(url);
    DOM.setStyleAttribute(frame.getElement(), "border", "none");

    if (ClientApplicationContext.getInstance().isMDI()) {
        final WindowPanel sized = new WindowPanel(title);
        sized.addCloseHandler(new CloseHandler<PopupPanel>() {
            public void onClose(CloseEvent<PopupPanel> event) {
                if (ClientApplicationContext.getInstance().internalWindowCount > 0) {
                    ClientApplicationContext.getInstance().internalWindowCount--;
                }
            }
        });
        sized.setResizable(resizable);

        sized.setAnimationEnabled(true);
        sized.setSize("" + width + "px", "" + height + "px");
        sized.setModal(modal);
        sized.setWidget(frame);
        if (centered) {
            sized.center();
        } else if (top > 0 && left > 0) {
            sized.setPopupPosition(left, top);
            sized.show();
        } else {
            sized.show();
        }
    } else {
    //  ExtendedWindow.resizeTo(width, height);
        WindowFactory.setWidgetToMainPanel(frame, null);
    }

}
项目:zeus3    文件:PartitionTab.java   
private void downloadSelectPartition() {
    PartitionModel pm = grid.getSelectionModel().getSelectedItem();
    if (RootPanel.get("downloadiframe") != null) {
        Widget widgetFrame = (Widget) RootPanel
                .get("downloadiframe");
        widgetFrame.removeFromParent();
    }
    Frame frame = new Frame(GWT.getHostPageBaseURL()
            + "partition_download.do" + "?path=" + pm.getPath()
            + "&table=" + panel.getTable().getName());
    frame.setVisible(false);
    frame.setSize("0px", "0px");
    RootPanel.get().add(frame);
}
项目:iambookmaster    文件:AboutPanel.java   
public AboutPanel() {
    super();
    setStyleName("exchangePanel");
    VerticalPanel panel = new VerticalPanel();
    panel.setSpacing(5);
    panel.setSize("100%", "100%");
    setWidget(panel);
    title = new Label();
    panel.add(title);
    panel.setCellWidth(title,"100%");
    panel.setCellHeight(title,"1%");
    HTML html = new HTML(appConstants.copyright());
    panel.add(html);
    panel.setCellWidth(html,"100%");
    panel.setCellHeight(html,"1%");
    frame =  new Frame();
    frame.setSize("100%", "100%");
    panel.add(frame);
    panel.setCellWidth(frame,"100%");
    panel.setCellHeight(frame,"99%");

    ClickHandler listener = new ClickHandler() {
        public void onClick(ClickEvent event) {
            AboutPanel.this.hide();
        }
    };
    Button closeButton = new Button(appConstants.closeButton(),listener);
    panel.add(closeButton);
    panel.setCellWidth(closeButton,"100%");
    panel.setCellHeight(closeButton,"1%");
    panel.setCellHorizontalAlignment(closeButton,HasHorizontalAlignment.ALIGN_CENTER);
}
项目:iambookmaster    文件:PlayerHelpPanel.java   
public PlayerHelpPanel() {
    setStyleName("exchangePanel");
    setSpacing(5);
    setSize("100%", "100%");
    frame =  new Frame();
    frame.setSize("100%", "100%");
    add(frame);
    setCellWidth(frame,"100%");
    setCellHeight(frame,"99%");

    ClickHandler listener = new ClickHandler() {
        public void onClick(ClickEvent event) {
            onClose();
        }
    };
    HTML html = new HTML(AppLocale.getAppConstants().copyright());
    add(html);
    setCellWidth(html,"100%");
    setCellHorizontalAlignment(html, HasHorizontalAlignment.ALIGN_CENTER);
    setCellHeight(html,"1%");

    Button closeButton = new Button(AppLocale.getAppConstants().buttonClose(),listener);
    add(closeButton);
    setCellHorizontalAlignment(closeButton,HasHorizontalAlignment.ALIGN_CENTER);
    setCellWidth(closeButton,"100%");
    setCellHeight(closeButton,"1%");
    DeferredCommand.addCommand(new Command(){
        public void execute() {
            frame.setUrl(AppLocale.getAppConstants().pagePlayerHelp());
        }
    });

}
项目:OneCMDBwithMaven    文件:WelcomeScreen.java   
public WelcomeScreen() {
    Frame f = new Frame("welcome.html");
    f.setWidth("100%");
    f.setHeight("100%");
    initWidget(f);

}
项目:OneCMDBwithMaven    文件:MDRStartWidget.java   
public void doStart() {
 for (TabItem item : advanced.getItems()) {
     CIModel model = (CIModel)item.getData("model");
     item.removeAll();
     Frame f = new Frame();
     item.add(f);
     f.setUrl(getStartURL(model));
     item.layout();
 }
}
项目:cloud-dev-studio    文件:ESBGraphicalEditor.java   
public ESBGraphicalEditor() {
    editorFrame = new Frame("/esbeditor/index.html");
    editorFrame.addLoadHandler(new LoadHandler() {
        @Override
        public void onLoad(LoadEvent event) {
            frameLoaded();
        }
    });
    editorFrame.setSize("100%", "100%");
}
项目:drools-wb    文件:CustomFormPopUp.java   
public CustomFormPopUp( Image image,
                        String title,
                        CustomFormConfiguration configuration ) {
    super( image,
           title );
    this.configuration = configuration;

    this.externalFrame = new Frame();
    this.externalFrame.setWidth( configuration.getCustomFormWidth() + "px" );
    this.externalFrame.setHeight( configuration.getCustomFormHeight() + "px" );

    VerticalPanel vp = new VerticalPanel();
    vp.setWidth( "100%" );
    vp.setHeight( "100%" );
    vp.add( this.externalFrame );

    okButton = new Button( GuidedRuleEditorResources.CONSTANTS.OK() );

    //cancel button with default handler
    cancelButton = new Button( GuidedRuleEditorResources.CONSTANTS.Cancel(),
                               new ClickHandler() {
                                   public void onClick( ClickEvent event ) {
                                       hide();
                                   }
                               } );

    HorizontalPanel hp = new HorizontalPanel();
    hp.setWidth( "100%" );
    hp.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
    hp.add( okButton );
    hp.add( cancelButton );

    vp.add( hp );

    this.addRow( vp );

}
项目:WebConsole    文件:WebElementComponent.java   
protected WebElementComponent() {
    super(new Frame(), CLASS_NAME);
}
项目:document-management-system    文件:TabWorkspace.java   
/**
 * TabWorkspace
 */
public TabWorkspace() {
    vPanel = new VerticalPanel();
    iframe = new Frame("about:blank");

    DOM.setElementProperty(iframe.getElement(), "frameborder", "0");
    DOM.setElementProperty(iframe.getElement(), "marginwidth", "0");
    DOM.setElementProperty(iframe.getElement(), "marginheight", "0");

    // Commented because on IE show clear if allowtransparency=true
    DOM.setElementProperty(iframe.getElement(), "allowtransparency", "false");
    DOM.setElementProperty(iframe.getElement(), "scrolling", "auto");

    iframe.setUrl(Main.CONTEXT + "/extra/index.jsp");
    iframe.setStyleName("okm-Iframe");

    vPanel.add(iframe);
    vPanel.setCellHorizontalAlignment(iframe, HasAlignment.ALIGN_CENTER);

    vPanel.setWidth("100%");
    vPanel.setHeight("100%");

    // User workspace values
    if (GeneralComunicator.getWorkspace() == null) {
        timer = new Timer() {
            @Override
            public void run() {
                if (GeneralComunicator.getWorkspace() == null) {
                    firstTimeLoadingWorkspace();
                } else {
                    init();
                }
            }
        };

        firstTimeLoadingWorkspace();
    } else {
        init();
    }

    initWidget(vPanel);
}
项目:ephesoft    文件:ExternalAppDialogBox.java   
public Frame getFrame() {
    return frame;
}
项目:onecmdb    文件:StaticContentScreen.java   
public StaticContentScreen() {
    frame = new Frame();
    frame.setWidth("100%");
    frame.setHeight("100%");
    initWidget(frame);
}