All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.n2oapp.framework.api.metadata.header.MenuItem Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
package net.n2oapp.framework.api.metadata.header;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import net.n2oapp.framework.api.metadata.Compiled;
import net.n2oapp.framework.api.metadata.Component;
import net.n2oapp.framework.api.metadata.aware.IdAware;
import net.n2oapp.framework.api.metadata.aware.PropertiesAware;
import net.n2oapp.framework.api.metadata.global.view.action.control.Target;
import net.n2oapp.framework.api.metadata.global.view.widget.table.ShapeType;
import net.n2oapp.framework.api.metadata.meta.ModelLink;
import net.n2oapp.framework.api.metadata.meta.action.Action;
import net.n2oapp.framework.api.metadata.meta.badge.Badge;
import net.n2oapp.framework.api.metadata.meta.badge.Position;

import java.util.ArrayList;
import java.util.Map;

@Getter
@Setter
public class MenuItem extends Component implements Compiled, PropertiesAware, IdAware {
    @JsonProperty
    private String id;
    @JsonProperty
    private String title;
    @JsonProperty
    private String icon;
    @JsonProperty
    private Position iconPosition;
    @JsonProperty
    private String imageSrc;
    @JsonProperty
    private ShapeType imageShape;
    @JsonProperty
    private String datasource;
    @JsonProperty("items")
    private ArrayList subItems;
    @JsonProperty
    private String href;
    @JsonProperty
    private LinkType linkType;
    @JsonProperty
    private Target target;
    @JsonProperty
    private Badge badge;
    @JsonProperty
    private Map pathMapping;
    @JsonProperty
    private Map queryMapping;
    @Deprecated
    private String pageId;
    private Map properties;
    @JsonProperty
    private Action action;

    @JsonAnyGetter
    public Map getJsonProperties() {
        return properties;
    }
    public enum LinkType {
        inner, outer
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy