Class TvmLabel

    • Constructor Detail

      • TvmLabel

        public TvmLabel()
        The constructor.
    • Method Detail

      • getText

        public String getText()
        Specified by:
        getText in interface AttributeWriteText
        Returns:
        the label or text of this widget. Will be the empty string if no text has been set. If used as label the text is permanently displayed as information for the user to describe its meaning (lettering for button or label). Otherwise for textual inputs the text is the plain value as text entered by the end-user. If the value type is not String (e.g. for UiComboBox) this gives direct access to the plain text entered by the end-user (even in case it is not a valid option). This can be useful in a combo-box in case value is undefined to accept the text as a new option (e.g. for a tag).
      • setFor

        public void setFor​(String id)
        Parameters:
        id - the ID of the input widget associated with this label.
      • setEnabledNative

        protected void setEnabledNative​(boolean enabled)
        Overrides:
        setEnabledNative in class TvmWidget<org.teavm.jso.dom.html.HTMLElement>
        Parameters:
        enabled - the new enabled state. Use true to enable and false to disable this widget.