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