root / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / project / documents / AbstractDocumentAction.java @ 38608
History | View | Annotate | Download (1.09 KB)
1 |
package org.gvsig.app.project.documents; |
---|---|
2 |
|
3 |
import java.util.Arrays; |
4 |
|
5 |
import org.gvsig.app.project.ProjectManager; |
6 |
|
7 |
|
8 |
public abstract class AbstractDocumentAction implements DocumentAction { |
9 |
|
10 |
private String id; |
11 |
protected DocumentActionGroup group;
|
12 |
protected String title; |
13 |
protected String description; |
14 |
protected int order; |
15 |
|
16 |
public AbstractDocumentAction(String id) { |
17 |
this.group = ProjectManager.getInstance().addDocumentActionGroup("default","Default action group", null, 1000); |
18 |
this.id = id;
|
19 |
this.title= id;
|
20 |
this.description = null; |
21 |
this.order = 1000; |
22 |
} |
23 |
|
24 |
public AbstractDocumentAction(DocumentActionGroup group, String id, String title, String description, int order) { |
25 |
this(id);
|
26 |
if( group!= null ) { |
27 |
this.group = group;
|
28 |
} |
29 |
this.title= title;
|
30 |
this.description = description;
|
31 |
this.order = order;
|
32 |
} |
33 |
|
34 |
public String getDescription() { |
35 |
return this.description; |
36 |
} |
37 |
|
38 |
public DocumentActionGroup getGroup() {
|
39 |
return this.group; |
40 |
} |
41 |
|
42 |
public String getId() { |
43 |
return this.id; |
44 |
} |
45 |
|
46 |
public int getOrder() { |
47 |
return this.order; |
48 |
} |
49 |
|
50 |
public String getTitle() { |
51 |
return this.title; |
52 |
} |
53 |
|
54 |
} |