DialogEvent Class
- java.
lang. Object - com.
microsoft. bot. dialogs. DialogEvent
- com.
public class DialogEvent
Represents an event related to the "lifecycle" of the dialog.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| DialogEvent() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getName()
Gets name of the event being raised. |
| java.lang.Object |
getValue()
Gets optional value associated with the event. |
| void |
setBubble(boolean withBubble)
Sets whether the event will be bubbled to the parent `Dialog |
| void |
setName(String withName)
Sets name of the event being raised. |
| void |
setValue(Object withValue)
Sets optional value associated with the event. |
| boolean |
shouldBubble()
Indicates whether the event will be bubbled to the parent `Dialog |
Methods inherited from java.lang.Object
Constructor Details
DialogEvent
public DialogEvent()
Method Details
getName
public String getName()
Gets name of the event being raised.
Returns:
getValue
public Object getValue()
Gets optional value associated with the event.
Returns:
setBubble
public void setBubble(boolean withBubble)
Sets whether the event will be bubbled to the parent `DialogContext` if not handled by the current dialog.
Parameters:
DialogContext.
setName
public void setName(String withName)
Sets name of the event being raised.
Parameters:
setValue
public void setValue(Object withValue)
Sets optional value associated with the event.
Parameters:
shouldBubble
public boolean shouldBubble()
Indicates whether the event will be bubbled to the parent `DialogContext` if not handled by the current dialog.
Returns:
DialogContext.