types
Class GUIFile.EventHandler
java.lang.Object
types.GUIFile.EventHandler
- Enclosing class:
- GUIFile
public static class GUIFile.EventHandler
- extends Object
A handler declared in the GUI file as part of the controller. May be
referred to in the value of onClick, etc.
|
Field Summary |
String |
handlerType
The type of the handler, related to the signature of the handler
function. |
String |
id
The identifier of the handler. |
handlerType
public final String handlerType
- The type of the handler, related to the signature of the handler
function. For instance, in Java/Swing, an ActionListener would
correspond to a different handler type than a KeyListener because a
keypress event must carry data (which key was pressed) along with
it, whereas an action event need only convey "it happened" and so
has no such payload.
id
public final String id
- The identifier of the handler. This will be the name of the method
in the generated controller interface.
GUIFile.EventHandler
public GUIFile.EventHandler(String handlerType,
String id)
- Construct a handler declaration from its type and id.
- Parameters:
handlerType - The type of the handler.id - The identifier for the handler.
toString
public String toString()
- Overrides:
toString in class Object