org.zkoss.jsf.zul.impl
Class BaseCalendar

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.zkoss.jsf.zul.impl.AbstractComponent
              extended by org.zkoss.jsf.zul.impl.LeafComponent
                  extended by org.zkoss.jsf.zul.impl.BranchComponent
                      extended by org.zkoss.jsf.zul.impl.BranchOutput
                          extended by org.zkoss.jsf.zul.impl.BranchInput
                              extended by org.zkoss.jsf.zul.impl.BaseCalendar
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, ClientInputSupport, ValueHolderSupport
Direct Known Subclasses:
Calendar

public abstract class BaseCalendar
extends BranchInput

The Base implementation of Calendar. This component should be declared nested under Page.

Author:
Dennis.Chen

Nested Class Summary
static class BaseCalendar.DateFormatConverter
          Converter String to Date, or Date to String by a SimpleDateFormat.
 
Field Summary
 
Fields inherited from class org.zkoss.jsf.zul.impl.LeafComponent
_compAttrMap, _composer
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
BaseCalendar()
           
 
Method Summary
protected  void afterZULComponentComposed(org.zkoss.zk.ui.Component zulcomp)
          Override method, add a BaseCalendar.DateFormatConverter as the default converter if no converter is assigned.
 java.lang.Object transferValueForAttribute(java.lang.String value)
          this implementation return java.lang.Date which is parsed from value;
 
Methods inherited from class org.zkoss.jsf.zul.impl.BranchInput
addErrorMessage, addValidator, addValueChangeListener, broadcast, clientInputDecode, compareValues, decode, getConvertedValue, getInputAttributeName, getInputAttributeValue, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, restoreState, saveState, setImmediate, setRequired, setSubmittedValue, setValid, setValidator, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class org.zkoss.jsf.zul.impl.BranchOutput
getConverter, getLocalValue, getMappedAttributeName, getValue, isLocalValueSet, setConverter, setLocalValueSet, setValue
 
Methods inherited from class org.zkoss.jsf.zul.impl.BranchComponent
loadZULTree
 
Methods inherited from class org.zkoss.jsf.zul.impl.LeafComponent
addZULDynamicAttribute, encodeBegin, encodeChildren, encodeEnd, evaluateDynaAttributes, getAttributeValue, getComponentDefName, getComponentInfo, getForward, getRendersChildren, getUse, getZULComponent, setAttributeValue, setForward, setId, setUse, setZULDynamicAttribute
 
Methods inherited from class org.zkoss.jsf.zul.impl.AbstractComponent
findAncestorWithClass, getBodyContent, getFacesContext, getFamily, getIf, getUnless, isEffective, isSuppressed, restoreAttachedMapState, saveAttachedMapState, setBodyContent, setIf, setSuppressed, setUnless
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.EditableValueHolder
isLocalValueSet, setLocalValueSet
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, getValue, setConverter, setValue
 

Constructor Detail

BaseCalendar

public BaseCalendar()
Method Detail

afterZULComponentComposed

protected void afterZULComponentComposed(org.zkoss.zk.ui.Component zulcomp)
Override method, add a BaseCalendar.DateFormatConverter as the default converter if no converter is assigned.

Overrides:
afterZULComponentComposed in class BranchInput

transferValueForAttribute

public java.lang.Object transferValueForAttribute(java.lang.String value)
this implementation return java.lang.Date which is parsed from value;

Specified by:
transferValueForAttribute in interface ValueHolderSupport
Overrides:
transferValueForAttribute in class BranchOutput
Parameters:
value - a String value to transfer to a component suitable Object.
Returns:
the suitable Object to set to attribute of zul component.
See Also:
ValueHolderSupport


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