Revision 35756 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/gui/FPanelLocConfig.java

View differences:

FPanelLocConfig.java
1
/*
2
 * Created on 18-jun-2004
3
 *
4
 * TODO To change the template for this generated file go to
5
 * Window - Preferences - Java - Code Generation - Code and Comments
6
 */
7 1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8 2
 *
9 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
......
75 69
/**
76 70
 * @author FJP
77 71
 *
78
 * TODO To change the template for this generated type comment go to
79
 * Window - Preferences - Java - Code Generation - Code and Comments
72
 * Dialog to config the locator
80 73
 */
81 74
public class FPanelLocConfig extends JPanel implements ActionListener,IWindow {
75

  
76
	private static final long serialVersionUID = -2271914332135260143L;
82 77
	private javax.swing.JLabel jLabel = null;
83
	private javax.swing.JList jList = null;  //  @jve:decl-index=0:visual-constraint="390,10"
84
	private JButton jBtnAddLayer = null;  //
78
	private javax.swing.JList jList = null;
79
	private JButton jBtnAddLayer = null;
85 80
	private JButton jBtnRemoveLayer = null;
86 81
	private JButton jBtnEditLegend = null;
87 82
	private JButton jBtnCancel = null;
88 83

  
89
	//private JDialog m_Owner;
90 84
	private MapControl mapCtrl;
91 85
	private WindowInfo m_viewinfo = null;
92
	private JPanel pnlButtons = null;  //  @jve:decl-index=0:visual-constraint="10,159"
86
	private JPanel pnlButtons = null;
93 87
	private BasicArrowButton jBtnUp;
94 88
	private BasicArrowButton jBtnDown;
95
	/**
96
	 * This is the default constructor
97
	 */
89

  
98 90
	public FPanelLocConfig( MapControl mc) {
99 91
		super();
100 92
		mapCtrl = mc;
......
114 106
		}
115 107
	}
116 108

  
117
	/**
118
	 * This method initializes this
119
	 *
120
	 * @return void
121
	 */
122 109
	private  void initialize() {
123 110
		this.setLayout(null);
124 111
		this.setSize(555, 210);
......
128 115
		this.add(getJBtnDown(), null);
129 116
		this.add(getJPanel(), null);
130 117
	}
131
	/**
132 118

  
133
	 * This method initializes jLabel
134

  
135
	 *
136

  
137
	 * @return javax.swing.JLabel
138

  
139
	 */
140 119
	private javax.swing.JLabel getJLabel() {
141 120
		if (jLabel == null) {
142 121
			jLabel = new javax.swing.JLabel();
......
146 125
		return jLabel;
147 126
	}
148 127

  
149
	/**
150 128

  
151
	 * This method initializes jList
152

  
153
	 *
154

  
155
	 * @return javax.swing.JList
156

  
157
	 */
158 129
	public javax.swing.JList getJList() {
159 130
		if (jList == null) {
160 131
			jList = new javax.swing.JList(new DefaultListModel());
......
174 145

  
175 146
	private void updateControls(javax.swing.event.ListSelectionEvent e)
176 147
	{
177
		System.out.println("valueChanged()"); // TODO Auto-generated Event stub valueChanged()
178 148
		DefaultListModel lstModel = (DefaultListModel) getJList().getModel();
179 149
		int selIndex = jList.getSelectedIndex();
180 150
		jBtnDown.setEnabled(false);
......
196 166

  
197 167
	}
198 168

  
199
	/**
200

  
201
	 * This method initializes jBtnUp
202

  
203
	 *
204

  
205
	 * @return JButton
206

  
207
	 */
208 169
	private BasicArrowButton getJBtnUp() {
209 170
		if (jBtnUp == null) {
210 171
			jBtnUp = new javax.swing.plaf.basic.BasicArrowButton(
......
218 179
		return jBtnUp;
219 180
	}
220 181

  
221
	/**
222 182

  
223
	 * This method initializes jBtnDown
224

  
225
	 *
226

  
227
	 * @return JButton
228

  
229
	 */
230 183
	private BasicArrowButton getJBtnDown() {
231 184
		if (jBtnDown == null) {
232 185
			jBtnDown = new javax.swing.plaf.basic.BasicArrowButton(
......
239 192
		return jBtnDown;
240 193
	}
241 194

  
242
	/**
243

  
244
	 * This method initializes jButton2
245

  
246
	 *
247

  
248
	 * @return JButton
249

  
250
	 */
251 195
	private JButton getJBtnAddLayer() {
252 196
		if (jBtnAddLayer == null) {
253 197
			jBtnAddLayer = new JButton();
......
258 202
		return jBtnAddLayer;
259 203
	}
260 204

  
261
	/**
262

  
263
	 * This method initializes jBtnRemoveLayer
264

  
265
	 *
266

  
267
	 * @return JButton
268

  
269
	 */
270 205
	private JButton getJBtnRemoveLayer() {
271 206
		if (jBtnRemoveLayer == null) {
272 207
			jBtnRemoveLayer = new JButton();
......
278 213
		return jBtnRemoveLayer;
279 214
	}
280 215

  
281
	/**
282 216

  
283
	 * This method initializes jBtnEditLegend
284

  
285
	 *
286

  
287
	 * @return JButton
288

  
289
	 */
290 217
	private JButton getJBtnEditLegend() {
291 218
		if (jBtnEditLegend == null) {
292 219
			jBtnEditLegend = new JButton();
......
297 224
		return jBtnEditLegend;
298 225
	}
299 226

  
300
	/**
301

  
302
	 * This method initializes jBtnCancel
303

  
304
	 *
305

  
306
	 * @return JButton
307

  
308
	 */
309 227
	private JButton getJBtnCancel() {
310 228
		if (jBtnCancel == null) {
311 229
			jBtnCancel = new JButton();
......
317 235
		return jBtnCancel;
318 236
	}
319 237

  
320
	/* (non-Javadoc)
321
	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
322
	 */
238

  
323 239
	public void actionPerformed(ActionEvent e)
324 240
	{
325 241
		DefaultListModel lstModel = (DefaultListModel) getJList().getModel();
......
439 355

  
440 356

  
441 357
	}
442
	/* (non-Javadoc)
443
	 * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
444
	 */
358

  
445 359
	public WindowInfo getWindowInfo() {
446 360
		if (m_viewinfo==null){
447 361
    			m_viewinfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
......
451 365
		}
452 366
			return m_viewinfo;
453 367
		}
454
	/**
455
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
456
	 */
368

  
457 369
	public void viewActivated() {
458 370
	}
459 371

  
460
	/**
461
	 * This method initializes jPanel
462
	 *
463
	 * @return javax.swing.JPanel
464
	 */
372

  
465 373
	private JPanel getJPanel() {
466 374
		if (pnlButtons == null) {
467 375
			pnlButtons = new JPanel(new FlowLayout(FlowLayout.RIGHT, 5, 5));
......
474 382
		return pnlButtons;
475 383
	}
476 384

  
477
	/**
478
	 * Obtiene el MapControl asociado al localizador
479
	 * @return MapControl
480
	 */
385

  
481 386
	public MapControl getMapCtrl() {
482 387
		return mapCtrl;
483 388
	}
......
486 391
		return WindowInfo.DIALOG_PROFILE;
487 392
	}
488 393

  
489
        }  //  @jve:visual-info  decl-index=0 visual-constraint="10,10"
394
        }

Also available in: Unified diff