All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.teamapps.dto.UiNumberField Maven / Gradle / Ivy
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 = UiNumberField.class)
public class UiNumberField extends UiField implements UiTextInputHandlingField, UiObject {
protected String locale;
protected int precision = -1;
protected String placeholderText;
protected boolean showClearButton;
protected double minValue = Double.MIN_VALUE;
protected double maxValue = Double.MAX_VALUE;
protected UiNumberFieldSliderMode sliderMode = UiNumberFieldSliderMode.DISABLED;
protected double sliderStep = 1;
protected boolean commitOnSliderChange = true;
public UiNumberField() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_NUMBER_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("precision=" + precision).append(", ")
.append("placeholderText=" + placeholderText).append(", ")
.append("showClearButton=" + showClearButton).append(", ")
.append("minValue=" + minValue).append(", ")
.append("maxValue=" + maxValue).append(", ")
.append("sliderMode=" + sliderMode).append(", ")
.append("sliderStep=" + sliderStep).append(", ")
.append("commitOnSliderChange=" + commitOnSliderChange).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("locale")
public String getLocale() {
return locale;
}
@com.fasterxml.jackson.annotation.JsonGetter("precision")
public int getPrecision() {
return precision;
}
@com.fasterxml.jackson.annotation.JsonGetter("placeholderText")
public String getPlaceholderText() {
return placeholderText;
}
@com.fasterxml.jackson.annotation.JsonGetter("showClearButton")
public boolean getShowClearButton() {
return showClearButton;
}
@com.fasterxml.jackson.annotation.JsonGetter("minValue")
public double getMinValue() {
return minValue;
}
@com.fasterxml.jackson.annotation.JsonGetter("maxValue")
public double getMaxValue() {
return maxValue;
}
@com.fasterxml.jackson.annotation.JsonGetter("sliderMode")
public UiNumberFieldSliderMode getSliderMode() {
return sliderMode;
}
@com.fasterxml.jackson.annotation.JsonGetter("sliderStep")
public double getSliderStep() {
return sliderStep;
}
@com.fasterxml.jackson.annotation.JsonGetter("commitOnSliderChange")
public boolean getCommitOnSliderChange() {
return commitOnSliderChange;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiNumberField setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiNumberField setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiNumberField setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiNumberField setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiNumberField setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiNumberField setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiNumberField setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiNumberField setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiNumberField setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("locale")
public UiNumberField setLocale(String locale) {
this.locale = locale;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("precision")
public UiNumberField setPrecision(int precision) {
this.precision = precision;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("placeholderText")
public UiNumberField setPlaceholderText(String placeholderText) {
this.placeholderText = placeholderText;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showClearButton")
public UiNumberField setShowClearButton(boolean showClearButton) {
this.showClearButton = showClearButton;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("minValue")
public UiNumberField setMinValue(double minValue) {
this.minValue = minValue;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("maxValue")
public UiNumberField setMaxValue(double maxValue) {
this.maxValue = maxValue;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("sliderMode")
public UiNumberField setSliderMode(UiNumberFieldSliderMode sliderMode) {
this.sliderMode = sliderMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("sliderStep")
public UiNumberField setSliderStep(double sliderStep) {
this.sliderStep = sliderStep;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("commitOnSliderChange")
public UiNumberField setCommitOnSliderChange(boolean commitOnSliderChange) {
this.commitOnSliderChange = commitOnSliderChange;
return this;
}
public static class SetMinValueCommand implements UiCommand {
@UiComponentId protected String componentId;
protected double min;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetMinValueCommand() {
// default constructor for Jackson
}
public SetMinValueCommand(String componentId, double min) {
this.componentId = componentId;
this.min = min;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("min=" + min)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("min")
public double getMin() {
return min;
}
}
public static class SetMaxValueCommand implements UiCommand {
@UiComponentId protected String componentId;
protected double max;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetMaxValueCommand() {
// default constructor for Jackson
}
public SetMaxValueCommand(String componentId, double max) {
this.componentId = componentId;
this.max = max;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("max=" + max)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("max")
public double getMax() {
return max;
}
}
public static class SetSliderModeCommand implements UiCommand {
@UiComponentId protected String componentId;
protected UiNumberFieldSliderMode sliderMode;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetSliderModeCommand() {
// default constructor for Jackson
}
public SetSliderModeCommand(String componentId, UiNumberFieldSliderMode sliderMode) {
this.componentId = componentId;
this.sliderMode = sliderMode;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("sliderMode=" + sliderMode)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("sliderMode")
public UiNumberFieldSliderMode getSliderMode() {
return sliderMode;
}
}
public static class SetSliderStepCommand implements UiCommand {
@UiComponentId protected String componentId;
protected double step;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetSliderStepCommand() {
// default constructor for Jackson
}
public SetSliderStepCommand(String componentId, double step) {
this.componentId = componentId;
this.step = step;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("step=" + step)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("step")
public double getStep() {
return step;
}
}
public static class SetCommitOnSliderChangeCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean commitOnSliderChange;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetCommitOnSliderChangeCommand() {
// default constructor for Jackson
}
public SetCommitOnSliderChangeCommand(String componentId, boolean commitOnSliderChange) {
this.componentId = componentId;
this.commitOnSliderChange = commitOnSliderChange;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("commitOnSliderChange=" + commitOnSliderChange)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("commitOnSliderChange")
public boolean getCommitOnSliderChange() {
return commitOnSliderChange;
}
}
public static class SetPrecisionCommand implements UiCommand {
@UiComponentId protected String componentId;
protected int displayPrecision;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetPrecisionCommand() {
// default constructor for Jackson
}
public SetPrecisionCommand(String componentId, int displayPrecision) {
this.componentId = componentId;
this.displayPrecision = displayPrecision;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("displayPrecision=" + displayPrecision)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("displayPrecision")
public int getDisplayPrecision() {
return displayPrecision;
}
}
public static class SetPlaceholderTextCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String placeholderText;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetPlaceholderTextCommand() {
// default constructor for Jackson
}
public SetPlaceholderTextCommand(String componentId, String placeholderText) {
this.componentId = componentId;
this.placeholderText = placeholderText;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("placeholderText=" + placeholderText)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("placeholderText")
public String getPlaceholderText() {
return placeholderText;
}
}
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 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;
}
}
}