public class SpeechBoxButton
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpeechBoxButton.EventHandler
An interface for use when adding a click event handler to the button.
|
| Modifier and Type | Field and Description |
|---|---|
SpeechBoxButton.EventHandler |
eventHandler
The event handler that listens for the click event
|
int |
result
The int to return as a result of the button being pressed
|
java.lang.String |
text
The text to display on the button
|
| Constructor and Description |
|---|
SpeechBoxButton(java.lang.String buttonText,
int buttonresult,
SpeechBoxButton.EventHandler eventHandlerVal)
Constructor for SpeechBoxButton
|
public java.lang.String text
public int result
public SpeechBoxButton.EventHandler eventHandler
public SpeechBoxButton(java.lang.String buttonText,
int buttonresult,
SpeechBoxButton.EventHandler eventHandlerVal)
buttonText - String to display on buttoneventHandlerVal - On click event handler - use a Lambda function (Java8 only)