org.apache.shale.clay.config.beans
Class ElementBean

java.lang.Object
  extended by org.apache.shale.clay.config.beans.AbstractBean
      extended by org.apache.shale.clay.config.beans.ComponentBean
          extended by org.apache.shale.clay.config.beans.InnerComponentBean
              extended by org.apache.shale.clay.config.beans.ElementBean
All Implemented Interfaces:
Serializable, Comparable

public class ElementBean
extends InnerComponentBean
implements Comparable, Serializable

This bean represents the composition of a complex component. The renderId uniquely sequences it within a top-level ComponentBean.

See Also:
Serialized Form

Constructor Summary
ElementBean()
           
 
Method Summary
 int compareTo(Object obj)
          This is an override of the ComponentBean making the renderId the ordering identifier instead of the jsfid.
 int getRenderId()
          Returns an integer id that is used to order within the ComponentBean children set.
 void setRenderId(int i)
          Sets an integer id that is used to order within the ComponentBean children set.
 String toString()
           
 
Methods inherited from class org.apache.shale.clay.config.beans.InnerComponentBean
getIsAClientId
 
Methods inherited from class org.apache.shale.clay.config.beans.ComponentBean
addActionListener, addAttribute, addChild, addConverter, addSymbol, addValidator, addValueChangeListener, getActionListenerIterator, getActionListeners, getAllowBody, getAttribute, getAttributeIterator, getAttributes, getChildren, getChildrenIterator, getComponentType, getConverter, getExtends, getFacetName, getHasAClientId, getHasAParent, getId, getIsAParent, getIsBodyAllowed, getJsfid, getJspId, getSymbol, getSymbols, getValidatorIterator, getValidators, getValueChangeListenerIterator, getValueChangeListeners, isInheritanceFinal, setActionListeners, setAllowBody, setAttributes, setChildren, setComponentType, setExtends, setFacetName, setHasAParent, setId, setInheritanceFinal, setIsAParent, setJsfid, setValidators, setValueChangeListeners
 
Methods inherited from class org.apache.shale.clay.config.beans.AbstractBean
getDescription, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementBean

public ElementBean()
Method Detail

toString

public String toString()
Overrides:
toString in class ComponentBean
Returns:
a named value list of the object's state

getRenderId

public int getRenderId()

Returns an integer id that is used to order within the ComponentBean children set.

Returns:
the render id

setRenderId

public void setRenderId(int i)

Sets an integer id that is used to order within the ComponentBean children set.

Parameters:
i - render id

compareTo

public int compareTo(Object obj)

This is an override of the ComponentBean making the renderId the ordering identifier instead of the jsfid.

Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class ComponentBean
Parameters:
obj - object to compare
Returns:
weight of the comparison


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