All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.teamapps.dto.UiFlexContainer Maven / Gradle / Ivy

There is a newer version: 0.9.194
Show 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 = UiFlexContainer.class)
public class UiFlexContainer extends UiComponent implements UiObject {


	protected List components;
	protected UiCssFlexDirection flexDirection = UiCssFlexDirection.ROW;
	protected UiCssAlignItems alignItems = UiCssAlignItems.STRETCH;
	protected UiCssJustifyContent justifyContent = UiCssJustifyContent.START;
	protected String gap;

	public UiFlexContainer() {
		super();
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_FLEX_CONTAINER;
	}

	@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("flexDirection=" + flexDirection).append(", ")
				.append("alignItems=" + alignItems).append(", ")
				.append("justifyContent=" + justifyContent).append(", ")
				.append("gap=" + gap).append(", ")
				.append(components != null ? "components={" + components.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("components")
	public List getComponents() {
		return components;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("flexDirection")
	public UiCssFlexDirection getFlexDirection() {
		return flexDirection;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("alignItems")
	public UiCssAlignItems getAlignItems() {
		return alignItems;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("justifyContent")
	public UiCssJustifyContent getJustifyContent() {
		return justifyContent;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("gap")
	public String getGap() {
		return gap;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("id")
	public UiFlexContainer setId(String id) {
		this.id = id;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
	public UiFlexContainer setDebuggingId(String debuggingId) {
		this.debuggingId = debuggingId;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("visible")
	public UiFlexContainer setVisible(boolean visible) {
		this.visible = visible;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
	public UiFlexContainer setStylesBySelector(Map> stylesBySelector) {
		this.stylesBySelector = stylesBySelector;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
	public UiFlexContainer setClassNamesBySelector(Map> classNamesBySelector) {
		this.classNamesBySelector = classNamesBySelector;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
	public UiFlexContainer setAttributesBySelector(Map> attributesBySelector) {
		this.attributesBySelector = attributesBySelector;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("components")
	public UiFlexContainer setComponents(List components) {
		this.components = components;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("flexDirection")
	public UiFlexContainer setFlexDirection(UiCssFlexDirection flexDirection) {
		this.flexDirection = flexDirection;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("alignItems")
	public UiFlexContainer setAlignItems(UiCssAlignItems alignItems) {
		this.alignItems = alignItems;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("justifyContent")
	public UiFlexContainer setJustifyContent(UiCssJustifyContent justifyContent) {
		this.justifyContent = justifyContent;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("gap")
	public UiFlexContainer setGap(String gap) {
		this.gap = gap;
		return this;
	}



	public static class AddComponentCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected UiClientObjectReference component;

		/**
		 * @deprecated Only for Jackson deserialization. Use the other constructor instead.
		 */
		@Deprecated
		public AddComponentCommand() {
			// default constructor for Jackson
		}

		public AddComponentCommand(String componentId, UiClientObjectReference component) {
			this.componentId = componentId;
			this.component = component;
		}

		@SuppressWarnings("unchecked")
		public String toString() {
			return new StringBuilder(getClass().getSimpleName()).append(": ")
					.append("componentId=" + componentId).append(", ")
					.append(component != null ? "component={" + component.toString() + "}" : "")
					.toString();
		}

		@com.fasterxml.jackson.annotation.JsonGetter("componentId")
		public String getComponentId() {
			return componentId;
		}

		@com.fasterxml.jackson.annotation.JsonGetter("component")
		public UiClientObjectReference getComponent() {
			return component;
		}

	}

	public static class RemoveComponentCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected UiClientObjectReference component;

		/**
		 * @deprecated Only for Jackson deserialization. Use the other constructor instead.
		 */
		@Deprecated
		public RemoveComponentCommand() {
			// default constructor for Jackson
		}

		public RemoveComponentCommand(String componentId, UiClientObjectReference component) {
			this.componentId = componentId;
			this.component = component;
		}

		@SuppressWarnings("unchecked")
		public String toString() {
			return new StringBuilder(getClass().getSimpleName()).append(": ")
					.append("componentId=" + componentId).append(", ")
					.append(component != null ? "component={" + component.toString() + "}" : "")
					.toString();
		}

		@com.fasterxml.jackson.annotation.JsonGetter("componentId")
		public String getComponentId() {
			return componentId;
		}

		@com.fasterxml.jackson.annotation.JsonGetter("component")
		public UiClientObjectReference getComponent() {
			return component;
		}

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy