|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectjp.sourceforge.gtibuilder.io.filesystem.GBFile
GTI Builderのデスクトップにあるファイルを表します。
| フィールドの概要 | |
private byte[] |
data
|
private boolean |
directory
|
private boolean |
exists
|
private boolean |
file
|
private FileType |
fileType
|
private FileUpdateManager |
fumanager
|
private StringArray |
infomation
|
private Vector |
list
|
private String |
name
|
private GBFile |
parent
|
private Project |
project
|
| コンストラクタの概要 | |
protected |
GBFile(Project project)
|
private |
GBFile(String name,
Project project,
GBFile parent,
boolean exists,
boolean directory,
boolean file)
Creates a new instance of GBFile |
private |
GBFile(String name,
Project project,
GBFile parent,
boolean exists,
boolean directory,
boolean file,
byte[] info)
|
| メソッドの概要 | |
private boolean |
addFile(GBFile file)
このGBFileがディレクトリである場合にfileを追加します。 |
void |
addFileUpdateListener(FileUpdateListener listener)
GBFileの名前やディレクトリが変更された時に通知されるリスナーを追加します。 |
boolean |
createNewFile()
このファイルがまだ存在しないとき普通のファイルを作成します。 |
boolean |
delete()
このファイルを削除します。 |
boolean |
exists()
このファイルが存在するときに trueを返します。 |
byte[] |
getData()
この GBFileが表すデータを取得します。 |
EditorComponent |
getEditorComponent()
|
String |
getFileInfomation(String key)
|
FileType |
getFileType()
|
GBFile |
getGBFile(String path)
|
static GBFile |
getGBFile(String path,
Project project)
GBFileのインスタンスを取得するときに使います。 |
String |
getName()
ファイル名を返します |
String |
getParent()
このファイルの親のパスを返します。 |
GBFile |
getParentFile()
このファイルの親を返します。 |
String |
getPath()
このファイルのパスを返します。 |
static GBFile |
getRoot(Project project)
projectのRootを取得します。 |
boolean |
isDirectory()
このファイルがディレクトリのときに trueを返します。 |
boolean |
isFile()
このファイルが普通のファイルのときに trueを返します。 |
boolean |
isRoot()
|
String[] |
list()
このファイルがディレクトリだった場合、その子のパスを返します。 |
GBFile[] |
listFile()
このファイルがディレクトリだった場合、その子を返します。 |
boolean |
mkdir()
このファイルがまだ存在しないときディレクトリを作成します。 |
private boolean |
removeFile(GBFile file)
|
void |
removeFileUpdateListener(FileUpdateListener listener)
GBFileの名前やディレクトリが変更された時に通知されるリスナーを削除します。 |
boolean |
setData(byte[] data)
|
void |
setFileInfomation(String key,
String obj)
|
void |
setFileType(FileType ft)
|
boolean |
setName(String newName)
このファイルの名前を指定します。 |
boolean |
setParentFile(GBFile file)
このファイルの親を指定します。 |
String |
toString()
このファイルのパスを返します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
private boolean directory
private boolean file
private boolean exists
private String name
private GBFile parent
private FileType fileType
private byte[] data
private Vector list
private Project project
private FileUpdateManager fumanager
private StringArray infomation
| コンストラクタの詳細 |
private GBFile(String name,
Project project,
GBFile parent,
boolean exists,
boolean directory,
boolean file)
private GBFile(String name,
Project project,
GBFile parent,
boolean exists,
boolean directory,
boolean file,
byte[] info)
protected GBFile(Project project)
| メソッドの詳細 |
public static GBFile getGBFile(String path,
Project project)
public GBFile getGBFile(String path)
private boolean addFile(GBFile file)
private boolean removeFile(GBFile file)
public boolean createNewFile()
public boolean mkdir()
java.io.File.mkdirs()に同じです。
public boolean delete()
public boolean exists()
trueを返します。
public String toString()
public String getName()
public boolean setName(String newName)
public String getPath()
public String getParent()
public boolean setParentFile(GBFile file)
public GBFile getParentFile()
public boolean isDirectory()
trueを返します。
public boolean isFile()
trueを返します。
public String[] list()
public GBFile[] listFile()
public static GBFile getRoot(Project project)
projectのRootを取得します。
project - Rootを取得するプロジェクトを指定します。public byte[] getData()
GBFileが表すデータを取得します。
public boolean setData(byte[] data)
public void setFileType(FileType ft)
public FileType getFileType()
public boolean isRoot()
public EditorComponent getEditorComponent()
public void addFileUpdateListener(FileUpdateListener listener)
public void removeFileUpdateListener(FileUpdateListener listener)
public void setFileInfomation(String key,
String obj)
public String getFileInfomation(String key)
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||