Skip to content

Instantly share code, notes, and snippets.

@tomoTaka01
Created November 4, 2012 06:00
Show Gist options
  • Save tomoTaka01/4010505 to your computer and use it in GitHub Desktop.
Save tomoTaka01/4010505 to your computer and use it in GitHub Desktop.
just memo
import javax.faces.model.SelectItem;
/**
*
* @author tomo
*/
public enum GreetSelect {
Hello("1", "Hello"),
GoodMorning("2", "Good Morning"),
GoodNight("3", "Good Night")
;
private final String value;
private final String label;
GreetSelect(String value, String label){
this.value = value;
this.label = label;
}
public SelectItem getSelectItem(){
return new SelectItem(this.value, this.label);
};
public abstract String getJapanes();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment