private Pane buildButtonBar ( final boolean isHorizontal ) { if ( isHorizontal ) { this . box = new HBox ( ) ; this . box . setMaxWidth ( Region . USE_COMPUTED_SIZE ) ; this . box . getStyleClass ( ) . add ( "HorizontalTabbedPane" ) ; } else { this . box = new VBox ( ) ; this . box . setMaxHeight ( Region . USE_COMPUTED_SIZE ) ; this . box . getStyleClass ( ) . add ( "VerticalTabbedPane" ) ; } switch ( model ( ) . object ( ) . orientation ( ) ) { case top : this . box . getStyleClass ( ) . add ( "Top" ) ; ( ( HBox ) this . box ) . setAlignment ( Pos . BOTTOM_LEFT ) ; break ; case bottom : this . box . getStyleClass ( ) . add ( "Bottom" ) ; ( ( HBox ) this . box ) . setAlignment ( Pos . TOP_RIGHT ) ; break ; case left : this . box . getStyleClass ( ) . add ( "Left" ) ; ( ( VBox ) this . box ) . setAlignment ( Pos . TOP_RIGHT ) ; break ; case right : this . box . getStyleClass ( ) . add ( "Right" ) ; ( ( VBox ) this . box ) . setAlignment ( Pos . TOP_LEFT ) ; break ; } return this . box ; }
Builds the button bar .