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

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


	protected List initialItems;

	public UiNotificationBar() {
		super();
	}

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

	@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(initialItems != null ? "initialItems={" + initialItems.toString() + "}" : "")
				.toString();
	}

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

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("initialItems")
	public UiNotificationBar setInitialItems(List initialItems) {
		this.initialItems = initialItems;
		return this;
	}

	public static class ItemClickedEvent implements UiEvent {

		@UiComponentId protected String componentId;
		protected String id;

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

		public ItemClickedEvent(String componentId, String id) {
			this.componentId = componentId;
			this.id = id;
		}

		public UiEventType getUiEventType() {
			return UiEventType.UI_NOTIFICATION_BAR_ITEM_CLICKED;
		}

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

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

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

	}

	public static class ItemActionLinkClickedEvent implements UiEvent {

		@UiComponentId protected String componentId;
		protected String id;

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

		public ItemActionLinkClickedEvent(String componentId, String id) {
			this.componentId = componentId;
			this.id = id;
		}

		public UiEventType getUiEventType() {
			return UiEventType.UI_NOTIFICATION_BAR_ITEM_ACTION_LINK_CLICKED;
		}

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

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

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

	}

	public static class ItemClosedEvent implements UiEvent {

		@UiComponentId protected String componentId;
		protected String id;
		protected boolean wasTimeout;

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

		public ItemClosedEvent(String componentId, String id, boolean wasTimeout) {
			this.componentId = componentId;
			this.id = id;
			this.wasTimeout = wasTimeout;
		}

		public UiEventType getUiEventType() {
			return UiEventType.UI_NOTIFICATION_BAR_ITEM_CLOSED;
		}

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

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

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

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

	}


	public static class AddItemCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected UiNotificationBarItem item;

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

		public AddItemCommand(String componentId, UiNotificationBarItem item) {
			this.componentId = componentId;
			this.item = item;
		}

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("item")
		public UiNotificationBarItem getItem() {
			return item;
		}

	}

	public static class UpdateItemCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected UiNotificationBarItem item;

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

		public UpdateItemCommand(String componentId, UiNotificationBarItem item) {
			this.componentId = componentId;
			this.item = item;
		}

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("item")
		public UiNotificationBarItem getItem() {
			return item;
		}

	}

	public static class RemoveItemCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String id;
		protected UiExitAnimation exitAnimation;

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

		public RemoveItemCommand(String componentId, String id, UiExitAnimation exitAnimation) {
			this.componentId = componentId;
			this.id = id;
			this.exitAnimation = exitAnimation;
		}

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

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("exitAnimation")
		public UiExitAnimation getExitAnimation() {
			return exitAnimation;
		}

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy