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.UiSlider 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 = UiSlider.class)
public class UiSlider extends UiField implements UiObject {
protected double min = 0;
protected double max = 100;
protected double step = 1;
protected int displayedDecimals = 0;
protected String selectionColor = "rgb(51, 122, 183)";
protected String tooltipPrefix;
protected String tooltipPostfix;
protected boolean humanReadableFileSize = false;
public UiSlider() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_SLIDER;
}
@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("min=" + min).append(", ")
.append("max=" + max).append(", ")
.append("step=" + step).append(", ")
.append("displayedDecimals=" + displayedDecimals).append(", ")
.append("selectionColor=" + selectionColor).append(", ")
.append("tooltipPrefix=" + tooltipPrefix).append(", ")
.append("tooltipPostfix=" + tooltipPostfix).append(", ")
.append("humanReadableFileSize=" + humanReadableFileSize).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("min")
public double getMin() {
return min;
}
@com.fasterxml.jackson.annotation.JsonGetter("max")
public double getMax() {
return max;
}
@com.fasterxml.jackson.annotation.JsonGetter("step")
public double getStep() {
return step;
}
@com.fasterxml.jackson.annotation.JsonGetter("displayedDecimals")
public int getDisplayedDecimals() {
return displayedDecimals;
}
@com.fasterxml.jackson.annotation.JsonGetter("selectionColor")
public String getSelectionColor() {
return selectionColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("tooltipPrefix")
public String getTooltipPrefix() {
return tooltipPrefix;
}
@com.fasterxml.jackson.annotation.JsonGetter("tooltipPostfix")
public String getTooltipPostfix() {
return tooltipPostfix;
}
@com.fasterxml.jackson.annotation.JsonGetter("humanReadableFileSize")
public boolean getHumanReadableFileSize() {
return humanReadableFileSize;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiSlider setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiSlider setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiSlider setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiSlider setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiSlider setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiSlider setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiSlider setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiSlider setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiSlider setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("min")
public UiSlider setMin(double min) {
this.min = min;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("max")
public UiSlider setMax(double max) {
this.max = max;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("step")
public UiSlider setStep(double step) {
this.step = step;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("displayedDecimals")
public UiSlider setDisplayedDecimals(int displayedDecimals) {
this.displayedDecimals = displayedDecimals;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("selectionColor")
public UiSlider setSelectionColor(String selectionColor) {
this.selectionColor = selectionColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("tooltipPrefix")
public UiSlider setTooltipPrefix(String tooltipPrefix) {
this.tooltipPrefix = tooltipPrefix;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("tooltipPostfix")
public UiSlider setTooltipPostfix(String tooltipPostfix) {
this.tooltipPostfix = tooltipPostfix;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("humanReadableFileSize")
public UiSlider setHumanReadableFileSize(boolean humanReadableFileSize) {
this.humanReadableFileSize = humanReadableFileSize;
return this;
}
public static class SetMinCommand implements UiCommand {
@UiComponentId protected String componentId;
protected double min;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetMinCommand() {
// default constructor for Jackson
}
public SetMinCommand(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 SetMaxCommand implements UiCommand {
@UiComponentId protected String componentId;
protected double max;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetMaxCommand() {
// default constructor for Jackson
}
public SetMaxCommand(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 SetStepCommand implements UiCommand {
@UiComponentId protected String componentId;
protected double step;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetStepCommand() {
// default constructor for Jackson
}
public SetStepCommand(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 SetDisplayedDecimalsCommand implements UiCommand {
@UiComponentId protected String componentId;
protected int displayedDecimals;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetDisplayedDecimalsCommand() {
// default constructor for Jackson
}
public SetDisplayedDecimalsCommand(String componentId, int displayedDecimals) {
this.componentId = componentId;
this.displayedDecimals = displayedDecimals;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("displayedDecimals=" + displayedDecimals)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("displayedDecimals")
public int getDisplayedDecimals() {
return displayedDecimals;
}
}
public static class SetSelectionColorCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String selectionColor;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetSelectionColorCommand() {
// default constructor for Jackson
}
public SetSelectionColorCommand(String componentId, String selectionColor) {
this.componentId = componentId;
this.selectionColor = selectionColor;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("selectionColor=" + selectionColor)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("selectionColor")
public String getSelectionColor() {
return selectionColor;
}
}
public static class SetTooltipPrefixCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String tooltipPrefi;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetTooltipPrefixCommand() {
// default constructor for Jackson
}
public SetTooltipPrefixCommand(String componentId, String tooltipPrefi) {
this.componentId = componentId;
this.tooltipPrefi = tooltipPrefi;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("tooltipPrefi=" + tooltipPrefi)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("tooltipPrefi")
public String getTooltipPrefi() {
return tooltipPrefi;
}
}
public static class SetTooltipPostfixCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String tooltipPostfi;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetTooltipPostfixCommand() {
// default constructor for Jackson
}
public SetTooltipPostfixCommand(String componentId, String tooltipPostfi) {
this.componentId = componentId;
this.tooltipPostfi = tooltipPostfi;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("tooltipPostfi=" + tooltipPostfi)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("tooltipPostfi")
public String getTooltipPostfi() {
return tooltipPostfi;
}
}
public static class SetHumanReadableFileSizeCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean humanReadableFileSize;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetHumanReadableFileSizeCommand() {
// default constructor for Jackson
}
public SetHumanReadableFileSizeCommand(String componentId, boolean humanReadableFileSize) {
this.componentId = componentId;
this.humanReadableFileSize = humanReadableFileSize;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("humanReadableFileSize=" + humanReadableFileSize)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("humanReadableFileSize")
public boolean getHumanReadableFileSize() {
return humanReadableFileSize;
}
}
}