Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/IntegerOptionsData.java @ 1530:f1f0e9c75026
Added new artifact to be able to open existing 'new chart' projects.
flys-client/trunk@3737 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 20 Jan 2012 09:25:00 +0000 |
parents | 252c22237fe7 |
children | 0f2b94408bd1 |
line wrap: on
line source
package de.intevation.flys.client.shared.model; public class IntegerOptionsData implements Data { protected String label; protected String description; public DataItem[] opts; public IntegerOptionsData() { } public IntegerOptionsData(String label, String desc, DataItem[] opts) { this.label = label; this.description = desc; this.opts = opts; } /** * Returns the label of the item. * * @return the label. */ public String getLabel() { return label; } /** * Returns the description of the item. * * @return the description. */ public String getDescription() { return description; } /** * Returns the type of the item. * * @return the type. */ public String getType() { return "intoptions"; } /** * Returns the data items which represent the allowed options for this Data. * * @return the allowed options as DataItem array. */ public DataItem[] getItems() { return opts; } /** * @return always null. */ public DataItem getDefault() { return null; } }