org.teamapps.dto.UiComboBox 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", defaultImpl = UiComboBox.class)
public class UiComboBox extends AbstractUiComboBox implements UiObject {
protected List toolButtons;
public UiComboBox() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_COMBO_BOX;
}
@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() + "}" : "").append(", ")
.append(toolButtons != null ? "toolButtons={" + toolButtons.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("toolButtons")
public List getToolButtons() {
return toolButtons;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiComboBox setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiComboBox setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiComboBox setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiComboBox setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiComboBox setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiComboBox setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiComboBox setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiComboBox setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiComboBox setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("templates")
public UiComboBox setTemplates(Map templates) {
this.templates = templates;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showDropDownButton")
public UiComboBox setShowDropDownButton(boolean showDropDownButton) {
this.showDropDownButton = showDropDownButton;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showDropDownAfterResultsArrive")
public UiComboBox setShowDropDownAfterResultsArrive(boolean showDropDownAfterResultsArrive) {
this.showDropDownAfterResultsArrive = showDropDownAfterResultsArrive;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("highlightFirstResultEntry")
public UiComboBox setHighlightFirstResultEntry(boolean highlightFirstResultEntry) {
this.highlightFirstResultEntry = highlightFirstResultEntry;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showHighlighting")
public UiComboBox setShowHighlighting(boolean showHighlighting) {
this.showHighlighting = showHighlighting;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("autoComplete")
public UiComboBox setAutoComplete(boolean autoComplete) {
this.autoComplete = autoComplete;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("textHighlightingEntryLimit")
public UiComboBox setTextHighlightingEntryLimit(int textHighlightingEntryLimit) {
this.textHighlightingEntryLimit = textHighlightingEntryLimit;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("allowAnyText")
public UiComboBox setAllowAnyText(boolean allowAnyText) {
this.allowAnyText = allowAnyText;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showClearButton")
public UiComboBox setShowClearButton(boolean showClearButton) {
this.showClearButton = showClearButton;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("animate")
public UiComboBox setAnimate(boolean animate) {
this.animate = animate;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showExpanders")
public UiComboBox setShowExpanders(boolean showExpanders) {
this.showExpanders = showExpanders;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("placeholderText")
public UiComboBox setPlaceholderText(String placeholderText) {
this.placeholderText = placeholderText;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dropDownMinWidth")
public UiComboBox setDropDownMinWidth(Integer dropDownMinWidth) {
this.dropDownMinWidth = dropDownMinWidth;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dropDownMaxHeight")
public UiComboBox setDropDownMaxHeight(Integer dropDownMaxHeight) {
this.dropDownMaxHeight = dropDownMaxHeight;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("toolButtons")
public UiComboBox setToolButtons(List toolButtons) {
this.toolButtons = toolButtons;
return this;
}
public static class SetToolButtonsCommand implements UiCommand {
@UiComponentId protected String componentId;
protected List toolButtons;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetToolButtonsCommand() {
// default constructor for Jackson
}
public SetToolButtonsCommand(String componentId, List toolButtons) {
this.componentId = componentId;
this.toolButtons = toolButtons;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append(toolButtons != null ? "toolButtons={" + toolButtons.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("toolButtons")
public List getToolButtons() {
return toolButtons;
}
}
}