org.apache.myfaces.trinidad.component
Class UIXFacesBeanImpl
java.lang.Object
org.apache.myfaces.trinidad.bean.FacesBeanImpl
org.apache.myfaces.trinidad.component.UIXFacesBeanImpl
- All Implemented Interfaces:
- FacesBean, UIXFacesBean
- Direct Known Subclasses:
- UIXEditableFacesBeanImpl
public class UIXFacesBeanImpl
- extends FacesBeanImpl
- implements UIXFacesBean
FacesBeanImpl subclass that implements UIXFacesBean. UIXComponentBase subclasses that want to
change the behavior of their associated FacesBean are encouraged to subclass this class in preference
to implementing the FacesBean and UIXFaceBean contracts directly. In addition, while
UIXComponentBase will work with any UIXFacesBean, it is optimized to work with
UIXFacesBeanImpl.
- See Also:
FacesBean
,
FacesBeanImpl
,
UIXFacesBean
,
UIXComponentBase
Methods inherited from class org.apache.myfaces.trinidad.bean.FacesBeanImpl |
addAll, addEntry, bindingKeySet, containsEntry, createExpressionsMap, createPropertyMap, entries, getEntries, getLocalProperty, getProperty, getRawProperty, getValueBinding, getValueExpression, keySet, markInitialState, removeEntry, setProperty, setValueBinding, setValueExpression, toString |
Methods inherited from interface org.apache.myfaces.trinidad.bean.FacesBean |
addAll, addEntry, bindingKeySet, containsEntry, entries, getEntries, getLocalProperty, getProperty, getRawProperty, getValueBinding, getValueExpression, keySet, markInitialState, removeEntry, setProperty, setValueBinding, setValueExpression |
UIXFacesBeanImpl
public UIXFacesBeanImpl()
getType
public final FacesBean.Type getType()
- Description copied from class:
FacesBeanImpl
- Get the type of a FacesBean
- Specified by:
getType
in interface FacesBean
- Specified by:
getType
in class FacesBeanImpl
getComponent
public final UIXComponent getComponent()
- Returns:
- the UIXComponent that this UIXFacesBean as initialized with
init
public void init(UIXComponent component,
FacesBean.Type type)
- Subclassers most call super with the component and type
- Specified by:
init
in interface UIXFacesBean
- Parameters:
component
- UIXComponentBase to bind to this UIXFacesBeantype
-
- Throws:
IllegalStateException
- if init() called a second time with a different component or if
the Type changes for one non-null Type to another
IllegalArgumentException
- if component is not a UIXComponentBase
NullPointerException
- of component is null
setPropertyImpl
public void setPropertyImpl(PropertyKey key,
Object value)
- Overrides:
setPropertyImpl
in class FacesBeanImpl
getLocalPropertyImpl
protected Object getLocalPropertyImpl(PropertyKey key)
- Overrides:
getLocalPropertyImpl
in class FacesBeanImpl
saveState
public Object saveState(FacesContext context)
- Description copied from interface:
FacesBean
- Saves the state of a FacesBean.
- Specified by:
saveState
in interface FacesBean
- Overrides:
saveState
in class FacesBeanImpl
restoreState
public void restoreState(FacesContext context,
Object state)
- Description copied from interface:
FacesBean
- Restores the state of a FacesBean.
- Specified by:
restoreState
in interface FacesBean
- Overrides:
restoreState
in class FacesBeanImpl
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.