|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Person.Gender>
com.antelmann.crm.Person.Gender
public static enum Person.Gender
| Enum Constant Summary | |
|---|---|
FEMALE
|
|
MALE
|
|
OTHER
|
|
UNSPECIFIED
|
|
| Method Summary | |
|---|---|
Image |
getDisplayIcon()
returns an image that is suitable for use as an icon for this instance. |
Image |
getDisplayImage()
returns an image that represents a visual representation of this instance. |
String |
getSalutation()
|
String |
toString()
|
static Person.Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Person.Gender[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Person.Gender UNSPECIFIED
public static final Person.Gender MALE
public static final Person.Gender FEMALE
public static final Person.Gender OTHER
| Method Detail |
|---|
public static Person.Gender[] values()
for (Person.Gender c : Person.Gender.values()) System.out.println(c);
public static Person.Gender valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Person.Gender>public String getSalutation()
public Image getDisplayImage()
throws IOException
Imageable
getDisplayImage in interface ImageableIOException
public Image getDisplayIcon()
throws IOException
Imageable
getDisplayIcon in interface ImageableIOException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||