|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap org.apache.commons.chain.impl.ContextBase org.apache.shale.clay.component.chain.ClayContext
public class ClayContext
This context is passed to all the commands in this package used to create the sub component tree for the clay component. The use of the context object promotes a reusable logic fragments that are loosely coupled and kind of snap togather.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
ClayContext()
|
Method Summary | |
---|---|
AttributeBean |
getAttribute()
Gets the current attribute for each in AssignPropertiesCommand . |
Object |
getChild()
Returns a child component that can be a UIComponent, Validator, Listener or Converter. |
int |
getChildIndex()
Returns the index at which a new component must be added in the list of childs. |
ComponentBean |
getDisplayElement()
Returns the current component metadata used to build a JSF resource. |
javax.faces.context.FacesContext |
getFacesContext()
Returns the current faces Context. |
String |
getJsfid()
Returns the unique identifier for a component metadata definition. |
TreeSet |
getJspIds()
|
javax.faces.component.UIComponent |
getParent()
Returns the parent of the child. |
ComponentBean |
getRootElement()
Returns the root config object used to construct the Clay component subtree. |
Map |
getSymbols()
Returns a Map containing replacement symbols within meta-component attributes. |
void |
setAttribute(AttributeBean attribute)
Sets the current attribute for each in AssignPropertiesCommand . |
void |
setChild(Object child)
Sets a child component that can be a UIComponent, Validator, Listener or Converter. |
void |
setChildIndex(int index)
Sets the index at which a new component must be added in the list of childs. |
void |
setDisplayElement(ComponentBean displayElement)
Sets the current component metadata used to build a JSF resource. |
void |
setFacesContext(javax.faces.context.FacesContext facesContext)
Sets the current faces Context. |
void |
setJsfid(String jsfid)
Sets the unique identifier for a component metadata definition. |
void |
setJspIds(TreeSet graph)
|
void |
setParent(javax.faces.component.UIComponent parent)
Sets the parent of the child. |
void |
setRootElement(ComponentBean rootElement)
Sets the root config object used to construct the Clay component subtree. |
void |
setSymbols(Map symbols)
Sets a Map containing replacement symbols within meta-component attributes. |
Methods inherited from class org.apache.commons.chain.impl.ContextBase |
---|
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, size |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, equals, hashCode, size |
Constructor Detail |
---|
public ClayContext()
Method Detail |
---|
public Map getSymbols()
Returns a Map containing replacement symbols within meta-component attributes.
SymbolBean
public void setSymbols(Map symbols)
Sets a Map containing replacement symbols within meta-component attributes.
symbols
- map of SymbolBean
public String getJsfid()
Returns the unique identifier for a component metadata definition.
public void setJsfid(String jsfid)
Sets the unique identifier for a component metadata definition.
jsfid
- unique component identifierpublic Object getChild()
public void setChild(Object child)
Sets a child component that can be a UIComponent, Validator, Listener or Converter.
child
- componentpublic ComponentBean getRootElement()
Returns the root config object used to construct the
Clay
component subtree.
public void setRootElement(ComponentBean rootElement)
Sets the root config object used to construct the
Clay
component subtree.
rootElement
- parent config beanpublic void setAttribute(AttributeBean attribute)
Sets the current attribute for each in
AssignPropertiesCommand
.
attribute
- current attribute beanpublic AttributeBean getAttribute()
Gets the current attribute for each in
AssignPropertiesCommand
.
public ComponentBean getDisplayElement()
Returns the current component metadata used to build a JSF resource.
public void setDisplayElement(ComponentBean displayElement)
Sets the current component metadata used to build a JSF resource.
displayElement
- config beanpublic javax.faces.context.FacesContext getFacesContext()
Returns the current faces Context.
public void setFacesContext(javax.faces.context.FacesContext facesContext)
Sets the current faces Context.
facesContext
- jsf contextpublic javax.faces.component.UIComponent getParent()
Returns the parent of the child.
public void setParent(javax.faces.component.UIComponent parent)
Sets the parent of the child.
parent
- currentpublic int getChildIndex()
Returns the index at which a new component must be added in the list of childs.
public void setChildIndex(int index)
Sets the index at which a new component must be added in the list of childs.
index
- current child indexpublic TreeSet getJspIds()
displayElement
used
to build the target JSF sub componennt treepublic void setJspIds(TreeSet graph)
graph
- the set that represents each displayElement
used
to build the target JSF sub componennt tree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |