@ PostConstruct public void init ( ) { if ( defaultDistributionSetTypeLayout . getComponentCount ( ) > 0 ) { configurationViews . add ( defaultDistributionSetTypeLayout ) ; } configurationViews . add ( repositoryConfigurationView ) ; configurationViews . add ( rolloutConfigurationView ) ; configurationViews . add ( authenticationConfigurationView ) ; configurationViews . add ( pollingConfigurationView ) ; if ( customConfigurationViews != null ) { configurationViews . addAll ( customConfigurationViews . stream ( ) . filter ( ConfigurationGroup :: show ) . collect ( Collectors . toList ( ) ) ) ; } final Panel rootPanel = new Panel ( ) ; rootPanel . setStyleName ( "tenantconfig-root" ) ; final VerticalLayout rootLayout = new VerticalLayout ( ) ; rootLayout . setSizeFull ( ) ; rootLayout . setMargin ( true ) ; rootLayout . setSpacing ( true ) ; configurationViews . forEach ( rootLayout :: addComponent ) ; final HorizontalLayout buttonContent = saveConfigurationButtonsLayout ( ) ; rootLayout . addComponent ( buttonContent ) ; rootLayout . setComponentAlignment ( buttonContent , Alignment . BOTTOM_LEFT ) ; rootPanel . setContent ( rootLayout ) ; setCompositionRoot ( rootPanel ) ; configurationViews . forEach ( view -> view . addChangeListener ( this ) ) ; }
Init method adds all Configuration Views to the list of Views .