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

org.teamapps.dto.UiTextInputHandlingField Maven / Gradle / Ivy

There is a newer version: 0.9.191
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")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public interface UiTextInputHandlingField extends UiObject {



	public static class TextInputEvent implements UiEvent {

		@UiComponentId protected String componentId;
		protected String enteredString;

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

		public TextInputEvent(String componentId, String enteredString) {
			this.componentId = componentId;
			this.enteredString = enteredString;
		}

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

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

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

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

	}

	public static class SpecialKeyPressedEvent implements UiEvent {

		@UiComponentId protected String componentId;
		protected UiSpecialKey key;

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

		public SpecialKeyPressedEvent(String componentId, UiSpecialKey key) {
			this.componentId = componentId;
			this.key = key;
		}

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

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("key")
		public UiSpecialKey getKey() {
			return key;
		}

	}



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy