org.zkoss.jsf.zul.impl
Class BaseListbox

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.BaseListbox
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, ClientInputSupport, ValueHolderSupport
Direct Known Subclasses:
Listbox

public abstract class BaseListbox
extends BranchInput

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

Author:
Dennis.Chen

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
BaseListbox()
           
 
Method Summary
protected  void afterZULComponentComposed(org.zkoss.zk.ui.Component zulcomp)
          Override Method, if instance implements ClientInputSupport (for now, it is always ), then i will try to set the name/value which get from ClientInputSupport into zulcomp.
protected  void clientInputDecode(javax.faces.context.FacesContext context)
          decode parameter in request,
 java.lang.String getMappedAttributeName()
          Override it , and return null, It means that do not map value of ValueHolder to zul component. i will take case value of ValueHolder to selecteItem of listbox.
 
Methods inherited from class org.zkoss.jsf.zul.impl.BranchInput
addErrorMessage, addValidator, addValueChangeListener, broadcast, 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, getValue, isLocalValueSet, setConverter, setLocalValueSet, setValue, transferValueForAttribute
 
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

BaseListbox

public BaseListbox()
Method Detail

getMappedAttributeName

public java.lang.String getMappedAttributeName()
Override it , and return null, It means that do not map value of ValueHolder to zul component. i will take case value of ValueHolder to selecteItem of listbox.

Specified by:
getMappedAttributeName in interface ValueHolderSupport
Overrides:
getMappedAttributeName in class BranchOutput
Returns:
always null
See Also:
ValueHolderSupport

afterZULComponentComposed

protected void afterZULComponentComposed(org.zkoss.zk.ui.Component zulcomp)
Description copied from class: BranchInput
Override Method, if instance implements ClientInputSupport (for now, it is always ), then i will try to set the name/value which get from ClientInputSupport into zulcomp. For Example of TextboxComponent, a name=form:compid will set to zulcomp and the result in HTML will likes (<input id="z_fm_2c" type="text" name="helloForm:txt1" value="0" z.type="zul.widget.Txbox"/> ). And then , after form submit, I can decode the submitted value from request by name "helloForm:txt1".

Overrides:
afterZULComponentComposed in class BranchInput

clientInputDecode

protected void clientInputDecode(javax.faces.context.FacesContext context)
decode parameter in request,

Overrides:
clientInputDecode in class BranchInput
Parameters:
context -


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