diyko
20 Oct 2008, 1:16 AM
Hi
I have grid bind with model like this
SomeModel{
...
MyEnums enumProperty;
...
}
public enum MyEnums{
OPEN("open issue"), CLOSED("closed issue");
private String label;
public MyEnums(String label){
this.label = label;
}
public String getLabel(){
return label
}
I need to display label of enum
Could anyone help me? How I can to do it?
(By default displayed OPEN or CLOSED but i need "open issue" or "closed issue")
I have grid bind with model like this
SomeModel{
...
MyEnums enumProperty;
...
}
public enum MyEnums{
OPEN("open issue"), CLOSED("closed issue");
private String label;
public MyEnums(String label){
this.label = label;
}
public String getLabel(){
return label
}
I need to display label of enum
Could anyone help me? How I can to do it?
(By default displayed OPEN or CLOSED but i need "open issue" or "closed issue")