本文整理匯總了Java中com.badlogic.gdx.Files.FileType.Absolute方法的典型用法代碼示例。如果您正苦於以下問題:Java FileType.Absolute方法的具體用法?Java FileType.Absolute怎麽用?Java FileType.Absolute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.Files.FileType
的用法示例。
在下文中一共展示了FileType.Absolute方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: build
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public void build (Array<FileHandle> favorites, FileHandle file) {
sortingPopupMenu.build();
this.file = file;
clearChildren();
addItem(newDirectory);
addItem(sortBy);
addItem(refresh);
addSeparator();
if (file.type() == FileType.Absolute || file.type() == FileType.External) addItem(delete);
if (file.type() == FileType.Absolute) {
addItem(showInExplorer);
if (file.isDirectory()) {
if (favorites.contains(file, false))
addItem(removeFromFavorites);
else
addItem(addToFavorites);
}
}
}
示例2: newFileHandle
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
@Override
public FileHandle newFileHandle (String fileName) {
return new DesktopFileHandle(fileName, FileType.Absolute);
}
示例3: FileHandleStream
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
/** Create an {@link FileType#Absolute} file at the given location. */
public FileHandleStream (String path) {
super(new File(path), FileType.Absolute);
}
示例4: FileHandle
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
/** Creates a new absolute FileHandle for the file name. Use this for tools on the desktop that don't need any of the backends.
* Do not use this constructor in case you write something cross-platform. Use the {@link Files} interface instead.
* @param fileName the filename. */
public FileHandle (String fileName) {
this.file = new File(fileName);
this.type = FileType.Absolute;
}
示例5: FileWrapper
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
/** Creates a new absolute FileHandle for the file name. Use this for tools on the desktop that don't need any of the backends.
* Do not use this constructor in case you write something cross-platform. Use the {@link Files} interface instead.
* @param fileName the filename. */
public FileWrapper (String fileName) {
this.file = new File(fileName);
this.type = FileType.Absolute;
}