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