|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.io.file.FileSystemTreeModel
de.enough.polish.io.file.UiFileSystemTreeModel
public class UiFileSystemTreeModel
Provides the file system of a device as a TreeModel.
TreeModel,
TreeItem,
FileSystemTreeModel| Field Summary | |
|---|---|
protected ItemCreator |
itemCreator
|
| Constructor Summary | |
|---|---|
UiFileSystemTreeModel()
|
|
| Method Summary | |
|---|---|
void |
addChildren(Object parent,
ArrayList list)
Returns the number of children of parent. |
protected void |
addCommands(FileSystemNode node,
Item item)
Adds commands to this item. |
protected Style |
getStyle(FileSystemNode node)
Selects a style for the given node. |
boolean |
isLeaf(Object node)
Returns true if node is a leaf. |
void |
setItemCreator(ItemCreator itemCreator)
Registers an ItemCreator which creates items for FileSystemNodes. |
| Methods inherited from class de.enough.polish.io.file.FileSystemTreeModel |
|---|
getRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ItemCreator itemCreator
| Constructor Detail |
|---|
public UiFileSystemTreeModel()
| Method Detail |
|---|
public boolean isLeaf(Object node)
TreeModel
isLeaf in interface TreeModelisLeaf in class FileSystemTreeModelnode - a node in the tree, obtained from this TreeModel
public void addChildren(Object parent,
ArrayList list)
TreeModel
addChildren in interface TreeModeladdChildren in class FileSystemTreeModelparent - a node in the tree, obtained from this TreeModellist - the ArrayList into which the children should be added
protected void addCommands(FileSystemNode node,
Item item)
node - the file system nodeitem - the corresponding item.protected Style getStyle(FileSystemNode node)
.directory style for directories
and .file for files.
node - the file system node that includes the path (name and suffix)
setItemCreator(ItemCreator)public void setItemCreator(ItemCreator itemCreator)
itemCreator - the ItemCreator that should be used, use null to de-register.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||