private void createOverviewContent ( final VerticalLayout panelContent , final PersonData personData , final ViewRiksdagenPolitician viewRiksdagenPolitician , final String pageId ) { LabelFactory . createHeader2Label ( panelContent , OVERVIEW ) ; final Link createPoliticianPageLink = getPageLinkFactory ( ) . createPoliticianPageLink ( personData ) ; panelContent . addComponent ( createPoliticianPageLink ) ; final Image image = new Image ( "" , new ExternalResource ( personData . getImageUrl192 ( ) . replace ( "http://" , "https://" ) ) ) ; final HorizontalLayout horizontalLayout = new HorizontalLayout ( ) ; horizontalLayout . setSizeFull ( ) ; panelContent . addComponent ( horizontalLayout ) ; horizontalLayout . addComponent ( image ) ; getFormFactory ( ) . addFormPanelTextFields ( horizontalLayout , viewRiksdagenPolitician , ViewRiksdagenPolitician . class , AS_LIST ) ; final VerticalLayout overviewLayout = new VerticalLayout ( ) ; overviewLayout . setSizeFull ( ) ; panelContent . addComponent ( overviewLayout ) ; panelContent . setExpandRatio ( overviewLayout , ContentRatio . LARGE_FORM ) ; getPoliticianMenuItemFactory ( ) . createOverviewPage ( overviewLayout , pageId ) ; panelContent . setExpandRatio ( createPoliticianPageLink , ContentRatio . SMALL ) ; panelContent . setExpandRatio ( horizontalLayout , ContentRatio . GRID ) ; }
Creates the overview content .