Notification#getActions(). The UI
will create a control (button or menu item) for each action so that the user can trigger
the action. This allows for a quick response on incoming notifications, e.g. "open the
mail".
| Modifier and Type | Field and Description |
|---|---|
| private Callback | |
| private final StringProperty |
| Access | Constructor and Description |
|---|---|
| public | NotificationAction(String
the text of the action as shown in the UI text)Constructs a new action with the given text. |
| public | NotificationAction(String
the text of the action as shown in the UI text, Callback<Notification<T>, Notification.the application logic to perform when the user selects the action onActionConstructs a new action with the given text. |
| Modifier and Type | Method and Description |
|---|---|
| public final Callback | Returns: the callback to invoke when the user triggers the actionReturns the callback that will be invoked when the user selects the action in the UI. |
| public final String | |
| public final void | setOnAction(Callback<Notification<T>, Notification.
the callback to invoke when the user triggers the action onActionSets the callback that will be invoked when the user selects the action in the UI. |
| public final void | |
| public final StringProperty | Returns: the text for the actionThe text that will be used in the UI when creating controls that will trigger the action. |
| onAction | back to summary |
|---|---|
| private Callback<Notification<T>, Notification. | |
| text | back to summary |
|---|---|
| private final StringProperty text | |
| NotificationAction | back to summary |
|---|---|
| public NotificationAction(String text) Constructs a new action with the given text. The default action behaviour will be to remove the notification from its group. No additional application logic will be executed.
| |
| NotificationAction | back to summary |
|---|---|
| public NotificationAction(String text, Callback<Notification<T>, Notification. Constructs a new action with the given text.
| |
| getOnAction | back to summary |
|---|---|
| public final Callback Returns the callback that will be invoked when the user selects the action in the UI.
| |
| getText | back to summary |
|---|---|
| public final String getText() | |
| setOnAction | back to summary |
|---|---|
| public final void setOnAction(Callback<Notification<T>, Notification. Sets the callback that will be invoked when the user selects the action in the UI.
| |
| setText | back to summary |
|---|---|
| public final void setText(String text) | |
| textProperty | back to summary |
|---|---|
| public final StringProperty textProperty() The text that will be used in the UI when creating controls that will trigger the action.
| |