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

📄 div.java

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 JAVA
字号:
/* Div.java{{IS_NOTE	Purpose:			Description:			History:		Fri Dec 30 17:49:49     2005, Created by tomyeh}}IS_NOTECopyright (C) 2005 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.zul;import org.zkoss.lang.Objects;import org.zkoss.xml.HTMLs;import org.zkoss.zul.impl.XulElement;/** * The same as HTML DIV tag. * * <p>An extension. It has the same effect as * <code>&lt;h:div xmlns:h="http://www.w3.org/1999/xhtml"&gt;</code>. * Note: a {@link Window} without title and caption has the same visual effect * as {@link Div}, but {@link Div} doesn't implement IdSpace. * In other words, {@link Div} won't affect the uniqueness of identifiers. * * @author tomyeh */public class Div extends XulElement {	private String _align;	/** Returns the alignment.	 * <p>Default: null (use browser default).	 */	public String getAlign() {		return _align;	}	/** Sets the alignment: one of left, center, right, ustify,	 */	public void setAlign(String align) {		if (align != null && align.length() == 0)			align = null;		if (!Objects.equals(_align, align)) {			_align = align;			smartUpdate("align", _align);		}	}	//-- super --//	public String getOuterAttrs() {		final String clkattrs = getAllOnClickAttrs(false);		final String attrs = super.getOuterAttrs();		if (_align == null && clkattrs == null)			return attrs;		final StringBuffer sb = new StringBuffer(80).append(attrs);		HTMLs.appendAttribute(sb, "align",  _align);		if (clkattrs != null) sb.append(clkattrs);		return sb.toString();	}}

⌨️ 快捷键说明

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