|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidaddemo.TreeModelAdapter
public class TreeModelAdapter
This class facilitates the construction of a ChildPropertyTreeModel instance via managed-beans. ChildPropertyTreeModel does not have a no-arg constructor. This class does, and so can be instantiated as a managed-bean. Two properties need to be set: "childProperty" and "instance"
| Constructor Summary | |
|---|---|
TreeModelAdapter()
|
|
| Method Summary | |
|---|---|
String |
getChildProperty()
|
Object |
getInstance()
|
List<Object> |
getListInstance()
This should only be called if setListInstance was called. |
TreeModel |
getModel()
|
void |
setChildProperty(String propertyName)
Sets the property to use to get at child lists |
void |
setInstance(Object instance)
Sets the root list for this tree. |
void |
setListInstance(List<Object> instance)
Sets the root list for this tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeModelAdapter()
| Method Detail |
|---|
public TreeModel getModel()
throws IntrospectionException
IntrospectionExceptionpublic String getChildProperty()
public void setChildProperty(String propertyName)
propertyName - public Object getInstance()
public void setInstance(Object instance)
instance - must be something that can be converted into a Listpublic void setListInstance(List<Object> instance)
instance - the list of root nodespublic List<Object> getListInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||