|
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.opengion.hayabusa.io.FileTreeModel
public class FileTreeModel
内部に TreeModel を持ったファイル階層表現を表すクラスです。 ルートディレクトリを指定して、それ以下のディレクトリ階層を構築します。 このクラスは,すべてのデータを走査してから、TreeModel を構築しますので、 パフォーマンス的には劣ります。
| フィールドの概要 | |
|---|---|
(package private) String |
dir
|
(package private) TreeModel |
model
|
| コンストラクタの概要 | |
|---|---|
FileTreeModel()
デフォルトコンストラクター |
|
FileTreeModel(String dir)
ルートディレクトリを指定して、TreeModel を構築するコンストラクター |
|
| メソッドの概要 | |
|---|---|
TreeModel |
getTreeModel()
TreeModel を取得します。 |
static void |
main(String[] args)
main メソッド これは、テスト用に使用するための main メソッドです。 |
void |
printTree(TreeNode root,
TreeModel model,
int level)
Tree の表示用メソッド これは、テスト用に使用するための Tree を標準出力に 出力するメソッドです。 |
void |
setDirectory(String dir)
ルートディレクトリを指定して、TreeModel を構築します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
TreeModel model
String dir
| コンストラクタの詳細 |
|---|
public FileTreeModel()
public FileTreeModel(String dir)
dir - ルートディレクトリ文字列| メソッドの詳細 |
|---|
public void setDirectory(String dir)
dir - ルートディレクトリ文字列public TreeModel getTreeModel()
public void printTree(TreeNode root,
TreeModel model,
int level)
root - トップレベルのTreeNodeオブジェクト(階層的に印字します。)model - TreeNodeを含む TreeModelオブジェクトlevel - 階層レベル。一番トップを 0 レベルとする。public static void main(String[] args)
args - 起動時の引数 args[0] にルートディレクトリ名
|
openGion 5.8.7.0 | ||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||