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

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


	protected String html;
	protected Map> componentsByContainerElementSelector;
	protected Map contentHtmlByContainerElementSelector;

	public UiHtmlView() {
		super();
	}

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

	@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("html=" + html).append(", ")
				.append("contentHtmlByContainerElementSelector=" + contentHtmlByContainerElementSelector).append(", ")
				.append(componentsByContainerElementSelector != null ? "componentsByContainerElementSelector={" + componentsByContainerElementSelector.toString() + "}" : "")
				.toString();
	}

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

	@com.fasterxml.jackson.annotation.JsonGetter("componentsByContainerElementSelector")
	public Map> getComponentsByContainerElementSelector() {
		return componentsByContainerElementSelector;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("contentHtmlByContainerElementSelector")
	public Map getContentHtmlByContainerElementSelector() {
		return contentHtmlByContainerElementSelector;
	}

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("html")
	public UiHtmlView setHtml(String html) {
		this.html = html;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("componentsByContainerElementSelector")
	public UiHtmlView setComponentsByContainerElementSelector(Map> componentsByContainerElementSelector) {
		this.componentsByContainerElementSelector = componentsByContainerElementSelector;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("contentHtmlByContainerElementSelector")
	public UiHtmlView setContentHtmlByContainerElementSelector(Map contentHtmlByContainerElementSelector) {
		this.contentHtmlByContainerElementSelector = contentHtmlByContainerElementSelector;
		return this;
	}



	public static class AddComponentCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String containerElementSelector;
		protected UiClientObjectReference component;
		protected boolean clearContainer;

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

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

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

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

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

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

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

	}

	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;
		}

	}

	public static class SetContentHtmlCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String containerElementSelector;
		protected String html;

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

		public SetContentHtmlCommand(String componentId, String containerElementSelector, String html) {
			this.componentId = componentId;
			this.containerElementSelector = containerElementSelector;
			this.html = html;
		}

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

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

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

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

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy