Package adams.gui.event
Enum SqlQueryPanelEvent.EventType
- java.lang.Object
-
- java.lang.Enum<SqlQueryPanelEvent.EventType>
-
- adams.gui.event.SqlQueryPanelEvent.EventType
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlQueryPanelEvent.EventType>
- Enclosing class:
- SqlQueryPanelEvent
public static enum SqlQueryPanelEvent.EventType extends Enum<SqlQueryPanelEvent.EventType>
The type of event.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description QUERY_CHANGED
the query was modified.QUERY_ERROR
a query generated an error.QUERY_SUCCESS_NOOUTPUT
a query was run successfully (but no output).QUERY_SUCCESS_WITHOUTPUT
a query was run successfully (with output).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlQueryPanelEvent.EventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlQueryPanelEvent.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUERY_CHANGED
public static final SqlQueryPanelEvent.EventType QUERY_CHANGED
the query was modified.
-
QUERY_SUCCESS_NOOUTPUT
public static final SqlQueryPanelEvent.EventType QUERY_SUCCESS_NOOUTPUT
a query was run successfully (but no output).
-
QUERY_SUCCESS_WITHOUTPUT
public static final SqlQueryPanelEvent.EventType QUERY_SUCCESS_WITHOUTPUT
a query was run successfully (with output).
-
QUERY_ERROR
public static final SqlQueryPanelEvent.EventType QUERY_ERROR
a query generated an error.
-
-
Method Detail
-
values
public static SqlQueryPanelEvent.EventType[] 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 (SqlQueryPanelEvent.EventType c : SqlQueryPanelEvent.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlQueryPanelEvent.EventType 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
-
-