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

org.teamapps.dto.AbstractUiTimeField 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")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class AbstractUiTimeField extends UiField implements UiTextInputHandlingField, UiObject {


	protected boolean showDropDownButton = true;
	protected boolean showClearButton;
	protected String locale;
	protected UiDateTimeFormatDescriptor timeFormat = null;
	protected boolean clockIconEnabled;

	public AbstractUiTimeField() {
		super();
	}


	@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("showDropDownButton=" + showDropDownButton).append(", ")
				.append("showClearButton=" + showClearButton).append(", ")
				.append("locale=" + locale).append(", ")
				.append("clockIconEnabled=" + clockIconEnabled).append(", ")
				.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "").append(", ")
				.append(timeFormat != null ? "timeFormat={" + timeFormat.toString() + "}" : "")
				.toString();
	}

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

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

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

	@com.fasterxml.jackson.annotation.JsonGetter("timeFormat")
	public UiDateTimeFormatDescriptor getTimeFormat() {
		return timeFormat;
	}

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

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

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

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

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("showDropDownButton")
	public AbstractUiTimeField setShowDropDownButton(boolean showDropDownButton) {
		this.showDropDownButton = showDropDownButton;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showClearButton")
	public AbstractUiTimeField setShowClearButton(boolean showClearButton) {
		this.showClearButton = showClearButton;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("locale")
	public AbstractUiTimeField setLocale(String locale) {
		this.locale = locale;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("timeFormat")
	public AbstractUiTimeField setTimeFormat(UiDateTimeFormatDescriptor timeFormat) {
		this.timeFormat = timeFormat;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("clockIconEnabled")
	public AbstractUiTimeField setClockIconEnabled(boolean clockIconEnabled) {
		this.clockIconEnabled = clockIconEnabled;
		return this;
	}



	public static class SetShowDropDownButtonCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected boolean showDropDownButton;

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

		public SetShowDropDownButtonCommand(String componentId, boolean showDropDownButton) {
			this.componentId = componentId;
			this.showDropDownButton = showDropDownButton;
		}

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

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

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

	}

	public static class SetShowClearButtonCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected boolean showClearButton;

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

		public SetShowClearButtonCommand(String componentId, boolean showClearButton) {
			this.componentId = componentId;
			this.showClearButton = showClearButton;
		}

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

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

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

	}

	public static class SetLocaleAndTimeFormatCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String locale;
		protected UiDateTimeFormatDescriptor timeFormat;

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

		public SetLocaleAndTimeFormatCommand(String componentId, String locale, UiDateTimeFormatDescriptor timeFormat) {
			this.componentId = componentId;
			this.locale = locale;
			this.timeFormat = timeFormat;
		}

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

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("timeFormat")
		public UiDateTimeFormatDescriptor getTimeFormat() {
			return timeFormat;
		}

	}

	public static class SetClockIconEnabledCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected boolean clockIconEnabled;

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

		public SetClockIconEnabledCommand(String componentId, boolean clockIconEnabled) {
			this.componentId = componentId;
			this.clockIconEnabled = clockIconEnabled;
		}

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

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

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

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy