org.teamapps.dto.UiWorkSpaceLayoutSplitItem 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 = UiWorkSpaceLayoutSplitItem.class)
public class UiWorkSpaceLayoutSplitItem extends UiWorkSpaceLayoutItem implements UiObject {
protected UiSplitDirection splitDirection;
protected UiSplitSizePolicy sizePolicy = UiSplitSizePolicy.RELATIVE;
protected float referenceChildSize = 0.5f;
protected UiWorkSpaceLayoutItem firstChild;
protected UiWorkSpaceLayoutItem lastChild;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiWorkSpaceLayoutSplitItem() {
// default constructor for Jackson
}
public UiWorkSpaceLayoutSplitItem(String id, UiSplitDirection splitDirection, UiWorkSpaceLayoutItem firstChild, UiWorkSpaceLayoutItem lastChild) {
super(id);
this.splitDirection = splitDirection;
this.firstChild = firstChild;
this.lastChild = lastChild;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_WORK_SPACE_LAYOUT_SPLIT_ITEM;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("splitDirection=" + splitDirection).append(", ")
.append("sizePolicy=" + sizePolicy).append(", ")
.append("referenceChildSize=" + referenceChildSize).append(", ")
.append(firstChild != null ? "firstChild={" + firstChild.toString() + "}" : "").append(", ")
.append(lastChild != null ? "lastChild={" + lastChild.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("splitDirection")
public UiSplitDirection getSplitDirection() {
return splitDirection;
}
@com.fasterxml.jackson.annotation.JsonGetter("sizePolicy")
public UiSplitSizePolicy getSizePolicy() {
return sizePolicy;
}
@com.fasterxml.jackson.annotation.JsonGetter("referenceChildSize")
public float getReferenceChildSize() {
return referenceChildSize;
}
@com.fasterxml.jackson.annotation.JsonGetter("firstChild")
public UiWorkSpaceLayoutItem getFirstChild() {
return firstChild;
}
@com.fasterxml.jackson.annotation.JsonGetter("lastChild")
public UiWorkSpaceLayoutItem getLastChild() {
return lastChild;
}
@com.fasterxml.jackson.annotation.JsonSetter("sizePolicy")
public UiWorkSpaceLayoutSplitItem setSizePolicy(UiSplitSizePolicy sizePolicy) {
this.sizePolicy = sizePolicy;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("referenceChildSize")
public UiWorkSpaceLayoutSplitItem setReferenceChildSize(float referenceChildSize) {
this.referenceChildSize = referenceChildSize;
return this;
}
}