Java Code Examples for com.kotcrab.vis.ui.widget.file.FileChooser#FileItem
The following examples show how to use
com.kotcrab.vis.ui.widget.file.FileChooser#FileItem .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppIconProvider.java From gdx-texture-packer-gui with Apache License 2.0 | 5 votes |
@Override protected Drawable getDefaultIcon(FileChooser.FileItem item) { String ext = item.getFile().extension().toLowerCase(); if (ext.equals(AppConstants.PROJECT_FILE_EXT)) { return chooser.getSkin().getDrawable("custom/ic-gdx-texture-packer"); } return null; }
Example 2
Source File: HighResFileChooserIconProvider.java From vis-ui with Apache License 2.0 | 5 votes |
@Override protected Drawable getDirIcon (FileChooser.FileItem item) { Drawable icon = getIcon(iconFolderBig, chooser.getViewMode()); if (icon == null) return super.getDirIcon(item); return icon; }
Example 3
Source File: HighResFileChooserIconProvider.java From vis-ui with Apache License 2.0 | 5 votes |
@Override protected Drawable getImageIcon (FileChooser.FileItem item) { Drawable icon = getIcon(iconFileImage, chooser.getViewMode()); if (icon == null) return super.getImageIcon(item); return icon; }
Example 4
Source File: HighResFileChooserIconProvider.java From vis-ui with Apache License 2.0 | 5 votes |
@Override protected Drawable getAudioIcon (FileChooser.FileItem item) { Drawable icon = getIcon(iconFileAudio, chooser.getViewMode()); if (icon == null) return super.getAudioIcon(item); return icon; }
Example 5
Source File: HighResFileChooserIconProvider.java From vis-ui with Apache License 2.0 | 5 votes |
@Override protected Drawable getPdfIcon (FileChooser.FileItem item) { Drawable icon = getIcon(iconFilePdf, chooser.getViewMode()); if (icon == null) return super.getPdfIcon(item); return icon; }
Example 6
Source File: HighResFileChooserIconProvider.java From vis-ui with Apache License 2.0 | 5 votes |
@Override protected Drawable getTextIcon (FileChooser.FileItem item) { Drawable icon = getIcon(iconFileText, chooser.getViewMode()); if (icon == null) return super.getTextIcon(item); return icon; }
Example 7
Source File: FileListAdapter.java From vis-ui with Apache License 2.0 | 4 votes |
@Override protected FileChooser.FileItem createView (FileHandle item) { return chooser.new FileItem(item, chooser.getViewMode()); }
Example 8
Source File: FileListAdapter.java From vis-ui with Apache License 2.0 | 4 votes |
@Override public ObjectMap<FileHandle, FileChooser.FileItem> getViews () { return super.getViews(); }
Example 9
Source File: FileListAdapter.java From vis-ui with Apache License 2.0 | 4 votes |
public Array<FileChooser.FileItem> getOrderedViews () { return orderedViews; }