public static Label createNameValueLabel ( final String label , final String ... values ) { final String valueStr = StringUtils . arrayToDelimitedString ( 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 .