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

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


	protected List elements;
	protected boolean wrap;
	protected UiCssAlignItems alignItems;
	protected UiCssJustifyContent justifyContent;

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

	public UiFloatingElement(String property, int row, int column, List elements) {
		super(property, row, column);
		this.elements = elements;
	}

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

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("property=" + property).append(", ")
				.append("row=" + row).append(", ")
				.append("column=" + column).append(", ")
				.append("rowSpan=" + rowSpan).append(", ")
				.append("colSpan=" + colSpan).append(", ")
				.append("horizontalAlignment=" + horizontalAlignment).append(", ")
				.append("verticalAlignment=" + verticalAlignment).append(", ")
				.append("backgroundColor=" + backgroundColor).append(", ")
				.append("wrap=" + wrap).append(", ")
				.append("alignItems=" + alignItems).append(", ")
				.append("justifyContent=" + justifyContent).append(", ")
				.append(margin != null ? "margin={" + margin.toString() + "}" : "").append(", ")
				.append(elements != null ? "elements={" + elements.toString() + "}" : "")
				.toString();
	}

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

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

	@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.JsonSetter("rowSpan")
	public UiFloatingElement setRowSpan(int rowSpan) {
		this.rowSpan = rowSpan;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("colSpan")
	public UiFloatingElement setColSpan(int colSpan) {
		this.colSpan = colSpan;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("horizontalAlignment")
	public UiFloatingElement setHorizontalAlignment(UiHorizontalElementAlignment horizontalAlignment) {
		this.horizontalAlignment = horizontalAlignment;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("verticalAlignment")
	public UiFloatingElement setVerticalAlignment(UiVerticalElementAlignment verticalAlignment) {
		this.verticalAlignment = verticalAlignment;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("margin")
	public UiFloatingElement setMargin(UiSpacing margin) {
		this.margin = margin;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
	public UiFloatingElement setBackgroundColor(String backgroundColor) {
		this.backgroundColor = backgroundColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("wrap")
	public UiFloatingElement setWrap(boolean wrap) {
		this.wrap = wrap;
		return this;
	}

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

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




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy