Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/exports/ExportSection.java @ 5831:bd047b71ab37
Repaired internal references
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:06:39 +0200 |
parents | flys-artifacts/src/main/java/de/intevation/flys/exports/ExportSection.java@ca8997aa683e |
children |
comparison
equal
deleted
inserted
replaced
5830:160f53ee0870 | 5831:bd047b71ab37 |
---|---|
1 package org.dive4elements.river.exports; | |
2 | |
3 | |
4 | |
5 /** | |
6 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
7 */ | |
8 public class ExportSection extends TypeSection { | |
9 | |
10 public static final String WIDTH_ATTR = "width"; | |
11 public static final String HEIGHT_ATTR = "height"; | |
12 | |
13 | |
14 public ExportSection() { | |
15 super("export"); | |
16 } | |
17 | |
18 | |
19 public void setWidth(int width) { | |
20 if (width <= 0) { | |
21 return; | |
22 } | |
23 | |
24 setIntegerValue(WIDTH_ATTR, width); | |
25 } | |
26 | |
27 | |
28 public Integer getWidth() { | |
29 return getIntegerValue(WIDTH_ATTR); | |
30 } | |
31 | |
32 | |
33 public void setHeight(int height) { | |
34 if (height <= 0) { | |
35 return; | |
36 } | |
37 | |
38 setIntegerValue(HEIGHT_ATTR, height); | |
39 } | |
40 | |
41 | |
42 public Integer getHeight() { | |
43 return getIntegerValue(HEIGHT_ATTR); | |
44 } | |
45 } | |
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |