org.teamapps.dto.UiMultiLineTextField Maven / Gradle / Ivy
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 class UiMultiLineTextField extends UiTextField implements UiObject {
protected int minHeight = 150;
protected int maxHeight = 150;
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("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("editingMode=" + editingMode).append(", ")
.append("value=" + value).append(", ")
.append("maxCharacters=" + maxCharacters).append(", ")
.append("showClearButton=" + showClearButton).append(", ")
.append("emptyText=" + emptyText).append(", ")
.append("minHeight=" + minHeight).append(", ")
.append("maxHeight=" + maxHeight).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("minHeight")
public int getMinHeight() {
return minHeight;
}
@com.fasterxml.jackson.annotation.JsonGetter("maxHeight")
public int getMaxHeight() {
return maxHeight;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiMultiLineTextField setId(String id) {
this.id = id;
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("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("emptyText")
public UiMultiLineTextField setEmptyText(String emptyText) {
this.emptyText = emptyText;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("minHeight")
public UiMultiLineTextField setMinHeight(int minHeight) {
this.minHeight = minHeight;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("maxHeight")
public UiMultiLineTextField setMaxHeight(int maxHeight) {
this.maxHeight = maxHeight;
return this;
}
public static class SetMinHeightCommand implements UiCommand {
@UiComponentId protected String componentId;
protected int minHeight;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetMinHeightCommand() {
// default constructor for Jackson
}
public SetMinHeightCommand(String componentId, int minHeight) {
this.componentId = componentId;
this.minHeight = minHeight;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("minHeight=" + minHeight)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("minHeight")
public int getMinHeight() {
return minHeight;
}
}
public static class SetMaxHeightCommand implements UiCommand {
@UiComponentId protected String componentId;
protected int maxHeight;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetMaxHeightCommand() {
// default constructor for Jackson
}
public SetMaxHeightCommand(String componentId, int maxHeight) {
this.componentId = componentId;
this.maxHeight = maxHeight;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("maxHeight=" + maxHeight)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("maxHeight")
public int getMaxHeight() {
return maxHeight;
}
}
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 - 2025 Weber Informatics LLC | Privacy Policy