| Modifier and Type | Method and Description |
|---|---|
Action |
build()
Build the action
|
Actions.ActionBuilder |
setActionCall(Runnable call)
Set the method that should serve as the implementation of the
actionPerformed method of the action |
Actions.ActionBuilder |
setActionMethod(Consumer<? super ActionEvent> actionMethod)
Set the method that should serve as the implementation of the
actionPerformed method of the action |
Actions.ActionBuilder |
setMnemonicKey(int key)
Set the mnemonic key of the action
|
Actions.ActionBuilder |
setName(String name)
Set the name of the action
|
Actions.ActionBuilder |
setShortDescription(String shortDescription)
Set the short description (tooltip) of the action
|
public Actions.ActionBuilder setName(String name)
name - The namepublic Actions.ActionBuilder setShortDescription(String shortDescription)
shortDescription - The short descriptionpublic Actions.ActionBuilder setMnemonicKey(int key)
key - The keypublic Actions.ActionBuilder setActionMethod(Consumer<? super ActionEvent> actionMethod)
actionPerformed method of the actionactionMethod - the action methodpublic Actions.ActionBuilder setActionCall(Runnable call)
actionPerformed method of the actioncall - the action methodpublic Action build()
Copyright © 2022. All rights reserved.