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

📄 headerelement.java

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 JAVA
字号:
/* HeaderElement.java{{IS_NOTE	Purpose:			Description:			History:		Wed Jan 11 11:55:13     2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 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.impl;import org.zkoss.lang.Objects;import org.zkoss.xml.HTMLs;import org.zkoss.zk.ui.UiException;/** * A skeletal implementation for a header. * * @author tomyeh */abstract public class HeaderElement extends LabelImageElement {	private String _align, _valign;	/** Returns the horizontal alignment of this column.	 * <p>Default: null (system default: left unless CSS specified).	 */	public String getAlign() {		return _align;	}	/** Sets the horizontal alignment of this column.	 */	public void setAlign(String align) {		if (!Objects.equals(_align, align)) {			_align = align;			invalidateWhole();		}	}	/** Returns the vertical alignment of this grid.	 * <p>Default: null (system default: top).	 */	public String getValign() {		return _valign;	}	/** Sets the vertical alignment of this grid.	 */	public void setValign(String valign) {		if (!Objects.equals(_valign, valign)) {			_valign = valign;			invalidateWhole();		}	}	/** Called when the definition is changed.	 * <p>Derived must override it to either do nothing, or invalidate	 * parent or others.	 */	abstract protected void invalidateWhole();	/** Returns the attributes used to generate HTML TD tag for each	 * cell of the rows contained in the parent control,	 * e.g., {@link org.zkoss.zul.Listcell}.	 * <p>Used by component developers.	 */	public String getColAttrs() {		final StringBuffer sb = new StringBuffer(32);		HTMLs.appendAttribute(sb, "align", _align);		HTMLs.appendAttribute(sb, "valign", _valign);		return sb.toString();	}	//-- super --//	public void setWidth(String width) {		if (!Objects.equals(width, getWidth())) {			super.setWidth(width);			invalidateWhole();		}	}	public String getOuterAttrs() {		return super.getOuterAttrs() + getColAttrs();	}	//-- Component --//	/** Children are not allowed. */	public boolean isChildable() {		return false;	}}

⌨️ 快捷键说明

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