|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MediaSort>
com.silverpeas.gallery.web.MediaSort
public enum MediaSort
This enumeration defines functional sorting rules. All the rule defines can defined as not exposed to the user (displayed parameter).
Enum Constant Summary | |
---|---|
Author
|
|
CreationDateAsc
|
|
CreationDateDesc
|
|
Definition
|
|
Size
|
|
Title
|
Field Summary | |
---|---|
static Set<MediaSort> |
ALL
|
Method Summary | |
---|---|
static MediaSort |
from(String type)
Gets the enum instance according to the specified type. |
String |
getBundleKey()
Gets the bundle key in order to perform right label into the user language. |
String |
getName()
|
boolean |
isDisplayed()
Indicates if the sorting rule can be displayed to the user. |
void |
perform(List<Media> mediaList)
Performs the sort of the specified list. |
static MediaSort |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MediaSort[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MediaSort CreationDateAsc
public static final MediaSort CreationDateDesc
public static final MediaSort Title
public static final MediaSort Size
public static final MediaSort Author
public static final MediaSort Definition
Field Detail |
---|
public static final Set<MediaSort> ALL
Method Detail |
---|
public static MediaSort[] values()
for (MediaSort c : MediaSort.values()) System.out.println(c);
public static MediaSort valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static MediaSort from(String type)
type
-
public String getName()
public boolean isDisplayed()
public String getBundleKey()
public void perform(List<Media> mediaList)
mediaList
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |