org.teamapps.dto.UiToolbarButton 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 = UiToolbarButton.class)
public class UiToolbarButton implements UiObject {
protected String buttonId;
protected String debuggingId;
protected UiTemplate template;
protected boolean visible = true;
@JsonSerialize(using = ObjectSerializer.class)
@JsonDeserialize(using = ObjectDeserializer.class)
protected Object recordData;
protected String openNewTabWithUrl;
protected UiClientObjectReference togglesFullScreenOnComponent;
protected UiClientObjectReference startPlaybackComponent;
protected boolean hasDropDown;
protected UiClientObjectReference dropDownComponent;
protected int dropDownPanelWidth = 450;
protected String backgroundColor;
protected String hoverBackgroundColor;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiToolbarButton() {
// default constructor for Jackson
}
public UiToolbarButton(String buttonId, UiTemplate template, Object recordData) {
this.buttonId = buttonId;
this.template = template;
this.recordData = recordData;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_TOOLBAR_BUTTON;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("buttonId=" + buttonId).append(", ")
.append("debuggingId=" + debuggingId).append(", ")
.append(template != null ? "template={" + template.toString() + "}" : "").append(", ")
.append("visible=" + visible).append(", ")
.append("recordData=" + recordData).append(", ")
.append("openNewTabWithUrl=" + openNewTabWithUrl).append(", ")
.append("hasDropDown=" + hasDropDown).append(", ")
.append("dropDownPanelWidth=" + dropDownPanelWidth).append(", ")
.append("backgroundColor=" + backgroundColor).append(", ")
.append("hoverBackgroundColor=" + hoverBackgroundColor).append(", ")
.append(togglesFullScreenOnComponent != null ? "togglesFullScreenOnComponent={" + togglesFullScreenOnComponent.toString() + "}" : "").append(", ")
.append(startPlaybackComponent != null ? "startPlaybackComponent={" + startPlaybackComponent.toString() + "}" : "").append(", ")
.append(dropDownComponent != null ? "dropDownComponent={" + dropDownComponent.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("buttonId")
public String getButtonId() {
return buttonId;
}
@com.fasterxml.jackson.annotation.JsonGetter("debuggingId")
public String getDebuggingId() {
return debuggingId;
}
@com.fasterxml.jackson.annotation.JsonGetter("template")
public UiTemplate getTemplate() {
return template;
}
@com.fasterxml.jackson.annotation.JsonGetter("visible")
public boolean getVisible() {
return visible;
}
@com.fasterxml.jackson.annotation.JsonGetter("recordData")
public Object getRecordData() {
return recordData;
}
@com.fasterxml.jackson.annotation.JsonGetter("openNewTabWithUrl")
public String getOpenNewTabWithUrl() {
return openNewTabWithUrl;
}
@com.fasterxml.jackson.annotation.JsonGetter("togglesFullScreenOnComponent")
public UiClientObjectReference getTogglesFullScreenOnComponent() {
return togglesFullScreenOnComponent;
}
@com.fasterxml.jackson.annotation.JsonGetter("startPlaybackComponent")
public UiClientObjectReference getStartPlaybackComponent() {
return startPlaybackComponent;
}
@com.fasterxml.jackson.annotation.JsonGetter("hasDropDown")
public boolean getHasDropDown() {
return hasDropDown;
}
@com.fasterxml.jackson.annotation.JsonGetter("dropDownComponent")
public UiClientObjectReference getDropDownComponent() {
return dropDownComponent;
}
@com.fasterxml.jackson.annotation.JsonGetter("dropDownPanelWidth")
public int getDropDownPanelWidth() {
return dropDownPanelWidth;
}
@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
public String getBackgroundColor() {
return backgroundColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("hoverBackgroundColor")
public String getHoverBackgroundColor() {
return hoverBackgroundColor;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiToolbarButton setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiToolbarButton setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("openNewTabWithUrl")
public UiToolbarButton setOpenNewTabWithUrl(String openNewTabWithUrl) {
this.openNewTabWithUrl = openNewTabWithUrl;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("togglesFullScreenOnComponent")
public UiToolbarButton setTogglesFullScreenOnComponent(UiClientObjectReference togglesFullScreenOnComponent) {
this.togglesFullScreenOnComponent = togglesFullScreenOnComponent;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("startPlaybackComponent")
public UiToolbarButton setStartPlaybackComponent(UiClientObjectReference startPlaybackComponent) {
this.startPlaybackComponent = startPlaybackComponent;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("hasDropDown")
public UiToolbarButton setHasDropDown(boolean hasDropDown) {
this.hasDropDown = hasDropDown;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dropDownComponent")
public UiToolbarButton setDropDownComponent(UiClientObjectReference dropDownComponent) {
this.dropDownComponent = dropDownComponent;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dropDownPanelWidth")
public UiToolbarButton setDropDownPanelWidth(int dropDownPanelWidth) {
this.dropDownPanelWidth = dropDownPanelWidth;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
public UiToolbarButton setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("hoverBackgroundColor")
public UiToolbarButton setHoverBackgroundColor(String hoverBackgroundColor) {
this.hoverBackgroundColor = hoverBackgroundColor;
return this;
}
}