| |
|
| java.lang.Object javax.swing.tree.DefaultMutableTreeNode net.xoetrope.swing.tree.XTreeModelAdapter
XTreeModelAdapter | public class XTreeModelAdapter extends DefaultMutableTreeNode implements XModelAdapter(Code) | | An adapter to allow the XModel to be used with tree controls
Copyright (c) Xoetrope Ltd., 2001-2004
$Revision: 1.2 $
|
XTreeModelAdapter | public XTreeModelAdapter(XModel src)(Code) | | Constructs a new adapter for the specified model node.
Parameters: the - model node to adapt |
get | public Object get(int i)(Code) | | Gets the individual list item value
Parameters: i - The index of the listitem The value of the listitem |
getModel | public XModel getModel()(Code) | | Get the model being used by this adapter
|
getNumChildren | public int getNumChildren()(Code) | | Get the number of children belong to the model node that this object adapts
the number of children |
getSelected | public Object getSelected()(Code) | | Gets the value of the selected item from the list.
the selected list item/node |
getTagName | public String getTagName()(Code) | | Gets the name of the model node
the name |
populateTreeModel | protected void populateTreeModel(XModel src)(Code) | | Add the children of this node to the tree model
|
set | public void set(Object o)(Code) | | Set the value of the listitem
Parameters: o - The new value |
setModel | public void setModel(XModel src)(Code) | | Set the adapter source
Parameters: src - the model |
|
|
|