Package net.anwiba.commons.swing.dialog
Enum DialogType
- java.lang.Object
-
- java.lang.Enum<DialogType>
-
- net.anwiba.commons.swing.dialog.DialogType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DialogType>
public enum DialogType extends java.lang.Enum<DialogType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELCANCEL_APPLY_OKCANCEL_OKCANCEL_TRY_OKCLOSECLOSE_DETIALSNONEOKYES_NO
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T> Taccept(IDialogTypeVisitor<T> visitor)booleanisConfirmable()static DialogTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DialogType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLOSE
public static final DialogType CLOSE
-
CLOSE_DETIALS
public static final DialogType CLOSE_DETIALS
-
CANCEL
public static final DialogType CANCEL
-
CANCEL_OK
public static final DialogType CANCEL_OK
-
CANCEL_APPLY_OK
public static final DialogType CANCEL_APPLY_OK
-
CANCEL_TRY_OK
public static final DialogType CANCEL_TRY_OK
-
YES_NO
public static final DialogType YES_NO
-
NONE
public static final DialogType NONE
-
OK
public static final DialogType OK
-
-
Method Detail
-
values
public static DialogType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DialogType c : DialogType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DialogType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
accept
public abstract <T> T accept(IDialogTypeVisitor<T> visitor)
-
isConfirmable
public boolean isConfirmable()
-
-