当前位置: 首页>>代码示例>>Java>>正文


Java Html类代码示例

本文整理汇总了Java中org.zkoss.zul.Html的典型用法代码示例。如果您正苦于以下问题:Java Html类的具体用法?Java Html怎么用?Java Html使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Html类属于org.zkoss.zul包,在下文中一共展示了Html类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: afterCompose

import org.zkoss.zul.Html; //导入依赖的package包/类
@Override
public void afterCompose() {
    //Get HTML for announcement
    String text = new String();
    String announcementPath = ConfigLoader.getProperty(CommonConstants.ANNOUNCEMENT_LOCATION);
    try {
        byte[] encoded = Files.readAllBytes(Paths.get(announcementPath));
        text = Charset.defaultCharset().decode(ByteBuffer.wrap(encoded)).toString().trim();
    }
    catch (IOException e){
        Logger.getLogger(TopBarController.class.getName()).log(Level.SEVERE, "ERROR READING ANNOUNCEMENT FILE ON " + announcementPath, e);
    }
    
    if (!text.isEmpty()) {
        Html announcement = (Html) getFellow("announcement");
        announcement.setContent(text);
        ((Div) getFellow("announcementDiv")).setVisible(true);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:20,代码来源:TopBarController.java

示例2: explainScore

import org.zkoss.zul.Html; //导入依赖的package包/类
@Command
public void explainScore(@BindingParam("document") Document document)
		throws SearchLibException, InterruptedException, IOException,
		ParseException, SyntaxError {
	Client client = getClient();
	if (client == null)
		return;
	ResultDocumentsInterface<?> result = getResultDocuments();
	if (result == null)
		return;
	int docId = document.getDocId();
	String explanation = client.explain(result.getRequest(), docId, true);
	Window win = (Window) Executions.createComponents(
			"/WEB-INF/zul/query/result/explanation.zul", null, null);
	Html html = (Html) win.getFellow("htmlExplain", true);
	html.setContent(explanation);
	win.doModal();
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:19,代码来源:ResultDocumentController.java

示例3: CloseExpandBoxEventListener

import org.zkoss.zul.Html; //导入依赖的package包/类
public CloseExpandBoxEventListener(Html html, Textbox txt) {
	this.html = html;
	this.txt = txt;
}
 
开发者ID:sinnlabs,项目名称:dbvim,代码行数:5,代码来源:HtmlRules.java


注:本文中的org.zkoss.zul.Html类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。