Enum CallbackGUIBindings.MessageType
- java.lang.Object
-
- java.lang.Enum<CallbackGUIBindings.MessageType>
-
- org.glassfish.appclient.client.acc.callbackhandler.CallbackGUIBindings.MessageType
-
- All Implemented Interfaces:
Serializable,Comparable<CallbackGUIBindings.MessageType>
- Enclosing class:
- CallbackGUIBindings
protected static enum CallbackGUIBindings.MessageType extends Enum<CallbackGUIBindings.MessageType>
Simplifies converting between option pane message types and callback message types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORINFORMATIONPLAINQUESTIONWARNING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexceeds(CallbackGUIBindings.MessageType ms)intgetOptionPaneMessageType()static CallbackGUIBindings.MessageTypeseverityForConfirmation(int confirmationCallbackMessageType)static CallbackGUIBindings.MessageTypeseverityForTextOutput(int textOutputCallbackMessageType)static CallbackGUIBindings.MessageTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CallbackGUIBindings.MessageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN
public static final CallbackGUIBindings.MessageType PLAIN
-
INFORMATION
public static final CallbackGUIBindings.MessageType INFORMATION
-
QUESTION
public static final CallbackGUIBindings.MessageType QUESTION
-
WARNING
public static final CallbackGUIBindings.MessageType WARNING
-
ERROR
public static final CallbackGUIBindings.MessageType ERROR
-
-
Method Detail
-
values
public static CallbackGUIBindings.MessageType[] 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 (CallbackGUIBindings.MessageType c : CallbackGUIBindings.MessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CallbackGUIBindings.MessageType 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 nameNullPointerException- if the argument is null
-
getOptionPaneMessageType
public int getOptionPaneMessageType()
-
exceeds
public boolean exceeds(CallbackGUIBindings.MessageType ms)
-
severityForConfirmation
public static CallbackGUIBindings.MessageType severityForConfirmation(int confirmationCallbackMessageType)
-
severityForTextOutput
public static CallbackGUIBindings.MessageType severityForTextOutput(int textOutputCallbackMessageType)
-
-