Class ButtonBuilder

java.lang.Object
cz.masci.springfx.mvci.view.builder.ButtonBuilder

public class ButtonBuilder extends Object
   Button builder.
   Based on this builder the new button is created and configured with the command to process.
   The builder() is used to build button with set attributes.
   Provide button supplier with button class to be created.
 
Last set command will win. Either consumable or runnable command. If no command is set, no action is set.
appThreadCommand
- the command is executed with accepting button related process running in JavaFX main thread. It is used for long processes running in app thread.
fxThreadCommand
- the command is executed before button related process. It is used for quick processes not running in app thread but in JavaFX main thread.
Remaining attributes are
disableExpression
- expression connected to button disable property. It is combined with internal disable property
text
- button text.
styleClass
- button style class.