OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev Author Line No. Line
74 ilm 1
package org.openconcerto.modules.extensionbuilder.meu.actions;
2
 
3
public class ActionDescriptor {
4
 
5
    private String id;
181 ilm 6
    private String location = LOCATION_HEADER_POPUP; // header, popup, both
7
    private String table = "";
8
    private String componentId = "";
74 ilm 9
    public static final String LOCATION_HEADER = "header";
10
    public static final String LOCATION_POPUP = "popup";
11
    public static final String LOCATION_HEADER_POPUP = "header,popup";
12
 
13
    public ActionDescriptor(String id) {
14
        this.id = id;
15
    }
16
 
17
    public String getId() {
181 ilm 18
        return this.id;
74 ilm 19
    }
20
 
21
    public void setId(String id) {
22
        this.id = id;
23
    }
24
 
25
    public String getLocation() {
181 ilm 26
        return this.location;
74 ilm 27
    }
28
 
29
    public void setLocation(String location) {
30
        this.location = location;
31
    }
32
 
33
    public String getTable() {
181 ilm 34
        return this.table;
74 ilm 35
    }
36
 
37
    public void setTable(String table) {
38
        this.table = table;
39
    }
40
 
41
    public String getComponentId() {
181 ilm 42
        return this.componentId;
74 ilm 43
    }
44
 
45
    public void setComponentId(String componentId) {
46
        this.componentId = componentId;
47
    }
48
 
181 ilm 49
    @Override
50
    public boolean equals(Object obj) {
51
        if (obj instanceof ActionDescriptor) {
52
            return this.id.equals(((ActionDescriptor) obj).id);
53
        }
54
        return super.equals(obj);
55
    }
74 ilm 56
}