Button
, CircleShape
, Shape
, SquareShape
, TextShape
, Widget
public interface ClickAction
Modifier and Type | Method | Description |
---|---|---|
void |
onClick(Command scl) |
onClick - third version of this method, this one uses a listener object
of type Command.
|
void |
onClick(java.lang.Object object) |
onClick - sets up the handler for what to do when this button is clicked.
|
void |
onClick(java.lang.Object object,
java.lang.String methodName) |
onClick - another version of callOnClick, this one specifies the method
to call in the parameter.
|
void onClick(java.lang.Object object)
object
- receives the call when clicked, must not be nullvoid onClick(java.lang.Object object, java.lang.String methodName)
object
- receives the call upon click, can't be nullmethodName
- name of method to be called, can't be nullapply.
if the method doesn't exist, this will generate an exception
(NoSuchMethod).
void onClick(Command scl)
scl
- command object, can't be null