de.matthiasmann.twl
Annotation Type ActionMap.Action


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface ActionMap.Action

Annotation used for automatic handler registration

See Also:
ActionMap.addMapping(java.lang.Object)

Optional Element Summary
 java.lang.String name
          Optional action name.
 boolean onPressed
          Invoke the method on first key press events
 boolean onRelease
          Invoke the method on key release events
 boolean onRepeat
          Invoke the method also on repeated key press events
 

name

public abstract java.lang.String name
Optional action name. If not specified then the method name is used as action

Returns:
the action name
Default:
""

onPressed

public abstract boolean onPressed
Invoke the method on first key press events

Returns:
default true
Default:
true

onRelease

public abstract boolean onRelease
Invoke the method on key release events

Returns:
default false
Default:
false

onRepeat

public abstract boolean onRepeat
Invoke the method also on repeated key press events

Returns:
default false
Default:
true