⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textinfo.java

📁 ZK 基础介绍 功能操作 模块 结合数据库操作
💻 JAVA
字号:
/* TextInfo.java{{IS_NOTE	Purpose:			Description:			History:		Sat Sep  1 01:14:10     2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zk.ui.metainfo;import org.zkoss.zk.ui.Component;import org.zkoss.zk.ui.Page;import org.zkoss.zk.xel.ExValue;import org.zkoss.zk.xel.impl.EvaluatorRef;/** * Represents a text. * * @author tomyeh * @since 3.0.0 */public class TextInfo extends EvalRefStub implements java.io.Serializable {	private final ExValue _text;	/**	 * @param evalr the evaluator reference. It cannot be null.	 * Retrieve it from {@link LanguageDefinition#getEvaluatorRef}	 * or {@link PageDefinition#getEvaluatorRef}, depending which it	 * belongs.	 */	public TextInfo(EvaluatorRef evalr, String text) {		if (evalr == null) throw new IllegalArgumentException();		_evalr = evalr;		_text = text != null ? new ExValue(text, String.class): null;	}	/** Returns the raw value (text).	 */	public String getRawValue() {		return _text.getRawValue();	}	/** Returns the value after evaluation.	 */	public String getValue(Page page) {		return _text != null ? (String)_text.getValue(_evalr, page): null;	}	/** Returns the value after evaluation.	 */	public String getValue(Component comp) {		return _text != null ? (String)_text.getValue(_evalr, comp): null;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -