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

org.teamapps.dto.UiInstantDateField 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")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UiInstantDateField extends AbstractUiDateField implements UiObject {


	protected String timeZoneId = null;

	public UiInstantDateField() {
		super();
	}

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

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("id=" + id).append(", ")
				.append("timeZoneId=" + timeZoneId).append(", ")
				.append("visible=" + visible).append(", ")
				.append("stylesBySelector=" + stylesBySelector).append(", ")
				.append("editingMode=" + editingMode).append(", ")
				.append("value=" + value).append(", ")
				.append("showDropDownButton=" + showDropDownButton).append(", ")
				.append("favorPastDates=" + favorPastDates).append(", ")
				.append("dateFormat=" + dateFormat).append(", ")
				.append("showClearButton=" + showClearButton).append(", ")
				.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
				.toString();
	}

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

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

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("favorPastDates")
	public UiInstantDateField setFavorPastDates(boolean favorPastDates) {
		this.favorPastDates = favorPastDates;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("dateFormat")
	public UiInstantDateField setDateFormat(String dateFormat) {
		this.dateFormat = dateFormat;
		return this;
	}

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

	@com.fasterxml.jackson.annotation.JsonSetter("timeZoneId")
	public UiInstantDateField setTimeZoneId(String timeZoneId) {
		this.timeZoneId = timeZoneId;
		return this;
	}


	public static class SetTimeZoneIdCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String timeZoneId;

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

		public SetTimeZoneIdCommand(String componentId, String timeZoneId) {
			this.componentId = componentId;
			this.timeZoneId = timeZoneId;
		}

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

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

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

	}




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy