citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/AbstractMenuItemFactoryImpl.java
protected final void createButtonLink(final ResponsiveRow row,final String linkText,final Resource icon, final ClickListener command, final String description) {
		final CssLayout layout = new CssLayout();
		layout.addStyleName("v-layout-content-overview-panel-level2");
		Responsive.makeResponsive(layout);
		layout.setSizeUndefined();


		final Button button = new Button(linkText);
		Responsive.makeResponsive(button);
		button.setStyleName(LINK_STYLE_NAME);
		button.addStyleName("title");
		button.addClickListener(command);
		button.setIcon(icon);
		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);
	}
protected final void createButtonLink(final ResponsiveRow row,final String linkText,final Resource icon, final ClickListener command, final String description) {
		final CssLayout layout = new CssLayout();
		layout.addStyleName("v-layout-content-overview-panel-level2");
		Responsive.makeResponsive(layout);
		layout.setSizeUndefined();


		final Button button = new Button(linkText);
		Responsive.makeResponsive(button);
		button.setStyleName(LINK_STYLE_NAME);
		button.addStyleName("title");
		button.addClickListener(command);
		button.setIcon(icon);
		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);
	}
protected final void createButtonLink ( final ResponsiveRow row , final String linkText , final Resource icon , final ClickListener command , final String description ) { final CssLayout layout = new CssLayout ( ) ; layout . addStyleName ( "v-layout-content-overview-panel-level2" ) ; Responsive . makeResponsive ( layout ) ; layout . setSizeUndefined ( ) ; final Button button = new Button ( linkText ) ; Responsive . makeResponsive ( button ) ; button . setStyleName ( LINK_STYLE_NAME ) ; button . addStyleName ( "title" ) ; button . addClickListener ( command ) ; button . setIcon ( icon ) ; 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 button link.

@param row
the panel content
@param linkText
the link text
@param icon
the icon
@param command
the command
@param description
the description
Creates the button link .