org.teamapps.dto.UiToolbar 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 class UiToolbar extends AbstractUiToolContainer implements UiObject {
protected String logoImage;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiToolbar() {
// default constructor for Jackson
}
public UiToolbar(List buttonGroups) {
super(buttonGroups);
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_TOOLBAR;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("logoImage=" + logoImage).append(", ")
.append(buttonGroups != null ? "buttonGroups={" + buttonGroups.toString() + "}" : "").append(", ")
.append(backgroundColor != null ? "backgroundColor={" + backgroundColor.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("logoImage")
public String getLogoImage() {
return logoImage;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiToolbar setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiToolbar setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiToolbar setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
public UiToolbar setBackgroundColor(UiColor backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("logoImage")
public UiToolbar setLogoImage(String logoImage) {
this.logoImage = logoImage;
return this;
}
public static class SetLogoImageCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String logoImage;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetLogoImageCommand() {
// default constructor for Jackson
}
public SetLogoImageCommand(String componentId, String logoImage) {
this.componentId = componentId;
this.logoImage = logoImage;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("logoImage=" + logoImage)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("logoImage")
public String getLogoImage() {
return logoImage;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy