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