code: public Label createLabel(BaseComponent parent, Object value, String prefix, String style, boolean asFirst) {
          Label label = new Label(createLabelText(value, prefix));
          label.setStyles(style);
          parent.addChild(label, asFirst ? 0 : -1);
          return label;
      }
docs: Creates a label for a string value.
  
  @param parent BaseComponent that will be the parent of the label.
  @param value Value to be used as label text.
  @param prefix Value to be used as a prefix for the label text.
  @param style Style to be applied to the label.
  @param asFirst If true, the label is prepended to the parent. If false, it is appended.
  @return The newly created label.