org.teamapps.dto.UiSwitch 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 UiSwitch extends UiField implements UiObject {
protected UiColor uncheckedTrackColor;
protected UiColor uncheckedButtonColor;
protected UiColor checkedTrackColor;
protected UiColor checkedButtonColor;
public UiSwitch() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_SWITCH;
}
@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(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "").append(", ")
.append(uncheckedTrackColor != null ? "uncheckedTrackColor={" + uncheckedTrackColor.toString() + "}" : "").append(", ")
.append(uncheckedButtonColor != null ? "uncheckedButtonColor={" + uncheckedButtonColor.toString() + "}" : "").append(", ")
.append(checkedTrackColor != null ? "checkedTrackColor={" + checkedTrackColor.toString() + "}" : "").append(", ")
.append(checkedButtonColor != null ? "checkedButtonColor={" + checkedButtonColor.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("uncheckedTrackColor")
public UiColor getUncheckedTrackColor() {
return uncheckedTrackColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("uncheckedButtonColor")
public UiColor getUncheckedButtonColor() {
return uncheckedButtonColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("checkedTrackColor")
public UiColor getCheckedTrackColor() {
return checkedTrackColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("checkedButtonColor")
public UiColor getCheckedButtonColor() {
return checkedButtonColor;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiSwitch setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiSwitch setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiSwitch setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiSwitch setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiSwitch setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiSwitch setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("uncheckedTrackColor")
public UiSwitch setUncheckedTrackColor(UiColor uncheckedTrackColor) {
this.uncheckedTrackColor = uncheckedTrackColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("uncheckedButtonColor")
public UiSwitch setUncheckedButtonColor(UiColor uncheckedButtonColor) {
this.uncheckedButtonColor = uncheckedButtonColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("checkedTrackColor")
public UiSwitch setCheckedTrackColor(UiColor checkedTrackColor) {
this.checkedTrackColor = checkedTrackColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("checkedButtonColor")
public UiSwitch setCheckedButtonColor(UiColor checkedButtonColor) {
this.checkedButtonColor = checkedButtonColor;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy