本文整理匯總了Java中com.badlogic.gdx.Files.FileType.External方法的典型用法代碼示例。如果您正苦於以下問題:Java FileType.External方法的具體用法?Java FileType.External怎麽用?Java FileType.External使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.Files.FileType
的用法示例。
在下文中一共展示了FileType.External方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: file
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
@Override
public File file () {
if (type == FileType.Internal) return new File(IOSFiles.internalPath, file.getPath());
if (type == FileType.External) return new File(IOSFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(IOSFiles.localPath, file.getPath());
return file;
}
示例3: file
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
@Override
public File file() {
if (type == FileType.Internal) return new File(internalPath, file.getPath());
if (type == FileType.External) return new File(externalPath, file.getPath());
if (type == FileType.Local) return new File(localPath, file.getPath());
return file;
}
示例4: file
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public File file () {
if (type == FileType.External) return new File(DesktopFileHandle.externalPath, file.getPath());
if (type == FileType.Local) return new File(DesktopFileHandle.localPath, file.getPath());
return file;
}
示例5: file
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public File file () {
if (type == FileType.External) return new File(JglfwFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(JglfwFiles.localPath, file.getPath());
return file;
}
示例6: JglfwPreferences
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public JglfwPreferences (String name, String directory) {
this(new JglfwFileHandle(new File(directory, name), FileType.External));
}
示例7: file
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
/** Returns a java.io.File that represents this file handle. Note the returned file will only be usable for
* {@link FileType#Absolute} and {@link FileType#External} file handles. */
public File file () {
if (type == FileType.External) return new File(Gdx.files.getExternalStoragePath(), file.getPath());
return file;
}
示例8: HeadlessPreferences
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public HeadlessPreferences(String name, String directory) {
this(new HeadlessFileHandle(new File(directory, name), FileType.External));
}
示例9: file
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public File file () {
if (type == FileType.External) return new File(HeadlessFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(HeadlessFiles.localPath, file.getPath());
return file;
}
示例10: LwjglPreferences
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public LwjglPreferences (String name, String directory) {
this(new LwjglFileHandle(new File(directory, name), FileType.External));
}
示例11: file
import com.badlogic.gdx.Files.FileType; //導入方法依賴的package包/類
public File file () {
if (type == FileType.External) return new File(LwjglFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(LwjglFiles.localPath, file.getPath());
return file;
}