comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultOutputMode.java @ 796:cd8603aaa730

Improved the process of creating OutputTabs. Added support for map output. flys-client/trunk@2312 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 08 Jul 2011 08:54:08 +0000
parents 8264b02091ef
children
comparison
equal deleted inserted replaced
795:68b8770af6c5 796:cd8603aaa730
1 package de.intevation.flys.client.shared.model; 1 package de.intevation.flys.client.shared.model;
2 2
3 import java.util.ArrayList; 3 import java.util.ArrayList;
4 import java.util.List; 4 import java.util.List;
5
6 import de.intevation.flys.client.client.ui.CollectionView;
7 import de.intevation.flys.client.client.ui.OutputTab;
5 8
6 9
7 /** 10 /**
8 * The default implementation of an Output. 11 * The default implementation of an Output.
9 * 12 *
17 /** The description of this mode.*/ 20 /** The description of this mode.*/
18 protected String description; 21 protected String description;
19 22
20 /** The mime-type of this mode.*/ 23 /** The mime-type of this mode.*/
21 protected String mimeType; 24 protected String mimeType;
25
26 /** The type that this output mode represents.*/
27 protected String type;
22 28
23 /** The list of available facets of this export mode.*/ 29 /** The list of available facets of this export mode.*/
24 protected List<Facet> facets; 30 protected List<Facet> facets;
25 31
26 32
43 this.mimeType = mimeType; 49 this.mimeType = mimeType;
44 } 50 }
45 51
46 52
47 public DefaultOutputMode( 53 public DefaultOutputMode(
54 String name,
55 String description,
56 String mimeType,
57 String type)
58 {
59 this(name, description, mimeType);
60
61 this.type = type;
62 }
63
64
65 public DefaultOutputMode(
48 String name, 66 String name,
49 String description, 67 String description,
50 String mimeType, 68 String mimeType,
51 List<Facet> facets) 69 List<Facet> facets)
52 { 70 {
53 this(name, description, mimeType); 71 this(name, description, mimeType);
72 this.type = "";
54 this.facets = facets; 73 this.facets = facets;
55 } 74 }
56 75
57 76
58 public String getName() { 77 public String getName() {
65 } 84 }
66 85
67 86
68 public String getMimeType() { 87 public String getMimeType() {
69 return mimeType; 88 return mimeType;
89 }
90
91
92 public String getType() {
93 return type;
70 } 94 }
71 95
72 96
73 /** 97 /**
74 * Adds a new facet to this export. 98 * Adds a new facet to this export.
118 142
119 143
120 public List<Facet> getFacets() { 144 public List<Facet> getFacets() {
121 return facets; 145 return facets;
122 } 146 }
147
148
149 public OutputTab createOutputTab(String t, Collection c, CollectionView p) {
150 return null;
151 }
123 } 152 }
124 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 153 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org