Revision 14476 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/dialogs/WFSPropsDialog.java

View differences:

WFSPropsDialog.java
214 214
 */
215 215
/**
216 216
 * Panel with tabs for change properties of a WFS layer
217
 * 
217
 *
218 218
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
219 219
 * @author Pablo Piqueras Bartolom? (p_queras@hotmail.com)
220 220
 */
......
230 230
	boolean applied = false;
231 231

  
232 232

  
233
	
233

  
234 234
	/**
235 235
	 * Default constructor with a Layer as parameter
236
	 * 
236
	 *
237 237
	 * @param layer A layer
238 238
	 */
239 239
    public WFSPropsDialog(FLayer layer) {
......
243 243

  
244 244
    /**
245 245
     * Initializes this component
246
     * 
246
     *
247 247
     * @param layer A layer
248 248
     */
249 249
    private void initialize(FLayer layer) {
......
265 265
        this.add(getButtonsPanel(), null);
266 266
    }
267 267

  
268
    
268

  
269 269
    /**
270 270
     * Buttons OK, Apply, Cancel
271
     * 
271
     *
272 272
     * @return A panel with that buttons
273 273
     */
274 274
    public JPanel getButtonsPanel() {
......
330 330
	    	toc.setVisible(true);
331 331
	    	toc.refreshInfo();
332 332
	    	applied = false;
333
	    	return toc;	  	
333
	    	return toc;
334 334
	    }
335 335
	    return null;
336 336
	}
337 337

  
338 338

  
339
	
339

  
340 340
	/*
341 341
	 *  (non-Javadoc)
342 342
	 * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
......
367 367

  
368 368
	/**
369 369
	 * JButton OK
370
	 * 
370
	 *
371 371
	 * @return javax.swing.JButton
372 372
	 */
373 373
	public JButton getBtnOk() {
......
381 381
		return btnOk;
382 382
	}
383 383

  
384
	
384

  
385 385
	/**
386 386
	 * JButton Apply
387
	 * 
387
	 *
388 388
	 * @return javax.swing.JButton
389 389
	 */
390 390
	public JButton getBtnApply() {
......
399 399
		return btnApply;
400 400
	}
401 401

  
402
	
402

  
403 403
	/**
404 404
	 * JButton Cancel
405
	 * 
405
	 *
406 406
	 * @return javax.swing.JButton
407 407
	 */
408 408
	public JButton getBtnCancel() {
......
422 422
	 */
423 423
	public void close() {
424 424
		PluginServices.getMDIManager().closeWindow(this);
425
	}   
426
	
425
	}
426

  
427 427
    /**
428 428
     * @see ActionListener
429
     * 
429
     *
430 430
     * @author Pablo Piqueras Bartolom? (p_queras@hotmail.com)
431 431
     */
432 432
	private class CommandListener implements ActionListener {
433 433
		/**
434 434
		 * Default constructor
435
		 * 
435
		 *
436 436
		 * @param tp
437 437
		 */
438 438
		public CommandListener(WFSPropsDialog tp) {
......
465 465
					applied = true;
466 466
					getBtnApply().setEnabled(!applied);
467 467
					refreshLayouts();
468
					
468

  
469 469
					// Restores the private attribute of the area panel: hasUserDefinedAnArea
470 470
					wfsParamsTabbedPane.setUserHasntDefinedAnArea();
471 471

  
......
550 550
		 		if (fLayer != null) {
551 551
			 		URL host = new URL(wfsParamsTabbedPane.getData().getHost());
552 552
			 		String onlineResource = wfsParamsTabbedPane.getData().getOnlineResource();
553
			 		fLayer = new FLyrWFSFactory().getFLyrWFS(fLayer,host,onlineResource,driver,true);
553
			 		fLayer = new FLyrWFSFactory().getFLyrWFS(fLayer,host,onlineResource,driver,true,false);
554 554
			 		if (fLayer != null) {
555 555
			 			((FLyrWFS)fLayer).setLegend(legend);
556
	
556

  
557 557
			 			 // Update all fields and values known about the current layer loaded (and selected)
558 558
			 			((FLyrWFS)fLayer).setAllFieldsAndValuesKnown(wfsParamsTabbedPane.getAllFieldsAndValuesKnownOfCurrentLayer());
559
	
559

  
560 560
			 			return fLayer.getName();
561 561
			 		}
562 562
		 		}
......
620 620
			}
621 621
		}
622 622
	}
623
	
623

  
624 624
	/**
625 625
	 * @see WFSAreaPanel#updateWFSArea()
626 626
	 */

Also available in: Unified diff