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

    Constructors
    Constructor
    Description
    CommandsViewBuilder(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

    Modifier and Type
    Method
    Description
    javafx.scene.layout.Region
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommandsViewBuilder

      public CommandsViewBuilder(@Nonnull List<? extends javafx.scene.control.Button> buttons)
      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 view
      alignment - 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 view
      isVertical - if true creates vertical view
      alignment - the alignment of the buttons in the view
  • Method Details

    • build

      public javafx.scene.layout.Region build()
      Specified by:
      build in interface javafx.util.Builder<javafx.scene.layout.Region>