org.teamapps.dto.UiItemViewItemGroup 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", defaultImpl = UiItemViewItemGroup.class)
public class UiItemViewItemGroup implements UiObject {
protected String id;
protected UiTemplate itemTemplate;
protected UiIdentifiableClientRecord headerData;
protected List items;
protected boolean headerVisible = true;
protected UiItemViewFloatStyle floatStyle = UiItemViewFloatStyle.HORIZONTAL_FLOAT;
protected float buttonWidth = -1;
protected int horizontalPadding = 0;
protected int verticalPadding = 0;
protected int horizontalItemMargin = 0;
protected int verticalItemMargin = 0;
protected UiItemJustification itemJustification = UiItemJustification.LEFT;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiItemViewItemGroup() {
// default constructor for Jackson
}
public UiItemViewItemGroup(UiTemplate itemTemplate) {
this.itemTemplate = itemTemplate;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_ITEM_VIEW_ITEM_GROUP;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append(itemTemplate != null ? "itemTemplate={" + itemTemplate.toString() + "}" : "").append(", ")
.append("headerVisible=" + headerVisible).append(", ")
.append("floatStyle=" + floatStyle).append(", ")
.append("buttonWidth=" + buttonWidth).append(", ")
.append("horizontalPadding=" + horizontalPadding).append(", ")
.append("verticalPadding=" + verticalPadding).append(", ")
.append("horizontalItemMargin=" + horizontalItemMargin).append(", ")
.append("verticalItemMargin=" + verticalItemMargin).append(", ")
.append("itemJustification=" + itemJustification).append(", ")
.append(headerData != null ? "headerData={" + headerData.toString() + "}" : "").append(", ")
.append(items != null ? "items={" + items.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("id")
public String getId() {
return id;
}
@com.fasterxml.jackson.annotation.JsonGetter("itemTemplate")
public UiTemplate getItemTemplate() {
return itemTemplate;
}
@com.fasterxml.jackson.annotation.JsonGetter("headerData")
public UiIdentifiableClientRecord getHeaderData() {
return headerData;
}
@com.fasterxml.jackson.annotation.JsonGetter("items")
public List getItems() {
return items;
}
@com.fasterxml.jackson.annotation.JsonGetter("headerVisible")
public boolean getHeaderVisible() {
return headerVisible;
}
@com.fasterxml.jackson.annotation.JsonGetter("floatStyle")
public UiItemViewFloatStyle getFloatStyle() {
return floatStyle;
}
@com.fasterxml.jackson.annotation.JsonGetter("buttonWidth")
public float getButtonWidth() {
return buttonWidth;
}
@com.fasterxml.jackson.annotation.JsonGetter("horizontalPadding")
public int getHorizontalPadding() {
return horizontalPadding;
}
@com.fasterxml.jackson.annotation.JsonGetter("verticalPadding")
public int getVerticalPadding() {
return verticalPadding;
}
@com.fasterxml.jackson.annotation.JsonGetter("horizontalItemMargin")
public int getHorizontalItemMargin() {
return horizontalItemMargin;
}
@com.fasterxml.jackson.annotation.JsonGetter("verticalItemMargin")
public int getVerticalItemMargin() {
return verticalItemMargin;
}
@com.fasterxml.jackson.annotation.JsonGetter("itemJustification")
public UiItemJustification getItemJustification() {
return itemJustification;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiItemViewItemGroup setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("headerData")
public UiItemViewItemGroup setHeaderData(UiIdentifiableClientRecord headerData) {
this.headerData = headerData;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("items")
public UiItemViewItemGroup setItems(List items) {
this.items = items;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("headerVisible")
public UiItemViewItemGroup setHeaderVisible(boolean headerVisible) {
this.headerVisible = headerVisible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("floatStyle")
public UiItemViewItemGroup setFloatStyle(UiItemViewFloatStyle floatStyle) {
this.floatStyle = floatStyle;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("buttonWidth")
public UiItemViewItemGroup setButtonWidth(float buttonWidth) {
this.buttonWidth = buttonWidth;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("horizontalPadding")
public UiItemViewItemGroup setHorizontalPadding(int horizontalPadding) {
this.horizontalPadding = horizontalPadding;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("verticalPadding")
public UiItemViewItemGroup setVerticalPadding(int verticalPadding) {
this.verticalPadding = verticalPadding;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("horizontalItemMargin")
public UiItemViewItemGroup setHorizontalItemMargin(int horizontalItemMargin) {
this.horizontalItemMargin = horizontalItemMargin;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("verticalItemMargin")
public UiItemViewItemGroup setVerticalItemMargin(int verticalItemMargin) {
this.verticalItemMargin = verticalItemMargin;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("itemJustification")
public UiItemViewItemGroup setItemJustification(UiItemJustification itemJustification) {
this.itemJustification = itemJustification;
return this;
}
}