本文整理了Java中com.vaadin.ui.Window.setCaptionAsHtml()
方法的一些代码示例,展示了Window.setCaptionAsHtml()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setCaptionAsHtml()
方法的具体详情如下:
包路径:com.vaadin.ui.Window
类名称:Window
方法名:setCaptionAsHtml
暂无
代码示例来源:origin: stackoverflow.com
pan[beNumber].addClickListener(new MyCustomListener(beNumber));
class MyCustomListener implements MouseEvents.ClickListener{
final int beNumber;//I guess you use int in your arrays
public MyCustomListener(int beNumber){
this.beNumber = beNumber;
}
@Override
public void click(MouseEvents.ClickEvent event) {
// Create a sub-window and set the content
Window subWindow = new Window("Patient Transfer", new WardMovementView(beNumber));//pass that var to your custom component if you want to use it
subWindow.setCaptionAsHtml(true);
subWindow.setModal(true);
subWindow.setWidth("1200px");
subWindow.setHeight("800px");
UI.getCurrent().addWindow(subWindow);
}
}
代码示例来源:origin: stackoverflow.com
pan[beNumber].addClickListener(new MouseEvents.ClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void click(MouseEvents.ClickEvent event) {
// Create a sub-window and set the content
Window subWindow = new PatientTranfserWindow("Patient Transfer", new WardMovementView());
subWindow.setCaptionAsHtml(true);
subWindow.setModal(true);
subWindow.setWidth("1200px");
subWindow.setHeight("800px");
subWindow.setBENumber(beNumber);
UI.getCurrent().addWindow(subWindow);
}
});
代码示例来源:origin: eclipse/hawkbit
artifactDtlsWindow.setCaption(HawkbitCommonUtil
.getArtifactoryDetailsLabelId(softwareModule.getName() + "." + softwareModule.getVersion(), getI18n()));
artifactDtlsWindow.setCaptionAsHtml(true);
artifactDtlsWindow.setClosable(true);
artifactDtlsWindow.setResizable(true);
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
artifactDtlsWindow.setCaption(HawkbitCommonUtil
.getArtifactoryDetailsLabelId(softwareModule.getName() + "." + softwareModule.getVersion(), getI18n()));
artifactDtlsWindow.setCaptionAsHtml(true);
artifactDtlsWindow.setClosable(true);
artifactDtlsWindow.setResizable(true);
内容来源于网络,如有侵权,请联系作者删除!