org.teamapps.dto.UiDisplayField 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 = UiDisplayField.class)
public class UiDisplayField extends UiField implements UiObject {
protected boolean showBorder;
protected boolean showHtml;
protected boolean removeStyleTags = true;
public UiDisplayField() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_DISPLAY_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("showBorder=" + showBorder).append(", ")
.append("showHtml=" + showHtml).append(", ")
.append("removeStyleTags=" + removeStyleTags).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("showBorder")
public boolean getShowBorder() {
return showBorder;
}
@com.fasterxml.jackson.annotation.JsonGetter("showHtml")
public boolean getShowHtml() {
return showHtml;
}
@com.fasterxml.jackson.annotation.JsonGetter("removeStyleTags")
public boolean getRemoveStyleTags() {
return removeStyleTags;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiDisplayField setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiDisplayField setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiDisplayField setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiDisplayField setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiDisplayField setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiDisplayField setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiDisplayField setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiDisplayField setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiDisplayField setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showBorder")
public UiDisplayField setShowBorder(boolean showBorder) {
this.showBorder = showBorder;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showHtml")
public UiDisplayField setShowHtml(boolean showHtml) {
this.showHtml = showHtml;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("removeStyleTags")
public UiDisplayField setRemoveStyleTags(boolean removeStyleTags) {
this.removeStyleTags = removeStyleTags;
return this;
}
public static class SetShowBorderCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean showBorder;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetShowBorderCommand() {
// default constructor for Jackson
}
public SetShowBorderCommand(String componentId, boolean showBorder) {
this.componentId = componentId;
this.showBorder = showBorder;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("showBorder=" + showBorder)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("showBorder")
public boolean getShowBorder() {
return showBorder;
}
}
public static class SetShowHtmlCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean showHtml;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetShowHtmlCommand() {
// default constructor for Jackson
}
public SetShowHtmlCommand(String componentId, boolean showHtml) {
this.componentId = componentId;
this.showHtml = showHtml;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("showHtml=" + showHtml)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("showHtml")
public boolean getShowHtml() {
return showHtml;
}
}
public static class SetRemoveStyleTagsCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean removeStyleTags;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetRemoveStyleTagsCommand() {
// default constructor for Jackson
}
public SetRemoveStyleTagsCommand(String componentId, boolean removeStyleTags) {
this.componentId = componentId;
this.removeStyleTags = removeStyleTags;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("removeStyleTags=" + removeStyleTags)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("removeStyleTags")
public boolean getRemoveStyleTags() {
return removeStyleTags;
}
}
}