net.sf.bse.gui
Class XletTreeModel

java.lang.Object
  extended bynet.sf.bse.gui.XletTreeModel
All Implemented Interfaces:
javax.swing.tree.TreeModel

public class XletTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel

Version:
$Revision: 1.1 $ $Date: 2003/01/17 14:40:31 $
Author:
Aleksi Peebles (aleksi.peebles@infocast.fi)

Constructor Summary
XletTreeModel()
           
XletTreeModel(java.io.File root)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
           
 java.lang.String getAlgorithm(java.io.File file)
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
 java.lang.String[] getSignFileNames()
           
 boolean isLeaf(java.lang.Object node)
           
 boolean isRecursiveSelection()
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
           
 void setRecursiveSelection(boolean recursive)
           
 void setRoot(java.io.File root)
           
 void setSigned(javax.swing.tree.TreeSelectionModel selection, java.lang.String algorithm)
           
 void setUnsigned(javax.swing.tree.TreeSelectionModel selection)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XletTreeModel

public XletTreeModel()

XletTreeModel

public XletTreeModel(java.io.File root)
Method Detail

setRoot

public void setRoot(java.io.File root)

setRecursiveSelection

public void setRecursiveSelection(boolean recursive)

isRecursiveSelection

public boolean isRecursiveSelection()

getAlgorithm

public java.lang.String getAlgorithm(java.io.File file)

getSignFileNames

public java.lang.String[] getSignFileNames()

setSigned

public void setSigned(javax.swing.tree.TreeSelectionModel selection,
                      java.lang.String algorithm)

setUnsigned

public void setUnsigned(javax.swing.tree.TreeSelectionModel selection)

addTreeModelListener

public void addTreeModelListener(javax.swing.event.TreeModelListener l)
Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel

getChildCount

public int getChildCount(java.lang.Object parent)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel

getRoot

public java.lang.Object getRoot()
Specified by:
getRoot in interface javax.swing.tree.TreeModel

isLeaf

public boolean isLeaf(java.lang.Object node)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel

removeTreeModelListener

public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel

valueForPathChanged

public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newValue)
Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel


Copyright © 2002-2004 BSE Project. All Rights Reserved.