Java Code Examples for com.google.gwt.user.client.ui.Frame#addStyleName()

The following examples show how to use com.google.gwt.user.client.ui.Frame#addStyleName() . 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: HTMLPreview.java    From document-management-system with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 2
Source File: EmbeddedPreview.java    From document-management-system with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 3
Source File: MailPreview.java    From document-management-system with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 4
Source File: SyntaxHighlighterPreview.java    From document-management-system with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}