All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.teamapps.dto.UiMultiLineTextField Maven / Gradle / Ivy

There is a newer version: 0.9.191
Show newest version
package org.teamapps.dto;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;

/**
 * THIS IS GENERATED CODE!
 * PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiMultiLineTextField.class)
public class UiMultiLineTextField extends UiTextField implements UiObject {


	protected boolean adjustHeightToContent = false;

	public UiMultiLineTextField() {
		super();
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_MULTI_LINE_TEXT_FIELD;
	}

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("id=" + id).append(", ")
				.append("debuggingId=" + debuggingId).append(", ")
				.append("classNamesBySelector=" + classNamesBySelector).append(", ")
				.append("visible=" + visible).append(", ")
				.append("stylesBySelector=" + stylesBySelector).append(", ")
				.append("attributesBySelector=" + attributesBySelector).append(", ")
				.append("editingMode=" + editingMode).append(", ")
				.append("value=" + value).append(", ")
				.append("maxCharacters=" + maxCharacters).append(", ")
				.append("showClearButton=" + showClearButton).append(", ")
				.append("placeholderText=" + placeholderText).append(", ")
				.append("autofill=" + autofill).append(", ")
				.append("adjustHeightToContent=" + adjustHeightToContent).append(", ")
				.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("adjustHeightToContent")
	public boolean getAdjustHeightToContent() {
		return adjustHeightToContent;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("id")
	public UiMultiLineTextField setId(String id) {
		this.id = id;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
	public UiMultiLineTextField setDebuggingId(String debuggingId) {
		this.debuggingId = debuggingId;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("visible")
	public UiMultiLineTextField setVisible(boolean visible) {
		this.visible = visible;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
	public UiMultiLineTextField setStylesBySelector(Map> stylesBySelector) {
		this.stylesBySelector = stylesBySelector;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
	public UiMultiLineTextField setClassNamesBySelector(Map> classNamesBySelector) {
		this.classNamesBySelector = classNamesBySelector;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
	public UiMultiLineTextField setAttributesBySelector(Map> attributesBySelector) {
		this.attributesBySelector = attributesBySelector;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
	public UiMultiLineTextField setEditingMode(UiFieldEditingMode editingMode) {
		this.editingMode = editingMode;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("value")
	public UiMultiLineTextField setValue(Object value) {
		this.value = value;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
	public UiMultiLineTextField setFieldMessages(List fieldMessages) {
		this.fieldMessages = fieldMessages;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("maxCharacters")
	public UiMultiLineTextField setMaxCharacters(int maxCharacters) {
		this.maxCharacters = maxCharacters;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showClearButton")
	public UiMultiLineTextField setShowClearButton(boolean showClearButton) {
		this.showClearButton = showClearButton;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("placeholderText")
	public UiMultiLineTextField setPlaceholderText(String placeholderText) {
		this.placeholderText = placeholderText;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("autofill")
	public UiMultiLineTextField setAutofill(boolean autofill) {
		this.autofill = autofill;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("adjustHeightToContent")
	public UiMultiLineTextField setAdjustHeightToContent(boolean adjustHeightToContent) {
		this.adjustHeightToContent = adjustHeightToContent;
		return this;
	}



	public static class AppendCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String s;
		protected boolean scrollToBottom;

		/**
		 * @deprecated Only for Jackson deserialization. Use the other constructor instead.
		 */
		@Deprecated
		public AppendCommand() {
			// default constructor for Jackson
		}

		public AppendCommand(String componentId, String s, boolean scrollToBottom) {
			this.componentId = componentId;
			this.s = s;
			this.scrollToBottom = scrollToBottom;
		}

		@SuppressWarnings("unchecked")
		public String toString() {
			return new StringBuilder(getClass().getSimpleName()).append(": ")
					.append("componentId=" + componentId).append(", ")
					.append("s=" + s).append(", ")
					.append("scrollToBottom=" + scrollToBottom)
					.toString();
		}

		@com.fasterxml.jackson.annotation.JsonGetter("componentId")
		public String getComponentId() {
			return componentId;
		}

		@com.fasterxml.jackson.annotation.JsonGetter("s")
		public String getS() {
			return s;
		}

		@com.fasterxml.jackson.annotation.JsonGetter("scrollToBottom")
		public boolean getScrollToBottom() {
			return scrollToBottom;
		}

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy