本文整理汇总了Java中com.google.gwt.user.client.ui.Frame.addStyleName方法的典型用法代码示例。如果您正苦于以下问题:Java Frame.addStyleName方法的具体用法?Java Frame.addStyleName怎么用?Java Frame.addStyleName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.ui.Frame
的用法示例。
在下文中一共展示了Frame.addStyleName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: HTMLPreview
import com.google.gwt.user.client.ui.Frame; //导入方法依赖的package包/类
/**
* 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);
}
示例2: MailPreview
import com.google.gwt.user.client.ui.Frame; //导入方法依赖的package包/类
/**
* 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);
}
示例3: SyntaxHighlighterPreview
import com.google.gwt.user.client.ui.Frame; //导入方法依赖的package包/类
/**
* 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);
}
示例4: ViewServletPopup
import com.google.gwt.user.client.ui.Frame; //导入方法依赖的package包/类
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);
}