org.teamapps.dto.UiToolbarButtonGroup 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", defaultImpl = UiToolbarButtonGroup.class)
public class UiToolbarButtonGroup implements UiObject {
protected String groupId;
protected List buttons;
protected UiToolbarButtonGroupPosition position = UiToolbarButtonGroupPosition.CENTER;
protected boolean visible = true;
protected boolean showGroupSeparator;
protected UiToolbarButton collapsedButton;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiToolbarButtonGroup() {
// default constructor for Jackson
}
public UiToolbarButtonGroup(String groupId, List buttons) {
this.groupId = groupId;
this.buttons = buttons;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_TOOLBAR_BUTTON_GROUP;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("groupId=" + groupId).append(", ")
.append("position=" + position).append(", ")
.append("visible=" + visible).append(", ")
.append("showGroupSeparator=" + showGroupSeparator).append(", ")
.append(buttons != null ? "buttons={" + buttons.toString() + "}" : "").append(", ")
.append(collapsedButton != null ? "collapsedButton={" + collapsedButton.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("groupId")
public String getGroupId() {
return groupId;
}
@com.fasterxml.jackson.annotation.JsonGetter("buttons")
public List getButtons() {
return buttons;
}
@com.fasterxml.jackson.annotation.JsonGetter("position")
public UiToolbarButtonGroupPosition getPosition() {
return position;
}
@com.fasterxml.jackson.annotation.JsonGetter("visible")
public boolean getVisible() {
return visible;
}
@com.fasterxml.jackson.annotation.JsonGetter("showGroupSeparator")
public boolean getShowGroupSeparator() {
return showGroupSeparator;
}
@com.fasterxml.jackson.annotation.JsonGetter("collapsedButton")
public UiToolbarButton getCollapsedButton() {
return collapsedButton;
}
@com.fasterxml.jackson.annotation.JsonSetter("position")
public UiToolbarButtonGroup setPosition(UiToolbarButtonGroupPosition position) {
this.position = position;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiToolbarButtonGroup setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showGroupSeparator")
public UiToolbarButtonGroup setShowGroupSeparator(boolean showGroupSeparator) {
this.showGroupSeparator = showGroupSeparator;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("collapsedButton")
public UiToolbarButtonGroup setCollapsedButton(UiToolbarButton collapsedButton) {
this.collapsedButton = collapsedButton;
return this;
}
}