org.zkoss.zul.impl
Class HeaderElement

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.impl.LabelElement
                  extended by org.zkoss.zul.impl.LabelImageElement
                      extended by org.zkoss.zul.impl.HeaderElement
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl
Direct Known Subclasses:
Column, Listheader, Treecol

public abstract class HeaderElement
extends LabelImageElement

A skeletal implementation for a header.

Author:
tomyeh
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.impl.LabelImageElement
LabelImageElement.ExtraCtrl
 
Field Summary
 
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
HeaderElement()
           
 
Method Summary
 java.lang.String getAlign()
          Returns the horizontal alignment of this column.
 java.lang.String getColAttrs()
          Returns the attributes used to generate HTML TD tag for each cell of the rows contained in the parent control, e.g., Listcell.
 java.lang.String getOuterAttrs()
           
 java.lang.String getValign()
          Returns the vertical alignment of this grid.
protected abstract  void invalidateWhole()
          Called when the definition is changed.
 boolean isChildable()
          Children are not allowed.
 void setAlign(java.lang.String align)
          Sets the horizontal alignment of this column.
 void setValign(java.lang.String valign)
          Sets the vertical alignment of this grid.
 void setWidth(java.lang.String width)
           
 
Methods inherited from class org.zkoss.zul.impl.LabelImageElement
getImage, getImageContent, getImgTag, getSrc, isImageAssigned, newExtraCtrl, setImage, setImageContent, setSrc
 
Methods inherited from class org.zkoss.zul.impl.LabelElement
getLabel, setLabel
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderElement

public HeaderElement()
Method Detail

getAlign

public java.lang.String getAlign()
Returns the horizontal alignment of this column.

Default: null (system default: left unless CSS specified).


setAlign

public void setAlign(java.lang.String align)
Sets the horizontal alignment of this column.


getValign

public java.lang.String getValign()
Returns the vertical alignment of this grid.

Default: null (system default: top).


setValign

public void setValign(java.lang.String valign)
Sets the vertical alignment of this grid.


invalidateWhole

protected abstract void invalidateWhole()
Called when the definition is changed.

Derived must override it to either do nothing, or invalidate parent or others.


getColAttrs

public java.lang.String getColAttrs()
Returns the attributes used to generate HTML TD tag for each cell of the rows contained in the parent control, e.g., Listcell.

Used by component developers.


setWidth

public void setWidth(java.lang.String width)
Overrides:
setWidth in class org.zkoss.zk.ui.HtmlBasedComponent

getOuterAttrs

public java.lang.String getOuterAttrs()
Overrides:
getOuterAttrs in class XulElement

isChildable

public boolean isChildable()
Children are not allowed.

Specified by:
isChildable in interface org.zkoss.zk.ui.Component
Overrides:
isChildable in class org.zkoss.zk.ui.AbstractComponent


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.