org.teamapps.dto.AbstractUiDateField 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")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class AbstractUiDateField extends UiField implements UiTextInputHandlingField, UiObject {
protected boolean showDropDownButton = true;
protected boolean favorPastDates = false;
protected String dateFormat = null;
protected boolean showClearButton;
public AbstractUiDateField() {
super();
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).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("showDropDownButton")
public boolean getShowDropDownButton() {
return showDropDownButton;
}
@com.fasterxml.jackson.annotation.JsonGetter("favorPastDates")
public boolean getFavorPastDates() {
return favorPastDates;
}
@com.fasterxml.jackson.annotation.JsonGetter("dateFormat")
public String getDateFormat() {
return dateFormat;
}
@com.fasterxml.jackson.annotation.JsonGetter("showClearButton")
public boolean getShowClearButton() {
return showClearButton;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public AbstractUiDateField setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public AbstractUiDateField setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public AbstractUiDateField setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public AbstractUiDateField setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public AbstractUiDateField setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public AbstractUiDateField setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showDropDownButton")
public AbstractUiDateField setShowDropDownButton(boolean showDropDownButton) {
this.showDropDownButton = showDropDownButton;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("favorPastDates")
public AbstractUiDateField setFavorPastDates(boolean favorPastDates) {
this.favorPastDates = favorPastDates;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dateFormat")
public AbstractUiDateField setDateFormat(String dateFormat) {
this.dateFormat = dateFormat;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showClearButton")
public AbstractUiDateField setShowClearButton(boolean showClearButton) {
this.showClearButton = showClearButton;
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 SetFavorPastDatesCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean favorPastDates;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetFavorPastDatesCommand() {
// default constructor for Jackson
}
public SetFavorPastDatesCommand(String componentId, boolean favorPastDates) {
this.componentId = componentId;
this.favorPastDates = favorPastDates;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("favorPastDates=" + favorPastDates)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("favorPastDates")
public boolean getFavorPastDates() {
return favorPastDates;
}
}
public static class SetDateFormatCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String dateFormat;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetDateFormatCommand() {
// default constructor for Jackson
}
public SetDateFormatCommand(String componentId, String dateFormat) {
this.componentId = componentId;
this.dateFormat = dateFormat;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("dateFormat=" + dateFormat)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("dateFormat")
public String getDateFormat() {
return dateFormat;
}
}
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;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy