Revision 960

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/View.java
7 7
import java.beans.PropertyChangeEvent;
8 8
import java.beans.PropertyChangeListener;
9 9

  
10
import javax.swing.JComponent;
11 10
import javax.swing.JPanel;
12 11
import javax.swing.JScrollPane;
13 12
import javax.swing.JSplitPane;
......
18 17
import com.iver.andami.messages.NotificationManager;
19 18
import com.iver.andami.ui.mdiManager.SingletonView;
20 19
import com.iver.andami.ui.mdiManager.ViewInfo;
20
import com.iver.andami.ui.mdiManager.ViewListener;
21 21
import com.iver.cit.gvsig.fmap.FMap;
22 22
import com.iver.cit.gvsig.fmap.NewMapControl;
23 23
import com.iver.cit.gvsig.fmap.core.v02.FConstant;
24 24
import com.iver.cit.gvsig.fmap.layers.FLayer;
25
import com.iver.cit.gvsig.fmap.layers.LayerEvent;
26
import com.iver.cit.gvsig.fmap.layers.LayerListener;
27 25
import com.iver.cit.gvsig.fmap.tools.Behavior.AreaMapTool;
28 26
import com.iver.cit.gvsig.fmap.tools.Behavior.MeasureMapTool;
29 27
import com.iver.cit.gvsig.fmap.tools.Behavior.MoveMapTool;
......
49 47
 * @author vcn
50 48
 */
51 49
public class View extends JPanel implements com.iver.andami.ui.mdiManager.View,
52
    SingletonView, IView {
50
    SingletonView,ViewListener, IView {
53 51

  
54 52
    /** DOCUMENT ME! */
55 53
    private NewMapControl m_MapControl;
......
60 58
    private JScrollPane jscrollTOC;
61 59
    private TOC m_TOC;
62 60
    private ProjectView modelo;
63

  
64
    // private FLyrVect layerSelected; 
65
    private String m_selectedField = null;
66
    private int m_typeLink=0;
67
    private String m_extLink;
68 61
    private Table table = null;
69 62
	private ViewExceptionListener mapControlExceptionListener = new ViewExceptionListener();
70 63
    	
......
113 106
				}
114 107
			}
115 108
		});
116
     ///   m_TOC.refresh();
117
       
118 109
    }
119

  
120
    /**
121
     * Se selecciona el nombre del campo para realizar cuando se quiera el link.
122
     *
123
     * @param s nombre del campo.
124
     */
125
    public void setSelectedField(String s) {
126
        m_selectedField = s;
127
    }
128
    /**
129
     * Se selecciona el tipo de fichero para realizar cuando se quiera el link.
130
     *
131
     * @param s nombre del campo.
132
     */
133
    public void setTypeFile(int i){
134
    	m_typeLink=i;
135
    }
136
    /**
137
     * Se selecciona la extensi?n para realizar cuando se quiera el link.
138
     *
139
     * @param s nombre del campo.
140
     */
141
    public void setExtension(String s){
142
    	m_extLink=s;
143
    }
144
    /**
110
   /**
145 111
     * DOCUMENT ME!
146
     *
147
     * @return DOCUMENT ME!
148 112
     */
149
    public String getSelectedField() {
150
        return m_selectedField;
151
    }
152
    /**
153
     * DOCUMENT ME!
154
     *
155
     * @return DOCUMENT ME!
156
     */
157
    public int getTypeFile() {
158
        return m_typeLink;
159
    }
160
    /**
161
     * DOCUMENT ME!
162
     *
163
     * @return DOCUMENT ME!
164
     */
165
    public String getExtLink() {
166
        return m_extLink;
167
    }
168

  
169
    /**
170
     * DOCUMENT ME!
171
     */
172 113
    public void openThemeProperties() {
173 114
    	FMap fmap = modelo.getMapContext();
174 115
    	FLayer[] actives = fmap.getLayers().getActives();
175 116
    	
176 117
    	for (int i = 0; i < actives.length; i++){
177
            m_Themeproperties = new FThemePropertiesDialog(actives[i], this);
118
            m_Themeproperties = new FThemePropertiesDialog(actives[i], modelo);
178 119
            PluginServices.getMDIManager().addView(m_Themeproperties);
179 120
    	}
180 121
    }
......
269 210
    /**
270 211
     * DOCUMENT ME!
271 212
     */
272
    public void openPropertiesWindow() {
213
   /*public void openPropertiesWindow() {
273 214
    }
274

  
215
*/
275 216
    /**
276 217
     * DOCUMENT ME!
277 218
     */
278
    public void openQueryWindow() {
219
  /*  public void openQueryWindow() {
279 220
    }
280

  
221
*/
281 222
    /**
282 223
     * DOCUMENT ME!
283 224
     *
......
307 248

  
308 249
    /**
309 250
     * DOCUMENT ME!
310
     *
311
     * @return DOCUMENT ME!
312 251
     */
313
    public String getViewName() {
314
        return "";
315
    }
316

  
317
    /**
318
     * DOCUMENT ME!
319
     *
320
     * @param viewName DOCUMENT ME!
321
     */
322
    public void setViewName(String viewName) {
323
    }
324

  
325
    /**
326
     * DOCUMENT ME!
327
     */
328 252
    public void repaintMap() {
329 253
        m_MapControl.drawMap();
330 254
    }
......
359 283
    	PluginServices.getMainFrame().getStatusBar().setMessage("1",
360 284
    			FConstant.NAMES[getMapControl().getMapContext().getViewPort().getMapUnits()]);
361 285
    	 System.out.println("---------- 1 "+ FConstant.NAMES[getMapControl().getMapContext().getViewPort().getDistanceUnits()]);
362
    	// getMapControl().status = MapControl.DESACTUALIZADO;
363
        // getMapControl().repaint();
364
    }
286
   }
365 287

  
366 288
	/**
367 289
	 * @return
......
396 318
	public void viewClosed() {
397 319
		///PluginServices.getMainFrame().getStatusBar().setMessage("1","");
398 320
	}
321
	
399 322
}

Also available in: Unified diff