Java Code Examples for com.google.gwt.user.client.ui.Frame#setStyleName()
The following examples show how to use
com.google.gwt.user.client.ui.Frame#setStyleName() .
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: 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); }