本文整理汇总了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;
}