Created
November 4, 2012 06:00
-
-
Save tomoTaka01/4010505 to your computer and use it in GitHub Desktop.
just memo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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