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

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


	protected List columnDefinitions;
	protected List rowHeights;
	protected List subFields;
	protected int horizontalCellSpacing = 2;
	protected int verticalCellSpacing = 2;
	protected int padding = 0;
	protected boolean drawFieldBorders;

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

	public UiCompositeField(List columnDefinitions, List rowHeights, List subFields) {
		super();
		this.columnDefinitions = columnDefinitions;
		this.rowHeights = rowHeights;
		this.subFields = subFields;
	}

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

	@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("editingMode=" + editingMode).append(", ")
				.append("value=" + value).append(", ")
				.append("rowHeights=" + rowHeights).append(", ")
				.append("horizontalCellSpacing=" + horizontalCellSpacing).append(", ")
				.append("verticalCellSpacing=" + verticalCellSpacing).append(", ")
				.append("padding=" + padding).append(", ")
				.append("drawFieldBorders=" + drawFieldBorders).append(", ")
				.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "").append(", ")
				.append(columnDefinitions != null ? "columnDefinitions={" + columnDefinitions.toString() + "}" : "").append(", ")
				.append(subFields != null ? "subFields={" + subFields.toString() + "}" : "")
				.toString();
	}

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

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

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

	@com.fasterxml.jackson.annotation.JsonGetter("horizontalCellSpacing")
	public int getHorizontalCellSpacing() {
		return horizontalCellSpacing;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("verticalCellSpacing")
	public int getVerticalCellSpacing() {
		return verticalCellSpacing;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("padding")
	public int getPadding() {
		return padding;
	}

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

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
	public UiCompositeField setEditingMode(UiFieldEditingMode editingMode) {
		this.editingMode = editingMode;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("value")
	public UiCompositeField setValue(Object value) {
		this.value = value;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
	public UiCompositeField setFieldMessages(List fieldMessages) {
		this.fieldMessages = fieldMessages;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("horizontalCellSpacing")
	public UiCompositeField setHorizontalCellSpacing(int horizontalCellSpacing) {
		this.horizontalCellSpacing = horizontalCellSpacing;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("verticalCellSpacing")
	public UiCompositeField setVerticalCellSpacing(int verticalCellSpacing) {
		this.verticalCellSpacing = verticalCellSpacing;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("padding")
	public UiCompositeField setPadding(int padding) {
		this.padding = padding;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("drawFieldBorders")
	public UiCompositeField setDrawFieldBorders(boolean drawFieldBorders) {
		this.drawFieldBorders = drawFieldBorders;
		return this;
	}




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy