org.teamapps.dto.UiGlyphIconElement 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 = UiGlyphIconElement.class)
public class UiGlyphIconElement extends AbstractUiTemplateElement implements UiObject {
protected int size;
protected String fontColor;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiGlyphIconElement() {
// default constructor for Jackson
}
public UiGlyphIconElement(String property, int row, int column, int size) {
super(property, row, column);
this.size = size;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_GLYPH_ICON_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("size=" + size).append(", ")
.append("fontColor=" + fontColor).append(", ")
.append(margin != null ? "margin={" + margin.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("size")
public int getSize() {
return size;
}
@com.fasterxml.jackson.annotation.JsonGetter("fontColor")
public String getFontColor() {
return fontColor;
}
@com.fasterxml.jackson.annotation.JsonSetter("rowSpan")
public UiGlyphIconElement setRowSpan(int rowSpan) {
this.rowSpan = rowSpan;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("colSpan")
public UiGlyphIconElement setColSpan(int colSpan) {
this.colSpan = colSpan;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("horizontalAlignment")
public UiGlyphIconElement setHorizontalAlignment(UiHorizontalElementAlignment horizontalAlignment) {
this.horizontalAlignment = horizontalAlignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("verticalAlignment")
public UiGlyphIconElement setVerticalAlignment(UiVerticalElementAlignment verticalAlignment) {
this.verticalAlignment = verticalAlignment;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("margin")
public UiGlyphIconElement setMargin(UiSpacing margin) {
this.margin = margin;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
public UiGlyphIconElement setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fontColor")
public UiGlyphIconElement setFontColor(String fontColor) {
this.fontColor = fontColor;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy