/** {@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.getElement().getStyle().setProperty("resize", "both"); frame.setUrl(client.getProposalDocUrl(id, sessionId)); callback.onSuccess(frame); }
/** * Sets a url for the content area of the item. * * @param url the url * @return the frame widget */ public Frame setUrl(String url) { Frame f = new Frame(url); f.getElement().setPropertyInt("frameBorder", 0); removeAll(); setLayout(new FitLayout()); add(f); layout(); return f; }
@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); }
public void insertFormIFrame(final String aFormIFrame) { myIFrame = new FormPageFrame(); myIFrame.setStyleName("form_view_frame"); final Element theElement = myIFrame.getElement(); theElement.setId(formId); theElement.setAttribute("frameBorder", "0"); theElement.setAttribute("allowTransparency", "true"); myIFrame.setUrl(aFormIFrame); mySecondRowPanel.add(myIFrame); }
public void onSave() { try { String s = callSave( ((IFrameElement) ((com.google.gwt.dom.client.Element) frame.getElement())) .getContentDocument()); String p = callPreprocessingData( ((IFrameElement) ((com.google.gwt.dom.client.Element) frame.getElement())) .getContentDocument()); if (asset.getContent() == null) { asset.setContent(new RuleFlowContentModel()); } ((RuleFlowContentModel) asset.getContent()).setXml(null); ((RuleFlowContentModel) asset.getContent()).setJson(s); ((RuleFlowContentModel) asset.getContent()).setPreprocessingdata(p); } catch (Exception e) { GWT.log("JSNI method callSave() threw an exception:", e); Window.alert("JSNI method callSave() threw an exception: " + e); } }
@Override public void popupOpened(PopupPanel panel) { IFrameTabPanel iframeTab = SolutionBrowserPanel.getInstance().getContentTabPanel().getCurrentFrame(); if (iframeTab == null || iframeTab.getFrame() == null) { return; } Frame currentFrame = iframeTab.getFrame(); if (ElementUtils.elementsOverlap(panel.getElement(), currentFrame.getElement())) { FrameUtils.setEmbedVisibility(currentFrame, false); } }
private void initWidgets() { String name; /** * EditorLauncher.HOSTED_MODE = Boolean.TRUE; // HACK to set it to HOSTED MODE if ( * EditorLauncher.HOSTED_MODE.booleanValue() ) { name = "http://localhost:8080/designer/editor"; * } else { name = "/designer/editor"; } * */ name = "/designer/editor/?uuid=" + modelUUID + "&profile=jbpm"; frame = new Frame(name); frame.getElement().setAttribute("domain", Document.get().getDomain()); frame.setWidth("100%"); frame.setHeight("100%"); initWidget(frame); setWidth("100%"); setHeight("100%"); }