com.google.gwt.user.client.ui.Frame Java Examples
The following examples show how to use
com.google.gwt.user.client.ui.Frame.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Administration.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * 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); }
Example #2
Source File: HTMLPreview.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * 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); }
Example #3
Source File: EmbeddedPreview.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * HTMLPreview */ public EmbeddedPreview() { iframe = new Frame("about:blank"); iframe.getElement().setPropertyString("frameborder", "0"); iframe.getElement().setPropertyString("marginwidth", "0"); iframe.getElement().setPropertyString("marginheight", "0"); iframe.getElement().setAttribute("allowFullScreen", "true"); // Commented because on IE show clear if allowtransparency=true iframe.getElement().setPropertyString("allowtransparency", "false"); iframe.setStyleName("okm-Iframe"); iframe.addStyleName("okm-EnableSelect"); initWidget(iframe); }
Example #4
Source File: MailPreview.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * 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); }
Example #5
Source File: SyntaxHighlighterPreview.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * 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); }
Example #6
Source File: PreviewWidget.java From geowe-core with GNU General Public License v3.0 | 6 votes |
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; }
Example #7
Source File: GuidedTourHelper.java From core with GNU Lesser General Public License v2.1 | 5 votes |
static void init(BootstrapContext bootstrapContext) { String locale = Preferences.get(Preferences.Key.LOCALE, "en"); String url = bootstrapContext.getProperty(ApplicationProperties.GUIDED_TOUR) + "/" + (bootstrapContext.isStandalone() ? "standalone" : "domain") + "/step1.html?setLng=" + locale; Frame tourFrame = new Frame(url); tourFrame.setWidth("100%"); tourFrame.setHeight("100%"); guidedTour = new PopupPanel(true, true) { { Window.addResizeHandler(resizeEvent -> { if (isShowing()) { center(); } }); } @Override protected void onPreviewNativeEvent(Event.NativePreviewEvent event) { if (Event.ONKEYUP == event.getTypeInt()) { if (event.getNativeEvent().getKeyCode() == KeyboardEvent.KeyCode.ESC) { hide(); } } } }; guidedTour.setGlassEnabled(true); guidedTour.setAnimationEnabled(false); guidedTour.setWidget(tourFrame); guidedTour.setWidth("1120px"); guidedTour.setHeight("800px"); guidedTour.setStyleName("default-window"); exportCloseMethod(); }
Example #8
Source File: TabWorkspace.java From document-management-system with GNU General Public License v2.0 | 4 votes |
/** * 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); }