|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EventHandlerDef> types.EventHandlerDef
public enum EventHandlerDef
Defines the event handler types allowed in %controller blocks in .gui files, along with the signatures of the methods generated in the output Controller interface.
Enum Constant Summary | |
---|---|
Action
An event handler which is passed no additional information. |
|
Tree
A listener handler for a Tree. |
Field Summary | |
---|---|
String |
handlerSig
The signature of the generated event handling method, without the return type or the name of the method. |
String[] |
imports
The classes that need to be imported for use in the handler signature. |
Method Summary | |
---|---|
static EventHandlerDef |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EventHandlerDef[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EventHandlerDef Action
public static final EventHandlerDef Tree
Field Detail |
---|
public final String handlerSig
For instance, an Action
has a handlerSig
of
"Component widget"
, so the controller code generated for a
declaration like this:
... might look like this:%controller { ActionHandler frobButtonClicked; }
public interface Controller { // ... void frobButtonClicked(Component widget); // ... }
public final String[] imports
Method Detail |
---|
public static final EventHandlerDef[] values()
for(EventHandlerDef c : EventHandlerDef.values()) System.out.println(c);
public static EventHandlerDef valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |