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

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

The 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")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class AbstractUiComboBox extends UiField implements UiTextInputHandlingField, UiObject {


	protected Map templates;
	protected boolean showDropDownButton = true;
	protected boolean showDropDownAfterResultsArrive = false;
	protected boolean highlightFirstResultEntry = true;
	protected boolean showHighlighting;
	protected boolean autoComplete = true;
	protected int textHighlightingEntryLimit = 100;
	protected boolean allowAnyText;
	protected boolean showClearButton;
	protected boolean animate;
	protected boolean showExpanders = true;
	protected String placeholderText;
	protected Integer dropDownMinWidth;
	protected Integer dropDownMaxHeight;

	public AbstractUiComboBox() {
		super();
	}


	@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(templates != null ? "templates={" + templates.toString() + "}" : "").append(", ")
				.append("showDropDownButton=" + showDropDownButton).append(", ")
				.append("showDropDownAfterResultsArrive=" + showDropDownAfterResultsArrive).append(", ")
				.append("highlightFirstResultEntry=" + highlightFirstResultEntry).append(", ")
				.append("showHighlighting=" + showHighlighting).append(", ")
				.append("autoComplete=" + autoComplete).append(", ")
				.append("textHighlightingEntryLimit=" + textHighlightingEntryLimit).append(", ")
				.append("allowAnyText=" + allowAnyText).append(", ")
				.append("showClearButton=" + showClearButton).append(", ")
				.append("animate=" + animate).append(", ")
				.append("showExpanders=" + showExpanders).append(", ")
				.append("placeholderText=" + placeholderText).append(", ")
				.append("dropDownMinWidth=" + dropDownMinWidth).append(", ")
				.append("dropDownMaxHeight=" + dropDownMaxHeight).append(", ")
				.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("templates")
	public Map getTemplates() {
		return templates;
	}

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonGetter("textHighlightingEntryLimit")
	public int getTextHighlightingEntryLimit() {
		return textHighlightingEntryLimit;
	}

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonGetter("dropDownMinWidth")
	public Integer getDropDownMinWidth() {
		return dropDownMinWidth;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("dropDownMaxHeight")
	public Integer getDropDownMaxHeight() {
		return dropDownMaxHeight;
	}

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

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

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

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("templates")
	public AbstractUiComboBox setTemplates(Map templates) {
		this.templates = templates;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showDropDownButton")
	public AbstractUiComboBox setShowDropDownButton(boolean showDropDownButton) {
		this.showDropDownButton = showDropDownButton;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showDropDownAfterResultsArrive")
	public AbstractUiComboBox setShowDropDownAfterResultsArrive(boolean showDropDownAfterResultsArrive) {
		this.showDropDownAfterResultsArrive = showDropDownAfterResultsArrive;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("highlightFirstResultEntry")
	public AbstractUiComboBox setHighlightFirstResultEntry(boolean highlightFirstResultEntry) {
		this.highlightFirstResultEntry = highlightFirstResultEntry;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showHighlighting")
	public AbstractUiComboBox setShowHighlighting(boolean showHighlighting) {
		this.showHighlighting = showHighlighting;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("autoComplete")
	public AbstractUiComboBox setAutoComplete(boolean autoComplete) {
		this.autoComplete = autoComplete;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("textHighlightingEntryLimit")
	public AbstractUiComboBox setTextHighlightingEntryLimit(int textHighlightingEntryLimit) {
		this.textHighlightingEntryLimit = textHighlightingEntryLimit;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("allowAnyText")
	public AbstractUiComboBox setAllowAnyText(boolean allowAnyText) {
		this.allowAnyText = allowAnyText;
		return this;
	}

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

	@com.fasterxml.jackson.annotation.JsonSetter("animate")
	public AbstractUiComboBox setAnimate(boolean animate) {
		this.animate = animate;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showExpanders")
	public AbstractUiComboBox setShowExpanders(boolean showExpanders) {
		this.showExpanders = showExpanders;
		return this;
	}

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

	@com.fasterxml.jackson.annotation.JsonSetter("dropDownMinWidth")
	public AbstractUiComboBox setDropDownMinWidth(Integer dropDownMinWidth) {
		this.dropDownMinWidth = dropDownMinWidth;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("dropDownMaxHeight")
	public AbstractUiComboBox setDropDownMaxHeight(Integer dropDownMaxHeight) {
		this.dropDownMaxHeight = dropDownMaxHeight;
		return this;
	}


	public static class LazyChildrenQuery implements UiQuery {

		@UiComponentId protected String componentId;
		protected int parentId;

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

		public LazyChildrenQuery(String componentId, int parentId) {
			this.componentId = componentId;
			this.parentId = parentId;
		}

		public UiQueryType getUiQueryType() {
			return UiQueryType.ABSTRACT_UI_COMBO_BOX_LAZY_CHILDREN;
		}

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("parentId")
		public int getParentId() {
			return parentId;
		}

	}

	public static class RetrieveDropdownEntriesQuery implements UiQuery {

		@UiComponentId protected String componentId;
		protected String queryString;

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

		public RetrieveDropdownEntriesQuery(String componentId, String queryString) {
			this.componentId = componentId;
			this.queryString = queryString;
		}

		public UiQueryType getUiQueryType() {
			return UiQueryType.ABSTRACT_UI_COMBO_BOX_RETRIEVE_DROPDOWN_ENTRIES;
		}

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

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

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

	}

	public static class RegisterTemplateCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String id;
		protected UiTemplate template;

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

		public RegisterTemplateCommand(String componentId, String id, UiTemplate template) {
			this.componentId = componentId;
			this.id = id;
			this.template = template;
		}

		@SuppressWarnings("unchecked")
		public String toString() {
			return new StringBuilder(getClass().getSimpleName()).append(": ")
					.append("id=" + id).append(", ")
					.append("componentId=" + componentId).append(", ")
					.append(template != null ? "template={" + template.toString() + "}" : "")
					.toString();
		}

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("template")
		public UiTemplate getTemplate() {
			return template;
		}

	}

	public static class ReplaceFreeTextEntryCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String freeText;
		protected UiComboBoxTreeRecord newEntry;

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

		public ReplaceFreeTextEntryCommand(String componentId, String freeText, UiComboBoxTreeRecord newEntry) {
			this.componentId = componentId;
			this.freeText = freeText;
			this.newEntry = newEntry;
		}

		@SuppressWarnings("unchecked")
		public String toString() {
			return new StringBuilder(getClass().getSimpleName()).append(": ")
					.append("componentId=" + componentId).append(", ")
					.append("freeText=" + freeText).append(", ")
					.append(newEntry != null ? "newEntry={" + newEntry.toString() + "}" : "")
					.toString();
		}

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("newEntry")
		public UiComboBoxTreeRecord getNewEntry() {
			return newEntry;
		}

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy