org.zkoss.jsf.zul.impl
Class BaseDoublebox

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

public abstract class BaseDoublebox
extends BranchInput

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

Author:
Dennis.Chen

Nested Class Summary
static class BaseDoublebox.DoubleFormatConverter
          Converter String to Double, or Double to String by a DecimalFormat.
 
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
BaseDoublebox()
           
 
Method Summary
protected  void afterZULComponentComposed(org.zkoss.zk.ui.Component zulcomp)
          Override method, add a BaseDoublebox.DoubleFormatConverter as the default converter if no converter is assigned.
 java.lang.String getMappedAttributeName()
          Override Method, Return ZUL Component attribute name which can handler the submitting of input.
 
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, 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

BaseDoublebox

public BaseDoublebox()
Method Detail

afterZULComponentComposed

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

Overrides:
afterZULComponentComposed in class BranchInput

getMappedAttributeName

public java.lang.String getMappedAttributeName()
Override Method, Return ZUL Component attribute name which can handler the submitting of input. Always return "text"

Specified by:
getMappedAttributeName in interface ValueHolderSupport
Overrides:
getMappedAttributeName in class BranchOutput
Returns:
name of attribute of zul component.
See Also:
ClientInputSupport


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