OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 74 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.openconcerto.modules.extensionbuilder.meu.actions;

public class ActionDescriptor {

    private String id;
    private String location = LOCATION_HEADER_POPUP; // header, popup, both
    private String table = "";
    private String componentId = "";
    public static final String LOCATION_HEADER = "header";
    public static final String LOCATION_POPUP = "popup";
    public static final String LOCATION_HEADER_POPUP = "header,popup";

    public ActionDescriptor(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLocation() {
        return this.location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getTable() {
        return this.table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public String getComponentId() {
        return this.componentId;
    }

    public void setComponentId(String componentId) {
        this.componentId = componentId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof ActionDescriptor) {
            return this.id.equals(((ActionDescriptor) obj).id);
        }
        return super.equals(obj);
    }
}