SOMA.explorer
Class ExplorerTreeNode
java.lang.Object
SOMA.explorer.ExplorerTreeNode
- All Implemented Interfaces:
- java.util.Enumeration, javax.swing.tree.TreeNode
- public class ExplorerTreeNode
- extends java.lang.Object
- implements javax.swing.tree.TreeNode, java.util.Enumeration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExplorerTreeNode
public ExplorerTreeNode(javax.swing.tree.TreeNode parent,
java.lang.String key,
ExplorerItem item)
ExplorerTreeNode
public ExplorerTreeNode(ExplorerItem item)
populate
public void populate()
- Questo metodo crea la struttura dei nodi sulla base della struttura
del SOMA. Accedo alle variabili private della classe DirExplorerItem
tramite alcuni metodi aggiunti in quest'ultima.
getKey
public java.lang.String getKey()
getSyntax
public java.lang.String getSyntax()
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
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration
execute
public void execute(java.lang.String parameters,
java.io.PrintStream out)
toString
public java.lang.String toString()
Copyright © 2004 Luca Foschini