Revision 1306 org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.algorithm/org.gvsig.raster.tools.algorithm.swing/org.gvsig.raster.tools.algorithm.swing.impl/src/main/java/org/gvsig/raster/tools/algorithm/swing/impl/maskthreshold/OutputMaskThresholdImpl.java

View differences:

OutputMaskThresholdImpl.java
28 28
import javax.swing.JPanel;
29 29

  
30 30
import org.gvsig.i18n.Messages;
31
import org.gvsig.raster.swing.listener.PanelChangeListener;
31 32
import org.gvsig.raster.tools.algorithm.swing.impl.bean.combotext.ComboTextImpl;
32 33
import org.gvsig.raster.tools.algorithm.swing.impl.bean.inputlayer.InputLayerImpl;
33 34

  
......
35 36
 * @author Nacho Brodin (nachobrodin@gmail.com)
36 37
 */
37 38
public class OutputMaskThresholdImpl extends JPanel {
38
	private static final long   serialVersionUID     = 1L;
39
	private ComboTextImpl       satisfyCombo         = null;
40
	private InputLayerImpl      layerSelection       = null;
39
	private static final long   serialVersionUID    = 1L;
40
	private ComboTextImpl       satisfyCombo        = null;
41
	private InputLayerImpl      layerSelection      = null;
41 42
	
42 43
	public OutputMaskThresholdImpl() {
43 44
		init();
......
53 54
		
54 55
		gridBagConstraints1.gridx = 0;
55 56
		gridBagConstraints1.gridy = 0;
56
		this.add(getLayerSelection(), gridBagConstraints1);
57
		this.add(getMethodOutput(), gridBagConstraints1);
57 58
		
58 59
		gridBagConstraints1.gridx = 0;
59 60
		gridBagConstraints1.gridy = 1;
60
		this.add(getMethodOutput(), gridBagConstraints1);
61
		this.add(getLayerSelection(), gridBagConstraints1);
61 62
		
62 63
		gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
63 64
		gridBagConstraints1.weightx = 1;
......
83 84
		}
84 85
		return layerSelection;
85 86
	}
86

  
87
	
88
	public void addPanelChangeEvent(PanelChangeListener listener) {
89
		getLayerSelection().addPanelChangeEvent(listener);
90
		getMethodOutput().addPanelChangeEvent(listener);
91
	}
87 92
}

Also available in: Unified diff