corda / com.r3.corda.networkmanage.common / MenuItem

MenuItem

data class MenuItem

Single menu item described by the selection key, label associated with this item, action to be executed on response to the item selection and termination flag used to decide whether to loop after action completion.

Constructors

<init>

MenuItem(key: String, label: String, action: () -> Unit, isTerminating: Boolean = false)

Single menu item described by the selection key, label associated with this item, action to be executed on response to the item selection and termination flag used to decide whether to loop after action completion.

Properties

action

val action: () -> Unit

isTerminating

val isTerminating: Boolean

key

val key: String

label

val label: String