code: HorizontalLayout addInfoLayout(String key, Object value, boolean editable) {
  
          HorizontalLayout res = new HorizontalLayout();
          res.setWidth("100%");
          res.setSpacing(true);
  
          TextField keyField = new TextField();
          keyField.setValue(key);
          keyField.setEnabled(editable);
          keyField.setWidth("100%");
  
          TextField valueField = new TextField();
          valueField.setValue(value.toString());
          valueField.setEnabled(editable);
          valueField.setWidth("100%");
  
          res.addComponent(keyField);
          res.addComponent(valueField);
  
          res.setExpandRatio(keyField, 1);
          res.setExpandRatio(valueField, 1);
  
          return res;
      }
docs: Get horizontal layout with key, value from additional info.<p>
  
  @param key key
  @param value value
  @param editable boolean
  @return HorizontalLayout