Revision 5432 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/wizards/WFSWizard.java

View differences:

WFSWizard.java
6 6
import java.net.URL;
7 7

  
8 8
import javax.swing.DefaultComboBoxModel;
9
import javax.swing.JCheckBox;
9 10
import javax.swing.JLabel;
10 11
import javax.swing.JOptionPane;
11 12

  
......
65 66
 *
66 67
 * $Id$
67 68
 * $Log$
68
 * Revision 1.5  2006-05-24 12:08:53  jorpiell
69
 * Revision 1.6  2006-05-25 10:29:07  jorpiell
70
 * A?adido el checkbox para que se  haga uso de la cache
71
 *
72
 * Revision 1.5  2006/05/24 12:08:53  jorpiell
69 73
 * Cambiado el nombre de la pesta?a a WFS
70 74
 *
71 75
 * Revision 1.4  2006/05/23 13:21:59  jorpiell
......
104 108
	private WFSWizardData dataSource = null;
105 109
	private JLabel lblServerType = null;
106 110
	private JLabel lblServerTypeValue = null;
111
	private JCheckBox chkCaching = null;
107 112
	
108 113
	/**
109 114
	 * This is the default constructor
......
489 494
			jPanel1.setBounds(2, 5, 477, 85);
490 495
			jPanel1.add(getTxtHost(), null);
491 496
			jPanel1.add(getBtnConnect(), null);
497
			jPanel1.add(getChkCaching(), null);
492 498
		}
493 499

  
494 500
		return jPanel1;
......
595 601
		return layer;
596 602
	}
597 603
	
604
	/**
605
	 * This method initializes chkCaching	
606
	 * 	
607
	 * @return javax.swing.JCheckBox	
608
	 */    
609
	private JCheckBox getChkCaching() {
610
		if (chkCaching == null) {
611
			chkCaching = new JCheckBox();
612
			chkCaching.setBounds(7, 51, 349, 20);
613
			chkCaching.setText(PluginServices.getText(this, "refresh_capabilities"));
614
			chkCaching.setToolTipText(PluginServices.getText(this, "refresh_capabilities_tooltip"));
615
			//chkCaching.setSelected(refreshing);
616
			chkCaching.addItemListener(new java.awt.event.ItemListener() { 
617
				public void itemStateChanged(java.awt.event.ItemEvent e) {
618
					//refreshing = chkCaching.isSelected();
619
				}
620
			});
621
			chkCaching.addActionListener(new java.awt.event.ActionListener() { 
622
				public void actionPerformed(java.awt.event.ActionEvent e) {    
623
					//fPrefs.putBoolean("refresh_capabilities", chkCaching.isSelected());
624
				}
625
			});
598 626

  
627
		}
628
		return chkCaching;
629
	}
599 630

  
600 631

  
632

  
601 633
}

Also available in: Unified diff