public static Label createNameValueLabel(final String label,final String... values){
  final String valueStr=StringUtils.join(Arrays.asList(values)," ");
  final Label nameValueLabel=new Label(getBoldHTMLText(label) + valueStr,ContentMode.HTML);
  nameValueLabel.setSizeFull();
  nameValueLabel.addStyleName(SPUIDefinitions.TEXT_STYLE);
  nameValueLabel.addStyleName("label-style");
  return nameValueLabel;
}

public static Label createNameValueLabel ( final String label , final String ... values ) { final String valueStr = StringUtils . join ( Arrays . asList ( values ) , " " ) ; final Label nameValueLabel = new Label ( getBoldHTMLText ( label ) + valueStr , ContentMode . HTML ) ; nameValueLabel . setSizeFull ( ) ; nameValueLabel . addStyleName ( SPUIDefinitions . TEXT_STYLE ) ; nameValueLabel . addStyleName ( "label-style" ) ; return nameValueLabel ; }
method to createname value labels .
