butler.swing.record
Class RecordListTreeNode
java.lang.Object
butler.swing.record.RecordListTreeNode
- All Implemented Interfaces:
- RecordSelectionListener, java.util.EventListener, javax.swing.tree.TreeNode
public class RecordListTreeNode
- extends java.lang.Object
- implements javax.swing.tree.TreeNode, RecordSelectionListener
- Author:
- Fredrik Bertilsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RecordListTreeNode
public RecordListTreeNode(RecordList recList,
javax.swing.tree.TreeNode parent,
DRecordTree desc)
throws java.lang.Exception
- Throws:
java.lang.Exception
setParent
public void setParent(javax.swing.tree.TreeNode parent)
getChildAt
public javax.swing.tree.TreeNode getChildAt(int childIndex)
- Specified by:
getChildAt
in interface javax.swing.tree.TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface javax.swing.tree.TreeNode
getParent
public javax.swing.tree.TreeNode getParent()
- Specified by:
getParent
in interface javax.swing.tree.TreeNode
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
- Specified by:
getIndex
in interface javax.swing.tree.TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface javax.swing.tree.TreeNode
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface javax.swing.tree.TreeNode
children
public java.util.Enumeration children()
- Specified by:
children
in interface javax.swing.tree.TreeNode
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getRecordList
public RecordList getRecordList()
getDescriptor
public DRecordTree getDescriptor()
recordSelected
public void recordSelected(Record rec)
- Specified by:
recordSelected
in interface RecordSelectionListener
recordListSelected
public void recordListSelected(RecordList recList)
- Specified by:
recordListSelected
in interface RecordSelectionListener