org.teamapps.dto.UiGridRow 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 = UiGridRow.class)
public class UiGridRow implements UiObject {
protected UiSizingPolicy heightPolicy;
protected int topPadding;
protected int bottomPadding;
public UiGridRow() {
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_GRID_ROW;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("topPadding=" + topPadding).append(", ")
.append("bottomPadding=" + bottomPadding).append(", ")
.append(heightPolicy != null ? "heightPolicy={" + heightPolicy.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("heightPolicy")
public UiSizingPolicy getHeightPolicy() {
return heightPolicy;
}
@com.fasterxml.jackson.annotation.JsonGetter("topPadding")
public int getTopPadding() {
return topPadding;
}
@com.fasterxml.jackson.annotation.JsonGetter("bottomPadding")
public int getBottomPadding() {
return bottomPadding;
}
@com.fasterxml.jackson.annotation.JsonSetter("heightPolicy")
public UiGridRow setHeightPolicy(UiSizingPolicy heightPolicy) {
this.heightPolicy = heightPolicy;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("topPadding")
public UiGridRow setTopPadding(int topPadding) {
this.topPadding = topPadding;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("bottomPadding")
public UiGridRow setBottomPadding(int bottomPadding) {
this.bottomPadding = bottomPadding;
return this;
}
}