org.teamapps.dto.UiApplicationLayout 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 = UiApplicationLayout.class)
public class UiApplicationLayout extends UiComponent implements UiObject {
protected UiClientObjectReference rootSplitPane;
protected UiClientObjectReference toolbar;
public UiApplicationLayout() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_APPLICATION_LAYOUT;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("debuggingId=" + debuggingId).append(", ")
.append("classNamesBySelector=" + classNamesBySelector).append(", ")
.append("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("attributesBySelector=" + attributesBySelector).append(", ")
.append(rootSplitPane != null ? "rootSplitPane={" + rootSplitPane.toString() + "}" : "").append(", ")
.append(toolbar != null ? "toolbar={" + toolbar.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("rootSplitPane")
public UiClientObjectReference getRootSplitPane() {
return rootSplitPane;
}
@com.fasterxml.jackson.annotation.JsonGetter("toolbar")
public UiClientObjectReference getToolbar() {
return toolbar;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiApplicationLayout setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiApplicationLayout setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiApplicationLayout setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiApplicationLayout setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiApplicationLayout setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiApplicationLayout setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("rootSplitPane")
public UiApplicationLayout setRootSplitPane(UiClientObjectReference rootSplitPane) {
this.rootSplitPane = rootSplitPane;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("toolbar")
public UiApplicationLayout setToolbar(UiClientObjectReference toolbar) {
this.toolbar = toolbar;
return this;
}
public static class SetToolbarCommand implements UiCommand {
@UiComponentId protected String componentId;
protected UiClientObjectReference toolbar;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetToolbarCommand() {
// default constructor for Jackson
}
public SetToolbarCommand(String componentId, UiClientObjectReference toolbar) {
this.componentId = componentId;
this.toolbar = toolbar;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append(toolbar != null ? "toolbar={" + toolbar.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("toolbar")
public UiClientObjectReference getToolbar() {
return toolbar;
}
}
public static class SetRootSplitPaneCommand implements UiCommand {
@UiComponentId protected String componentId;
protected UiClientObjectReference splitPane;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetRootSplitPaneCommand() {
// default constructor for Jackson
}
public SetRootSplitPaneCommand(String componentId, UiClientObjectReference splitPane) {
this.componentId = componentId;
this.splitPane = splitPane;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append(splitPane != null ? "splitPane={" + splitPane.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("splitPane")
public UiClientObjectReference getSplitPane() {
return splitPane;
}
}
}