Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/OutFilter.java @ 4474:bd78d2b0e309
Map print settings can now be configured via settings window.
Configurable for now are page layout (A0 or A4), caption text and
comment text.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Sun, 11 Nov 2012 14:44:12 +0100 |
parents | e47ef0ca8f33 |
children |
line wrap: on
line source
package de.intevation.flys.client.shared.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class OutFilter implements Serializable { protected String out; protected List<FacetFilter> facetFilters; public OutFilter() { facetFilters = new ArrayList<FacetFilter>(); } public OutFilter(String out) { this(); this.out = out; } public String getOut() { return out; } public void setOut(String out) { this.out = out; } public void add(String name, String num) { FacetFilter facetFilter = new FacetFilter(name, num); if (!facetFilters.contains(facetFilter)) { facetFilters.add(facetFilter); } } public List<FacetFilter> getFacetFilters() { return facetFilters; } public void setFacetFilters(List<FacetFilter> facetFilters) { this.facetFilters = facetFilters; } public void collectIds(StringBuilder sb) { for (FacetFilter facetFilter: facetFilters) { facetFilter.collectIds(sb); } } public List<Recommendation.Facet> toFacets() { List<Recommendation.Facet> facets = new ArrayList<Recommendation.Facet>(facetFilters.size()); for (FacetFilter facetFilter: facetFilters) { facets.add(facetFilter.toFacet()); } return facets; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :