|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
net.xoetrope.swing.tree.XTreeModelAdapter
net.xoetrope.swing.tree.XTreePojoModelAdapter
public class XTreePojoModelAdapter
An adapter to allow the XPojoModel to be used with tree controls.
| Field Summary | |
|---|---|
protected java.lang.String |
children
The name of the property defining child nodes |
protected java.util.Hashtable |
configuration
Configuration of this adapter |
protected java.lang.String |
dispAttr
The name of the property whose value will appear as the tree node |
protected XPojoModel |
model
The model node |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
XTreePojoModelAdapter()
Constructs a new adapter |
|
| Method Summary | |
|---|---|
void |
configure(java.util.Hashtable bindingConfiguration,
java.util.Hashtable instanceConfiguration)
Configures this adapter |
java.lang.Object |
get(int i)
Gets the individual list item value |
XModel |
getModel()
Get the model being used by this adapter |
int |
getNumChildren()
Get the number of children belong to the model node that this object adapts |
java.lang.Object |
getSelected()
Gets the value of the selected item from the list. |
java.lang.String |
getTagName()
Gets the name of the model node |
protected void |
populateTreeModel()
Add the children of this node to the tree model |
void |
set(java.lang.Object o)
Set the value of the listitem |
void |
setModel(XModel src)
Set the adapter source |
java.lang.String |
toString()
Returns the String representation of this tree node |
| Methods inherited from class net.xoetrope.swing.tree.XTreeModelAdapter |
|---|
populateTreeModel |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XPojoModel model
protected java.lang.String children
protected java.lang.String dispAttr
protected java.util.Hashtable configuration
| Constructor Detail |
|---|
public XTreePojoModelAdapter()
| Method Detail |
|---|
public void configure(java.util.Hashtable bindingConfiguration,
java.util.Hashtable instanceConfiguration)
configure in interface XModelAdapterConfigurableinstanceConfiguratin - Hashtable containing
configuration details.public int getNumChildren()
getNumChildren in interface XModelAdaptergetNumChildren in class XTreeModelAdapterpublic java.lang.Object get(int i)
get in interface XModelAdapterget in class XTreeModelAdapteri - The index of the listitem
public void set(java.lang.Object o)
set in interface XModelAdapterset in class XTreeModelAdaptero - The new valuepublic java.lang.Object getSelected()
getSelected in interface XModelAdaptergetSelected in class XTreeModelAdapterpublic void setModel(XModel src)
setModel in interface XModelAdaptersetModel in class XTreeModelAdaptersrc - the modelpublic XModel getModel()
getModel in interface XModelAdaptergetModel in class XTreeModelAdapterpublic java.lang.String getTagName()
getTagName in class XTreeModelAdapterprotected void populateTreeModel()
src - the source model nodepublic java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||