OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 74 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74 Rev 181
Line 1... Line 1...
1
package org.openconcerto.modules.extensionbuilder.meu.actions;
1
package org.openconcerto.modules.extensionbuilder.meu.actions;
2
 
2
 
3
public class ActionDescriptor {
3
public class ActionDescriptor {
4
 
4
 
5
    private String id;
5
    private String id;
6
    private String location; // header, popup, both
6
    private String location = LOCATION_HEADER_POPUP; // header, popup, both
7
    private String table;
7
    private String table = "";
8
    private String componentId;
8
    private String componentId = "";
9
    public static final String LOCATION_HEADER = "header";
9
    public static final String LOCATION_HEADER = "header";
10
    public static final String LOCATION_POPUP = "popup";
10
    public static final String LOCATION_POPUP = "popup";
11
    public static final String LOCATION_HEADER_POPUP = "header,popup";
11
    public static final String LOCATION_HEADER_POPUP = "header,popup";
12
 
12
 
13
    public ActionDescriptor(String id) {
13
    public ActionDescriptor(String id) {
14
        this.id = id;
14
        this.id = id;
15
    }
15
    }
16
 
16
 
17
    public String getId() {
17
    public String getId() {
18
        return id;
18
        return this.id;
19
    }
19
    }
20
 
20
 
21
    public void setId(String id) {
21
    public void setId(String id) {
22
        this.id = id;
22
        this.id = id;
23
    }
23
    }
24
 
24
 
25
    public String getLocation() {
25
    public String getLocation() {
26
        return location;
26
        return this.location;
27
    }
27
    }
28
 
28
 
29
    public void setLocation(String location) {
29
    public void setLocation(String location) {
30
        this.location = location;
30
        this.location = location;
31
    }
31
    }
32
 
32
 
33
    public String getTable() {
33
    public String getTable() {
34
        return table;
34
        return this.table;
35
    }
35
    }
36
 
36
 
37
    public void setTable(String table) {
37
    public void setTable(String table) {
38
        this.table = table;
38
        this.table = table;
39
    }
39
    }
40
 
40
 
41
    public String getComponentId() {
41
    public String getComponentId() {
42
        return componentId;
42
        return this.componentId;
43
    }
43
    }
44
 
44
 
45
    public void setComponentId(String componentId) {
45
    public void setComponentId(String componentId) {
46
        this.componentId = componentId;
46
        this.componentId = componentId;
47
    }
47
    }
48
 
48
 
-
 
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
    }
49
}
56
}