Set the label of this field.
<p>
This will be displayed above the field when values are
assigned to the box, otherwise the value is displayed
inside the box.
</p>
963575
public void setLabel(String label) {
        this.label.setText(label);

        if (!getPlaceholder().isEmpty()) {
            this.label.setStyleName(CssName.ACTIVE);
        }
    }
151559
public void setName(String fieldName) {
        if (m_name != null) {
            throw new IllegalArgumentException("Field name is already set: " + m_name);
        }
        if (!isValidFieldName(fieldName)) {
            throw new IllegalArgumentException("Invalid field name: " + fieldName);
        }
        m_name = fieldName;
    }
491208
def setLabel(self, value, label):
        
        if label:
            self._labels[value] = label
        else:
            self._labels.pop(value, None)
581490
@Override
	public void setLabelDescription(String labelDescription)
	{
		myUserInterfaceAction.setLabelDescription(labelDescription);
		putValue(Action.SHORT_DESCRIPTION, myMessageProvider.getMessage(getLabelDescription(), getLocale()));
	}
545693
public void displayField()                  // init this field override for other value
    {
        if (m_vScreenField == null)
            return;
        for (int i = 0; i < m_vScreenField.size(); i++)
        {
            Object component = m_vScreenField.elementAt(i);
            Convert converter = null;
            if (component instanceof ScreenComponent)
                converter = ((ScreenComponent)component).getConverter();
            if (converter == null)
                converter = this;
            if ((this.getFieldName().equals(this.getNameByReflection(component)))
                || (converter.getField() == this))
            {
                if (component instanceof FieldComponent)
                    ((FieldComponent)component).setControlValue(converter.getData());
              else if (component.getClass().getName().contains("ext"))  // JTextComponent/JTextArea - TODO FIX This lame code!
                    this.setTextByReflection(component, converter.getString());
//                else if (component instanceof JTextComponent)
//                    ((JTextComponent)component).setText(converter.getString());
            }
        }
    }
829703
public void setStatementLabel(String label) {
        if (statementLabels == null) statementLabels = new LinkedList<String>();
        statementLabels.add(label);
    }
456249
public void set(String fieldName, Object value) throws IOException {
    getValueMarshaller(fieldName).setWritableObject(struct, value);
    LOG.debug("Set {}={}", fieldName, value);
  }
1340534
public void setLabel(final Object targetObj, final String label) {
        
        ArgUtils.notNull(targetObj, "targetObj");
        ArgUtils.notEmpty(label, "label");
        
        labelSetter.ifPresent(setter -> setter.set(targetObj, label));
    }
789349
public void setValue(String fieldName, String value) {
    int index = getFieldIndex(fieldName);
    assert(index != -1);
    values[index] = value;
  }
225360
public void addReset(String label)
    {
        if (buttons==null)
            buttonsAtBottom();
        Element e = new Input(Input.Reset,"Reset",label);
        if (extendRow)
            addField(null,e);
        else
            buttons.add(e);
    }
727455
public void setLabels(FileChooserLabels labels) {
		this.labels = labels;
		
		// Verify if the buttons for add a file or select a folder has been modified.
		if(labels != null) {
			LinearLayout root = this.chooser.getRootLayout();
			
			if(labels.labelAddButton != null) {
				Button addButton = (Button) root.findViewById(R.id.buttonAdd);
				addButton.setText(labels.labelAddButton);
			}
			
			if(labels.labelSelectButton != null) {
				Button okButton = (Button) root.findViewById(R.id.buttonOk);
				okButton.setText(labels.labelSelectButton);
			}			
		}
	}
902353
public void setIntField(String name, int value)
    {
        if (_state!=__MSG_EDITABLE)
            return;
        _header.put(name, TypeUtil.toString(value));
    }
1289732
def setLabel(self, text=None, units=None, unitPrefix=None, **args):
        
        show_label = False
        if text is not None:
            self.labelText = text
            show_label = True
        if units is not None:
            self.labelUnits = units
            show_label = True
        if show_label:
            self.showLabel()
        if unitPrefix is not None:
            self.labelUnitPrefix = unitPrefix
        if len(args) > 0:
            self.labelStyle = args
        self.label.setHtml(self.labelString())
        self._adjustSize()
        self.picture = None
        self.update()
28729
public void setLabelWidth(final int labelWidth) {
		if (labelWidth > 100) {
			throw new IllegalArgumentException(
					"labelWidth (" + labelWidth + ") cannot be greater than 100 percent.");
		}
		getOrCreateComponentModel().labelWidth = Math.max(0, labelWidth);
	}
702107
private void initFilePathLabel() {

        m_filePathLabel = new TextField();
        m_filePathLabel.setWidth("100%");
        m_filePathLabel.setEnabled(true);
        ((TextField)m_filePathLabel).setReadOnly(true);
        m_filePathLabel = new Label(m_messages.key(Messages.GUI_FILENAME_LABEL_0));

    }
657551
private function AddLabelField()
    {
        $name = 'Label';
        $field = Fields\Input::Text($name, $this->checkbox->GetLabel());
        $this->AddField($field);
    }
405286
function _updateLabelFor(){
		var aFields = this.getFields();
		var oField = aFields.length > 0 ? aFields[0] : null;

		var oLabel = this._oLabel;
		if (oLabel) {
			oLabel.setLabelFor(oField); // as Label is internal of FormElement, we can use original labelFor
		} else {
			oLabel = this.getLabel();
			if (oLabel instanceof Control /*might also be a string*/) {
				oLabel.setAlternativeLabelFor(oField);
			}
		}
	}