code: public static Label getFormatedLabel(final String labelContent) {
          final Label labelValue = new Label(labelContent, ContentMode.HTML);
          labelValue.setSizeFull();
          labelValue.addStyleName(SPUIDefinitions.TEXT_STYLE);
          labelValue.addStyleName("label-style");
          return labelValue;
      }
docs: Get formatted label.Appends ellipses if content does not fit the label.
  
  @param labelContent
  content
  @return Label