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

org.teamapps.dto.UiCurrencyField 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", defaultImpl = UiCurrencyField.class)
public class UiCurrencyField extends UiField implements UiTextInputHandlingField, UiObject {


	protected String locale;
	protected List currencyUnits;
	protected int fixedPrecision = -1;
	protected boolean showCurrencyBeforeAmount;
	protected boolean showCurrencySymbol;
	protected boolean alphaKeysQueryForCurrency = true;

	public UiCurrencyField() {
		super();
	}

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

	@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("locale=" + locale).append(", ")
				.append("fixedPrecision=" + fixedPrecision).append(", ")
				.append("showCurrencyBeforeAmount=" + showCurrencyBeforeAmount).append(", ")
				.append("showCurrencySymbol=" + showCurrencySymbol).append(", ")
				.append("alphaKeysQueryForCurrency=" + alphaKeysQueryForCurrency).append(", ")
				.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "").append(", ")
				.append(currencyUnits != null ? "currencyUnits={" + currencyUnits.toString() + "}" : "")
				.toString();
	}

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

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

	@com.fasterxml.jackson.annotation.JsonGetter("fixedPrecision")
	public int getFixedPrecision() {
		return fixedPrecision;
	}

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

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

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

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

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

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

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

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

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

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

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("currencyUnits")
	public UiCurrencyField setCurrencyUnits(List currencyUnits) {
		this.currencyUnits = currencyUnits;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("fixedPrecision")
	public UiCurrencyField setFixedPrecision(int fixedPrecision) {
		this.fixedPrecision = fixedPrecision;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showCurrencyBeforeAmount")
	public UiCurrencyField setShowCurrencyBeforeAmount(boolean showCurrencyBeforeAmount) {
		this.showCurrencyBeforeAmount = showCurrencyBeforeAmount;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("showCurrencySymbol")
	public UiCurrencyField setShowCurrencySymbol(boolean showCurrencySymbol) {
		this.showCurrencySymbol = showCurrencySymbol;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("alphaKeysQueryForCurrency")
	public UiCurrencyField setAlphaKeysQueryForCurrency(boolean alphaKeysQueryForCurrency) {
		this.alphaKeysQueryForCurrency = alphaKeysQueryForCurrency;
		return this;
	}



	public static class SetLocaleCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected String locale;

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

		public SetLocaleCommand(String componentId, String locale) {
			this.componentId = componentId;
			this.locale = locale;
		}

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

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

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

	}

	public static class SetCurrencyUnitsCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected List currencyUnits;

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

		public SetCurrencyUnitsCommand(String componentId, List currencyUnits) {
			this.componentId = componentId;
			this.currencyUnits = currencyUnits;
		}

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

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

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

	}

	public static class SetFixedPrecisionCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected int fixedPrecision;

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

		public SetFixedPrecisionCommand(String componentId, int fixedPrecision) {
			this.componentId = componentId;
			this.fixedPrecision = fixedPrecision;
		}

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

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

		@com.fasterxml.jackson.annotation.JsonGetter("fixedPrecision")
		public int getFixedPrecision() {
			return fixedPrecision;
		}

	}

	public static class SetShowCurrencyBeforeAmountCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected boolean showCurrencyBeforeAmount;

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

		public SetShowCurrencyBeforeAmountCommand(String componentId, boolean showCurrencyBeforeAmount) {
			this.componentId = componentId;
			this.showCurrencyBeforeAmount = showCurrencyBeforeAmount;
		}

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

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

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

	}

	public static class SetShowCurrencySymbolCommand implements UiCommand {

		@UiComponentId protected String componentId;
		protected boolean showCurrencySymbol;

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

		public SetShowCurrencySymbolCommand(String componentId, boolean showCurrencySymbol) {
			this.componentId = componentId;
			this.showCurrencySymbol = showCurrencySymbol;
		}

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

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

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

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy