
io.qt.gui.QAbstractFileIconProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
/**
* File icons for the QFileSystemModel class
* Java wrapper for Qt class QAbstractFileIconProvider
*/
public class QAbstractFileIconProvider extends io.qt.QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QAbstractFileIconProvider::IconType
*/
public enum IconType implements io.qt.QtEnumerator {
Computer(0),
Desktop(1),
Trashcan(2),
Network(3),
Drive(4),
Folder(5),
File(6);
private IconType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static IconType resolve(int value) {
switch (value) {
case 0: return Computer;
case 1: return Desktop;
case 2: return Trashcan;
case 3: return Network;
case 4: return Drive;
case 5: return Folder;
case 6: return File;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QAbstractFileIconProvider::Option
*
* @see Options
*/
public enum Option implements io.qt.QtFlagEnumerator {
DontUseCustomDirectoryIcons(1);
private Option(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public Options asFlags() {
return new Options(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public Options combined(Option e) {
return new Options(this, e);
}
/**
* Creates a new {@link Options} from the entries.
* @param values entries
* @return new flag
*/
public static Options flags(Option ... values) {
return new Options(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static Option resolve(int value) {
switch (value) {
case 1: return DontUseCustomDirectoryIcons;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link Option}
*/
public static final class Options extends io.qt.QFlags
© 2015 - 2025 Weber Informatics LLC | Privacy Policy