Revision 3855 branches/v05/extensions/extWMS/src/com/iver/cit/gvsig/gui/panels/DimensionPanel.java
DimensionPanel.java | ||
---|---|---|
56 | 56 |
|
57 | 57 |
import com.iver.andami.PluginServices; |
58 | 58 |
import com.iver.cit.gvsig.fmap.layers.IFMapWMSDimension; |
59 |
import com.iver.cit.gvsig.gui.beans.DefaultBean; |
|
59 | 60 |
import com.iver.cit.gvsig.gui.beans.Pager; |
60 | 61 |
import com.iver.cit.gvsig.gui.beans.listeners.BeanListener; |
61 | 62 |
|
... | ... | |
65 | 66 |
* @author jaume |
66 | 67 |
* |
67 | 68 |
*/ |
68 |
public class DimensionPanel extends JPanel {
|
|
69 |
public class DimensionPanel extends DefaultBean {
|
|
69 | 70 |
static private final int SINGLE_VALUE = 0; |
70 | 71 |
static private final int MULTIPLE_VALUE = 1; |
71 | 72 |
static private final int INTERVAL = 2; |
... | ... | |
312 | 313 |
userEdits = false; |
313 | 314 |
indices.clear(); |
314 | 315 |
} else if (actionCommand.equals("set")) { |
316 |
|
|
315 | 317 |
/* |
316 | 318 |
* Two kinds of input data is accepted: - An array of Integer |
317 | 319 |
* representing points which are computed and obtained from the |
... | ... | |
332 | 334 |
val = (Integer[]) indices.toArray(new Integer[0]); |
333 | 335 |
} |
334 | 336 |
//settings.put(currentDimension, new Value(type, mode, val)); |
335 |
settings.put(currentDimension.getName(), new Value(type, mode, val, currentDimension)); |
|
336 |
refreshInfo(); |
|
337 |
if ((type == Value.EXPR && !((String) val).equals("")) || |
|
338 |
(type == Value.INDEXES && ((Integer[]) val).length>0)){ |
|
339 |
settings.put(currentDimension.getName(), new Value(type, mode, val, currentDimension)); |
|
340 |
refreshInfo(); |
|
341 |
callValueChanged(getDimensions()); |
|
342 |
} |
|
337 | 343 |
} |
338 | 344 |
return b; |
339 | 345 |
} |
Also available in: Unified diff