Class SimpleFileSystemModel

java.lang.Object
org.jdesktop.swingx.treetable.SimpleFileSystemModel
All Implemented Interfaces:
TreeModel, TreeTableModel

public class SimpleFileSystemModel extends Object implements TreeTableModel
A tree table model to simulate a file system.

This tree table model implementation does not extends AbstractTreeTableModel. The file system metaphor demonstrates that it is often easier to directly implement tree structures directly instead of using intermediaries, such as TreeNode.

It would be possible to create this same class by extending AbstractTreeTableModel, however the number of methods that you would need to override almost precludes that means of implementation.

A "full" version of this model might allow editing of file names, the deletion of files, and the movement of files. This simple implementation does not intend to tackle such problems, but this implementation may be extended to handle such details.

Author:
Ramesh Gupta, Karl Schaefer