org.teamapps.dto.UiInstantDateTimeField Maven / Gradle / Ivy
The 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 = UiInstantDateTimeField.class)
public class UiInstantDateTimeField extends AbstractUiDateTimeField implements UiObject {
protected String timeZoneId = null;
public UiInstantDateTimeField() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_INSTANT_DATE_TIME_FIELD;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("debuggingId=" + debuggingId).append(", ")
.append("timeZoneId=" + timeZoneId).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("showDropDownButton=" + showDropDownButton).append(", ")
.append("favorPastDates=" + favorPastDates).append(", ")
.append("locale=" + locale).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "").append(", ")
.append(dateFormat != null ? "dateFormat={" + dateFormat.toString() + "}" : "").append(", ")
.append(timeFormat != null ? "timeFormat={" + timeFormat.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("timeZoneId")
public String getTimeZoneId() {
return timeZoneId;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiInstantDateTimeField setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiInstantDateTimeField setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiInstantDateTimeField setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiInstantDateTimeField setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiInstantDateTimeField setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiInstantDateTimeField setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiInstantDateTimeField setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiInstantDateTimeField setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiInstantDateTimeField setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showDropDownButton")
public UiInstantDateTimeField setShowDropDownButton(boolean showDropDownButton) {
this.showDropDownButton = showDropDownButton;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("favorPastDates")
public UiInstantDateTimeField setFavorPastDates(boolean favorPastDates) {
this.favorPastDates = favorPastDates;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("locale")
public UiInstantDateTimeField setLocale(String locale) {
this.locale = locale;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dateFormat")
public UiInstantDateTimeField setDateFormat(UiDateTimeFormatDescriptor dateFormat) {
this.dateFormat = dateFormat;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("timeFormat")
public UiInstantDateTimeField setTimeFormat(UiDateTimeFormatDescriptor timeFormat) {
this.timeFormat = timeFormat;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("timeZoneId")
public UiInstantDateTimeField setTimeZoneId(String timeZoneId) {
this.timeZoneId = timeZoneId;
return this;
}
public static class SetTimeZoneIdCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String timeZoneId;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetTimeZoneIdCommand() {
// default constructor for Jackson
}
public SetTimeZoneIdCommand(String componentId, String timeZoneId) {
this.componentId = componentId;
this.timeZoneId = timeZoneId;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("timeZoneId=" + timeZoneId)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("timeZoneId")
public String getTimeZoneId() {
return timeZoneId;
}
}
}