public static void createRowItem ( final ResponsiveRow row , final Button button , final String description ) { final CssLayout layout = new CssLayout ( ) ; layout . addStyleName ( "v-layout-content-overview-panel-level2" ) ; Responsive . makeResponsive ( layout ) ; layout . setSizeUndefined ( ) ; button . addStyleName ( ITEMBOX ) ; button . addStyleName ( TITLE ) ; Responsive . makeResponsive ( button ) ; button . setWidth ( 100 , Unit . PERCENTAGE ) ; layout . addComponent ( button ) ; final Label descriptionLabel = new Label ( description ) ; descriptionLabel . addStyleName ( ITEMBOX ) ; Responsive . makeResponsive ( descriptionLabel ) ; descriptionLabel . setWidth ( 100 , Unit . PERCENTAGE ) ; layout . addComponent ( descriptionLabel ) ; row . addColumn ( ) . withDisplayRules ( DISPLAY_SIZE_XS_DEVICE , DISPLAYS_SIZE_XM_DEVICE , DISPLAY_SIZE_MD_DEVICE , DISPLAY_SIZE_LG_DEVICE ) . withComponent ( layout ) ; }
Creates the row item .