|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
ObjectEnum<OnClose>
OnClose
public enum OnClose
Enumeration of various close operations.
Use of such an enumeration provides a clearer and safer alternative to using
the members of WindowConstants.
It is important to note that
JDialog.setDefaultCloseOperation(int) allows for
only 3 of these operations. It does not allow for EXIT.
| Enum Constant Summary | |
|---|---|
DISPOSE
|
|
DO_NOTHING
|
|
EXIT
|
|
HIDE
|
|
| Method Summary | |
|---|---|
int |
getIntValue()
Return the integer value of the corresponding constant in WindowConstants. |
static OnClose |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OnClose[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OnClose DISPOSE
public static final OnClose DO_NOTHING
public static final OnClose HIDE
public static final OnClose EXIT
| Method Detail |
|---|
public static final OnClose[] values()
for(OnClose c : OnClose.values())
System.out.println(c);
public static OnClose valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic int getIntValue()
WindowConstants.
|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||