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

org.teamapps.dto.UiResponsiveGridLayout 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 = UiResponsiveGridLayout.class)
public class UiResponsiveGridLayout extends UiComponent implements UiObject {


	protected List layoutPolicies;
	protected boolean fillHeight = false;

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

	public UiResponsiveGridLayout(List layoutPolicies) {
		super();
		this.layoutPolicies = layoutPolicies;
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_RESPONSIVE_GRID_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("fillHeight=" + fillHeight).append(", ")
				.append(layoutPolicies != null ? "layoutPolicies={" + layoutPolicies.toString() + "}" : "")
				.toString();
	}

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

	@com.fasterxml.jackson.annotation.JsonGetter("fillHeight")
	public boolean getFillHeight() {
		return fillHeight;
	}

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("fillHeight")
	public UiResponsiveGridLayout setFillHeight(boolean fillHeight) {
		this.fillHeight = fillHeight;
		return this;
	}



	public static class UpdateLayoutPoliciesCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected List layoutPolicies;

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

		public UpdateLayoutPoliciesCommand(String componentId, List layoutPolicies) {
			this.componentId = componentId;
			this.layoutPolicies = layoutPolicies;
		}

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

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

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

	}

	public static class SetFillHeightCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected boolean fillHeight;

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

		public SetFillHeightCommand(String componentId, boolean fillHeight) {
			this.componentId = componentId;
			this.fillHeight = fillHeight;
		}

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("fillHeight")
		public boolean getFillHeight() {
			return fillHeight;
		}

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy