SimpleDialogAction

class SimpleDialogAction(val name: String, val action: (ActionEvent, DialogWrapper) -> Unit) : DialogBuilder.ActionDescriptor(source)

An action that can be run from a dialog button.

Parameters

name

the name of the action

action

the code to execute when the action is run

Constructors

Link copied to clipboard
constructor(name: String, action: (ActionEvent, DialogWrapper) -> Unit)

Properties

Link copied to clipboard
private val action: (ActionEvent, DialogWrapper) -> Unit
Link copied to clipboard
private val name: String

Functions

Link copied to clipboard
open override fun getAction(dialog: DialogWrapper): Action

Returns the action that should be run from the dialog button.