|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.web.editors.TreeView
public class TreeView
| Constructor Summary | |
|---|---|
TreeView()
|
|
TreeView(Tree path,
java.lang.Class nodeClass,
java.lang.Class parent,
java.lang.String collectionName,
java.lang.String treeViewReaderName)
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Boolean> |
getExpandedStates()
|
java.lang.String |
getIdProperties()
|
java.lang.String |
getIdSeparator()
|
boolean |
getInitialExpandedState()
|
int |
getKeyIncrement()
|
boolean |
getNodeExpandedState(java.lang.Object object)
Returns the expanded state of the object. |
java.lang.String |
getNodeFullPath(java.lang.Object object)
Returns the complete path of the node including the node name. |
java.lang.String |
getNodeName(java.lang.Object object)
Returns the node name as it is used in the path |
int |
getNodeOrder(java.lang.Object object)
If the property orderProperty of @TreeView annotation is defined, returns the order of the object within its parent; otherwise returns 0. |
java.lang.String |
getNodePath(java.lang.Object object)
Returns the parent path of the node. |
java.lang.String |
getOrderProperty()
|
java.lang.String |
getPathProperty()
|
java.lang.String |
getPathSeparator()
|
ITreeViewReader |
getTreeViewReaderImpl()
Creates the implementation of TreeView reader |
boolean |
isEntityObject()
|
boolean |
isOrderDefined()
|
protected void |
parseTreeView(Tree path,
java.lang.Class nodeClass,
java.lang.Class parentClass,
java.lang.String collectionName)
Parse the @TreeView annotation. |
protected void |
setEntityObject(boolean entityObject)
|
void |
setExpandedStates(java.util.Map<java.lang.String,java.lang.Boolean> expandedStates)
|
protected void |
setIdProperties(java.lang.String idProperties)
|
protected void |
setIdSeparator(java.lang.String idSeparator)
|
protected void |
setInitialExpandedState(boolean initialExpandedState)
|
protected void |
setKeyIncrement(int keyIncrement)
|
void |
setNodeExpandedState(java.lang.Object object,
boolean value)
Sets a new expanded state for the object. |
void |
setNodeOrder(java.lang.Object object,
int value)
Changes the order of the node within its parent. |
void |
setNodePath(java.lang.Object object,
java.lang.String value)
Sets the node path. |
protected void |
setOrderProperty(java.lang.String orderProperty)
|
protected void |
setPathProperty(java.lang.String pathProperty)
|
protected void |
setPathSeparator(java.lang.String pathSeparator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeView()
public TreeView(Tree path,
java.lang.Class nodeClass,
java.lang.Class parent,
java.lang.String collectionName,
java.lang.String treeViewReaderName)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
protected void parseTreeView(Tree path,
java.lang.Class nodeClass,
java.lang.Class parentClass,
java.lang.String collectionName)
throws java.lang.Exception
nodeClass - Object to be parsed.
java.lang.Exceptionpublic java.lang.String getNodeName(java.lang.Object object)
object - Object to be inspected.
public java.lang.String getNodePath(java.lang.Object object)
throws java.lang.Exception
object - Object to be inspected.
java.lang.Exception
public void setNodePath(java.lang.Object object,
java.lang.String value)
throws java.lang.Exception
object - Object to be updated.value - New path to be used.
java.lang.Exceptionpublic boolean getNodeExpandedState(java.lang.Object object)
object - Object to be inspected.
public java.lang.String getNodeFullPath(java.lang.Object object)
throws java.lang.Exception
object - Object to be inspected.
java.lang.Exceptionpublic int getNodeOrder(java.lang.Object object)
object - Object to be inspected.
public void setNodeOrder(java.lang.Object object,
int value)
object - Object to be updated.value - New order to be applied.
public void setNodeExpandedState(java.lang.Object object,
boolean value)
object - Object to be modified.value - New state.public java.lang.String getPathProperty()
protected void setPathProperty(java.lang.String pathProperty)
pathProperty - the pathProperty to setprotected void setIdProperties(java.lang.String idProperties)
idProperties - the idProperties to setpublic java.lang.String getIdProperties()
public java.lang.String getOrderProperty()
protected void setOrderProperty(java.lang.String orderProperty)
orderProperty - the orderProperty to setpublic boolean getInitialExpandedState()
protected void setInitialExpandedState(boolean initialExpandedState)
initialExpandedState - the initialExpandedState to setpublic int getKeyIncrement()
protected void setKeyIncrement(int keyIncrement)
keyIncrement - the keyIncrement to setprotected void setPathSeparator(java.lang.String pathSeparator)
pathSeparator - the pathSeparator to setpublic java.lang.String getPathSeparator()
protected void setEntityObject(boolean entityObject)
entityObject - the entityObject to setpublic boolean isEntityObject()
public boolean isOrderDefined()
protected void setIdSeparator(java.lang.String idSeparator)
idSeparator - the idSeparator to setpublic java.lang.String getIdSeparator()
public void setExpandedStates(java.util.Map<java.lang.String,java.lang.Boolean> expandedStates)
expandedStates - the expandedStates to setpublic java.util.Map<java.lang.String,java.lang.Boolean> getExpandedStates()
public ITreeViewReader getTreeViewReaderImpl()
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||