com.ibm.di.admin
Class LibraryTree.FileSystemModel
java.lang.Object
javax.swing.tree.DefaultTreeModel
com.ibm.di.admin.LibraryTree.FileSystemModel
- All Implemented Interfaces:
- FilenameFilter, Serializable, TreeModel
- Enclosing class:
- LibraryTree
public class LibraryTree.FileSystemModel
- extends DefaultTreeModel
- implements FilenameFilter
- See Also:
- Serialized Form
Method Summary |
boolean |
accept(File dir,
String name)
|
void |
deleteFile(File path,
boolean notify)
|
void |
deleteFile(TreePath tp,
File path,
boolean notify)
|
void |
fileAdded(TreePath tp,
File file)
|
String |
getBasePath()
|
String |
getBranchType(Object obj)
|
Object |
getChild(Object parent,
int index)
|
int |
getChildCount(Object parent)
|
Class |
getClassFor(Object obj)
|
String[] |
getFiles(File dir)
|
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
|
File |
getRootPath()
|
boolean |
isLeaf(Object node)
|
TreePath |
newFolder(TreePath parent,
String name)
|
void |
refresh(File dir)
|
void |
refreshFile(File f)
|
void |
reloadMeta(File f)
|
TreePath |
renameFile(TreePath tp,
File path,
File newname)
|
void |
setFilter(String filter)
|
void |
valueForPathChanged(TreePath path,
Object newValue)
|
Methods inherited from class javax.swing.tree.DefaultTreeModel |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LibraryTree.FileSystemModel
public LibraryTree.FileSystemModel(String startPath,
TreeNode nodeRoot)
getBasePath
public String getBasePath()
getRootPath
public File getRootPath()
getFiles
public String[] getFiles(File dir)
accept
public boolean accept(File dir,
String name)
- Specified by:
accept
in interface FilenameFilter
getRoot
public Object getRoot()
- Specified by:
getRoot
in interface TreeModel
- Overrides:
getRoot
in class DefaultTreeModel
setFilter
public void setFilter(String filter)
getChild
public Object getChild(Object parent,
int index)
- Specified by:
getChild
in interface TreeModel
- Overrides:
getChild
in class DefaultTreeModel
getChildCount
public int getChildCount(Object parent)
- Specified by:
getChildCount
in interface TreeModel
- Overrides:
getChildCount
in class DefaultTreeModel
isLeaf
public boolean isLeaf(Object node)
- Specified by:
isLeaf
in interface TreeModel
- Overrides:
isLeaf
in class DefaultTreeModel
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- Specified by:
valueForPathChanged
in interface TreeModel
- Overrides:
valueForPathChanged
in class DefaultTreeModel
getIndexOfChild
public int getIndexOfChild(Object parent,
Object child)
- Specified by:
getIndexOfChild
in interface TreeModel
- Overrides:
getIndexOfChild
in class DefaultTreeModel
refresh
public void refresh(File dir)
refreshFile
public void refreshFile(File f)
reloadMeta
public void reloadMeta(File f)
getClassFor
public Class getClassFor(Object obj)
getBranchType
public String getBranchType(Object obj)
newFolder
public TreePath newFolder(TreePath parent,
String name)
throws Exception
- Throws:
Exception
renameFile
public TreePath renameFile(TreePath tp,
File path,
File newname)
throws Exception
- Throws:
Exception
deleteFile
public void deleteFile(File path,
boolean notify)
throws Exception
- Throws:
Exception
deleteFile
public void deleteFile(TreePath tp,
File path,
boolean notify)
throws Exception
- Throws:
Exception
fileAdded
public void fileAdded(TreePath tp,
File file)