comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/ExportContextCSV.java @ 9171:f1be005f0c46

tab titles from server
author gernotbelger
date Fri, 22 Jun 2018 11:02:59 +0200
parents cd24db77f044
children 3931e8741f53
comparison
equal deleted inserted replaced
9170:9b2e46090099 9171:f1be005f0c46
9 */ 9 */
10 package org.dive4elements.river.artifacts.common; 10 package org.dive4elements.river.artifacts.common;
11 11
12 import java.text.DateFormat; 12 import java.text.DateFormat;
13 import java.text.NumberFormat; 13 import java.text.NumberFormat;
14 import java.util.ArrayList;
15 import java.util.Collection;
14 import java.util.Date; 16 import java.util.Date;
15 import java.util.Locale; 17 import java.util.Locale;
16 18
17 import org.apache.commons.lang.math.DoubleRange; 19 import org.apache.commons.lang.math.DoubleRange;
18 import org.dive4elements.artifacts.CallContext; 20 import org.dive4elements.artifacts.CallContext;
229 231
230 public String msgPdf(final SInfoResultType type) { 232 public String msgPdf(final SInfoResultType type) {
231 return type.getPdfHeader(this.context.getMeta()); 233 return type.getPdfHeader(this.context.getMeta());
232 234
233 } 235 }
236
237 public void writeTitleForTabs(final String tabTitleMsg, final int colSize) {
238
239 final Collection<String> title = new ArrayList<>(colSize);
240 title.add(msg("export_csv_title") + msg(tabTitleMsg));
241 writeCSVLine(title.toArray(new String[colSize]));
242 }
234 } 243 }

http://dive4elements.wald.intevation.org