org.apache.myfaces.trinidadinternal.renderkit.htmlBasic
Class ComponentFacesBean

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.ComponentFacesBean
All Implemented Interfaces:
org.apache.myfaces.trinidad.bean.FacesBean

public class ComponentFacesBean
extends java.lang.Object
implements org.apache.myfaces.trinidad.bean.FacesBean

Implementation of FacesBean that purely passes through back to a UIComponent. This exists so that we can reuse existing rendering code to render on a non-FacesBean-based component. It's also completely immutable.

Author:
The Oracle ADF Faces Team

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.myfaces.trinidad.bean.FacesBean
org.apache.myfaces.trinidad.bean.FacesBean.Type
 
Constructor Summary
ComponentFacesBean(javax.faces.component.UIComponent component)
           
 
Method Summary
 void addAll(org.apache.myfaces.trinidad.bean.FacesBean from)
           
 void addEntry(org.apache.myfaces.trinidad.bean.PropertyKey listKey, java.lang.Object value)
           
 java.util.Set<org.apache.myfaces.trinidad.bean.PropertyKey> bindingKeySet()
           
 boolean containsEntry(org.apache.myfaces.trinidad.bean.PropertyKey listKey, java.lang.Class<?> clazz)
           
 java.util.Iterator<? extends java.lang.Object> entries(org.apache.myfaces.trinidad.bean.PropertyKey listKey)
           
 java.lang.Object[] getEntries(org.apache.myfaces.trinidad.bean.PropertyKey listKey, java.lang.Class<?> clazz)
           
 java.lang.Object getLocalProperty(org.apache.myfaces.trinidad.bean.PropertyKey key)
           
 java.lang.Object getProperty(org.apache.myfaces.trinidad.bean.PropertyKey key)
           
 java.lang.Object getRawProperty(org.apache.myfaces.trinidad.bean.PropertyKey key)
           
 org.apache.myfaces.trinidad.bean.FacesBean.Type getType()
           
 javax.faces.el.ValueBinding getValueBinding(org.apache.myfaces.trinidad.bean.PropertyKey key)
           
 java.util.Set<org.apache.myfaces.trinidad.bean.PropertyKey> keySet()
           
 void markInitialState()
           
 void removeEntry(org.apache.myfaces.trinidad.bean.PropertyKey listKey, java.lang.Object value)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setProperty(org.apache.myfaces.trinidad.bean.PropertyKey key, java.lang.Object value)
           
 void setValueBinding(org.apache.myfaces.trinidad.bean.PropertyKey key, javax.faces.el.ValueBinding binding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentFacesBean

public ComponentFacesBean(javax.faces.component.UIComponent component)
Method Detail

getType

public org.apache.myfaces.trinidad.bean.FacesBean.Type getType()
Specified by:
getType in interface org.apache.myfaces.trinidad.bean.FacesBean

getProperty

public final java.lang.Object getProperty(org.apache.myfaces.trinidad.bean.PropertyKey key)
Specified by:
getProperty in interface org.apache.myfaces.trinidad.bean.FacesBean

setProperty

public void setProperty(org.apache.myfaces.trinidad.bean.PropertyKey key,
                        java.lang.Object value)
Specified by:
setProperty in interface org.apache.myfaces.trinidad.bean.FacesBean

getLocalProperty

public final java.lang.Object getLocalProperty(org.apache.myfaces.trinidad.bean.PropertyKey key)
Specified by:
getLocalProperty in interface org.apache.myfaces.trinidad.bean.FacesBean

getValueBinding

public final javax.faces.el.ValueBinding getValueBinding(org.apache.myfaces.trinidad.bean.PropertyKey key)
Specified by:
getValueBinding in interface org.apache.myfaces.trinidad.bean.FacesBean

getRawProperty

public final java.lang.Object getRawProperty(org.apache.myfaces.trinidad.bean.PropertyKey key)
Specified by:
getRawProperty in interface org.apache.myfaces.trinidad.bean.FacesBean

setValueBinding

public final void setValueBinding(org.apache.myfaces.trinidad.bean.PropertyKey key,
                                  javax.faces.el.ValueBinding binding)
Specified by:
setValueBinding in interface org.apache.myfaces.trinidad.bean.FacesBean

addEntry

public final void addEntry(org.apache.myfaces.trinidad.bean.PropertyKey listKey,
                           java.lang.Object value)
Specified by:
addEntry in interface org.apache.myfaces.trinidad.bean.FacesBean

removeEntry

public final void removeEntry(org.apache.myfaces.trinidad.bean.PropertyKey listKey,
                              java.lang.Object value)
Specified by:
removeEntry in interface org.apache.myfaces.trinidad.bean.FacesBean

getEntries

public final java.lang.Object[] getEntries(org.apache.myfaces.trinidad.bean.PropertyKey listKey,
                                           java.lang.Class<?> clazz)
Specified by:
getEntries in interface org.apache.myfaces.trinidad.bean.FacesBean

containsEntry

public final boolean containsEntry(org.apache.myfaces.trinidad.bean.PropertyKey listKey,
                                   java.lang.Class<?> clazz)
Specified by:
containsEntry in interface org.apache.myfaces.trinidad.bean.FacesBean

entries

public final java.util.Iterator<? extends java.lang.Object> entries(org.apache.myfaces.trinidad.bean.PropertyKey listKey)
Specified by:
entries in interface org.apache.myfaces.trinidad.bean.FacesBean

addAll

public void addAll(org.apache.myfaces.trinidad.bean.FacesBean from)
Specified by:
addAll in interface org.apache.myfaces.trinidad.bean.FacesBean

keySet

public final java.util.Set<org.apache.myfaces.trinidad.bean.PropertyKey> keySet()
Specified by:
keySet in interface org.apache.myfaces.trinidad.bean.FacesBean

bindingKeySet

public final java.util.Set<org.apache.myfaces.trinidad.bean.PropertyKey> bindingKeySet()
Specified by:
bindingKeySet in interface org.apache.myfaces.trinidad.bean.FacesBean

markInitialState

public void markInitialState()
Specified by:
markInitialState in interface org.apache.myfaces.trinidad.bean.FacesBean

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface org.apache.myfaces.trinidad.bean.FacesBean

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface org.apache.myfaces.trinidad.bean.FacesBean


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.