45 lines
686 B
Java
45 lines
686 B
Java
package org.gcube.portlets.user.td.widgetcommonevent.shared.tr;
|
|
|
|
/**
|
|
*
|
|
* @author Giancarlo Panichi
|
|
*
|
|
*
|
|
*/
|
|
public enum TabResourceType {
|
|
FLOW("Flow"),
|
|
STANDARD("Standard"),
|
|
UNKNOWN("Unknown");
|
|
|
|
|
|
/**
|
|
* @param text
|
|
*/
|
|
private TabResourceType(final String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
private final String id;
|
|
|
|
@Override
|
|
public String toString() {
|
|
return id;
|
|
}
|
|
|
|
public String getTabResourceTypeLabel() {
|
|
return id;
|
|
}
|
|
|
|
|
|
public static TabResourceType getTabResourceTypeFromId(String id) {
|
|
for (TabResourceType tabResourceType : values()) {
|
|
if (tabResourceType.id.compareToIgnoreCase(id) == 0) {
|
|
return tabResourceType;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
|
|
}
|