My Movies 1.0.0

hirondelle.movies.util.ui
Enum OnClose

Object
  extended by Enum<OnClose>
      extended by OnClose
All Implemented Interfaces:
Serializable, Comparable<OnClose>

public enum OnClose
extends 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

DISPOSE

public static final OnClose DISPOSE

DO_NOTHING

public static final OnClose DO_NOTHING

HIDE

public static final OnClose HIDE

EXIT

public static final OnClose EXIT
Method Detail

values

public static final OnClose[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(OnClose c : OnClose.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static OnClose valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getIntValue

public int getIntValue()
Return the integer value of the corresponding constant in WindowConstants.


My Movies 1.0.0

Copyright Hirondelle Systems - Generated 2008Dec30.15.53