2013-02-06 15:40:17 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.user.workspace.client.workspace;
|
|
|
|
|
|
|
|
/**
|
2019-02-22 12:43:24 +01:00
|
|
|
* @author Federico De Faveri defaveriAtisti.cnr.it
|
2013-02-06 15:40:17 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public enum GWTWorkspaceItemType implements GWTItemDescription {
|
|
|
|
//icon class calculated from the state
|
|
|
|
FOLDER("Folder", "tree-folder-icon"),
|
|
|
|
//icon class derived from the folder item type
|
|
|
|
FOLDER_ITEM("Folder Item","");
|
|
|
|
|
|
|
|
protected String iconClass;
|
|
|
|
protected String label;
|
|
|
|
|
|
|
|
GWTWorkspaceItemType(String label, String iconClass)
|
|
|
|
{
|
|
|
|
this.label = label;
|
|
|
|
this.iconClass = iconClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getIconClass() {
|
|
|
|
return iconClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLabel()
|
|
|
|
{
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|