org.teamapps.dto.UiBadgeElement 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 = UiBadgeElement.class)
public class UiBadgeElement extends UiTextElement implements UiObject {
protected String borderColor;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiBadgeElement() {
// default constructor for Jackson
}
public UiBadgeElement(String property, int row, int column) {
super(property, row, column);
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_BADGE_ELEMENT;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("property=" + property).append(", ")
.append("row=" + row).append(", ")
.append("column=" + column).append(", ")
.append("rowSpan=" + rowSpan).append(", ")
.append("colSpan=" + colSpan).append(", ")
.append("horizontalAlignment=" + horizontalAlignment).append(", ")
.append("verticalAlignment=" + verticalAlignment).append(", ")
.append("backgroundColor=" + backgroundColor).append(", ")
.append("lineHeight=" + lineHeight).append(", ")
.append("wrapLines=" + wrapLines).append(", ")
.append("textAlignment=" + textAlignment).append(", ")
.append("borderColor=" + borderColor).append(", ")
.append(margin != null ? "margin={" + margin.toString() + "}" : "").append(", ")
.append(fontStyle != null ? "fontStyle={" + fontStyle.toString() + "}" : "").append(", ")
.append(padding != null ? "padding={" + padding.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("borderColor")
public String getBorderColor() {
return borderColor;
}
@com.fasterxml.jackson.annotation.JsonSetter("rowSpan")
public UiBadgeElement setRowSpan(int rowSpan) {
this.rowSpan = rowSpan;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("colSpan")
public UiBadgeElement setColSpan(int colSpan) {
this.colSpan = colSpan;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("horizontalAlignment")
public UiBadgeElement setHorizontalAlignment(UiHorizontalElementAlignment horizontalAlignment) {
this.horizontalAlignment = horizontalAlignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("verticalAlignment")
public UiBadgeElement setVerticalAlignment(UiVerticalElementAlignment verticalAlignment) {
this.verticalAlignment = verticalAlignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("margin")
public UiBadgeElement setMargin(UiSpacing margin) {
this.margin = margin;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
public UiBadgeElement setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fontStyle")
public UiBadgeElement setFontStyle(UiFontStyle fontStyle) {
this.fontStyle = fontStyle;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("lineHeight")
public UiBadgeElement setLineHeight(float lineHeight) {
this.lineHeight = lineHeight;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("wrapLines")
public UiBadgeElement setWrapLines(boolean wrapLines) {
this.wrapLines = wrapLines;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("padding")
public UiBadgeElement setPadding(UiSpacing padding) {
this.padding = padding;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("textAlignment")
public UiBadgeElement setTextAlignment(UiTextAlignment textAlignment) {
this.textAlignment = textAlignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("borderColor")
public UiBadgeElement setBorderColor(String borderColor) {
this.borderColor = borderColor;
return this;
}
}