Class CommandsViewBuilder
java.lang.Object
cz.masci.springfx.mvci.view.builder.CommandsViewBuilder
- All Implemented Interfaces:
javafx.util.Builder<javafx.scene.layout.Region>
public class CommandsViewBuilder
extends Object
implements javafx.util.Builder<javafx.scene.layout.Region>
A builder class for creating a view containing a list of buttons.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandsViewBuilder(List<? extends javafx.scene.control.Button> buttons) Create a horizontal view containing a list of buttons aligned to center left of the view.CommandsViewBuilder(List<? extends javafx.scene.control.Button> buttons, boolean isVertical, javafx.geometry.Pos alignment) Create a horizontal or vertical view containing a list of buttons aligned with provided alignment.CommandsViewBuilder(List<? extends javafx.scene.control.Button> buttons, javafx.geometry.Pos alignment) Create a horizontal view containing a list of buttons aligned with provided alignment. -
Method Summary
-
Constructor Details
-
CommandsViewBuilder
Create a horizontal view containing a list of buttons aligned to center left of the view.- Parameters:
buttons- a list of buttons to be displayed in the view
-
CommandsViewBuilder
public CommandsViewBuilder(@Nonnull List<? extends javafx.scene.control.Button> buttons, @Nonnull javafx.geometry.Pos alignment) Create a horizontal view containing a list of buttons aligned with provided alignment.- Parameters:
buttons- a list of buttons to be displayed in the viewalignment- the alignment of the buttons in the view
-
CommandsViewBuilder
public CommandsViewBuilder(@Nonnull List<? extends javafx.scene.control.Button> buttons, boolean isVertical, @Nonnull javafx.geometry.Pos alignment) Create a horizontal or vertical view containing a list of buttons aligned with provided alignment.- Parameters:
buttons- a list of buttons to be displayed in the viewisVertical- iftruecreates vertical viewalignment- the alignment of the buttons in the view
-
-
Method Details
-
build
public javafx.scene.layout.Region build()- Specified by:
buildin interfacejavafx.util.Builder<javafx.scene.layout.Region>
-