public enum AsyncImageLoading extends Enum<AsyncImageLoading>
Enum Constant and Description |
---|
NO
Never load images in a background task.
|
REMOTE_IMAGES_ONLY
Load remote images (that is, images not having a "file:" URL)
in a background task.
|
YES
Load all images in a background task.
|
Modifier and Type | Method and Description |
---|---|
static AsyncImageLoading |
getPreference()
Returns the user preference in terms of image loading.
|
static boolean |
isPreferredFor(URL url)
Given current user preference in terms of image loading,
returns
true if specified URL should be loaded
in a background task; false otherwise. |
static void |
setPreference(AsyncImageLoading pref)
Specifies the user preference in terms of image loading.
|
static AsyncImageLoading |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AsyncImageLoading[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsyncImageLoading NO
public static final AsyncImageLoading YES
public static final AsyncImageLoading REMOTE_IMAGES_ONLY
public static AsyncImageLoading[] values()
for (AsyncImageLoading c : AsyncImageLoading.values()) System.out.println(c);
public static AsyncImageLoading valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static final void setPreference(AsyncImageLoading pref)
public static final AsyncImageLoading getPreference()
public static final boolean isPreferredFor(URL url)
true
if specified URL should be loaded
in a background task; false
otherwise.