org.teamapps.dto.UiCheckBox 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 UiCheckBox extends UiField implements UiObject {
protected String caption;
protected UiColor backgroundColor = new UiColor(255, 255, 255);
protected UiColor checkColor = new UiColor(70, 70, 70);
protected UiColor borderColor = new UiColor(123, 123, 123);
public UiCheckBox() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_CHECK_BOX;
}
@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("caption=" + caption).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "").append(", ")
.append(backgroundColor != null ? "backgroundColor={" + backgroundColor.toString() + "}" : "").append(", ")
.append(checkColor != null ? "checkColor={" + checkColor.toString() + "}" : "").append(", ")
.append(borderColor != null ? "borderColor={" + borderColor.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("caption")
public String getCaption() {
return caption;
}
@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
public UiColor getBackgroundColor() {
return backgroundColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("checkColor")
public UiColor getCheckColor() {
return checkColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("borderColor")
public UiColor getBorderColor() {
return borderColor;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiCheckBox setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiCheckBox setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiCheckBox setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiCheckBox setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiCheckBox setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiCheckBox setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("caption")
public UiCheckBox setCaption(String caption) {
this.caption = caption;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
public UiCheckBox setBackgroundColor(UiColor backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("checkColor")
public UiCheckBox setCheckColor(UiColor checkColor) {
this.checkColor = checkColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("borderColor")
public UiCheckBox setBorderColor(UiColor borderColor) {
this.borderColor = borderColor;
return this;
}
public static class SetCaptionCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String caption;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetCaptionCommand() {
// default constructor for Jackson
}
public SetCaptionCommand(String componentId, String caption) {
this.componentId = componentId;
this.caption = caption;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("caption=" + caption)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("caption")
public String getCaption() {
return caption;
}
}
public static class SetBackgroundColorCommand implements UiCommand {
@UiComponentId protected String componentId;
protected UiColor backgroundColor;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetBackgroundColorCommand() {
// default constructor for Jackson
}
public SetBackgroundColorCommand(String componentId, UiColor backgroundColor) {
this.componentId = componentId;
this.backgroundColor = backgroundColor;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append(backgroundColor != null ? "backgroundColor={" + backgroundColor.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
public UiColor getBackgroundColor() {
return backgroundColor;
}
}
public static class SetCheckColorCommand implements UiCommand {
@UiComponentId protected String componentId;
protected UiColor checkColor;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetCheckColorCommand() {
// default constructor for Jackson
}
public SetCheckColorCommand(String componentId, UiColor checkColor) {
this.componentId = componentId;
this.checkColor = checkColor;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append(checkColor != null ? "checkColor={" + checkColor.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("checkColor")
public UiColor getCheckColor() {
return checkColor;
}
}
public static class SetBorderColorCommand implements UiCommand {
@UiComponentId protected String componentId;
protected UiColor borderColor;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetBorderColorCommand() {
// default constructor for Jackson
}
public SetBorderColorCommand(String componentId, UiColor borderColor) {
this.componentId = componentId;
this.borderColor = borderColor;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append(borderColor != null ? "borderColor={" + borderColor.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("borderColor")
public UiColor getBorderColor() {
return borderColor;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy