[Schmitzm-commits] r1960 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 19 14:57:20 CEST 2012


Author: mojays
Date: 2012-04-19 14:57:20 +0200 (Thu, 19 Apr 2012)
New Revision: 1960

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProxySettingsPanel.java
Log:
some debug messages for ProxySettingsPanel

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProxySettingsPanel.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProxySettingsPanel.java	2012-04-19 12:01:00 UTC (rev 1959)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProxySettingsPanel.java	2012-04-19 12:57:20 UTC (rev 1960)
@@ -33,8 +33,11 @@
 
 import javax.swing.JLabel;
 
+import org.apache.log4j.Logger;
+
 import net.miginfocom.swing.MigLayout;
 import de.schmitzm.io.IOUtil;
+import de.schmitzm.lang.LangUtil;
 import de.schmitzm.swing.input.InputOption;
 import de.schmitzm.swing.input.InputOptionAdapter;
 import de.schmitzm.swing.input.ManualInputOption;
@@ -45,7 +48,8 @@
  * @author Martin O.J. Schmitz
  */
 public class ProxySettingsPanel extends JPanel {
-
+  private Logger LOGGER = LangUtil.createLogger(this);  
+  
   protected JLabel oroxyUsedCaption;
   protected SelectionInputOption.Radio<Boolean> proxyUsed;
   protected JLabel proxyTypeCaption;
@@ -98,6 +102,7 @@
    * Returns the {@link Proxy} specified by the panel components.
    */
   public Proxy getProxy() {
+    LOGGER.debug("getProxy():  ProxyUsed = "+proxyUsed.getValue()+"\tProxyType = "+proxyType.getValue()+"\tHost = '"+proxyHost.getValue()+"'\tPort = "+proxyPort.getValue());
     if ( !((Boolean)proxyUsed.getValue()) )
       return Proxy.NO_PROXY;
     Proxy.Type type = (Proxy.Type)proxyType.getValue();
@@ -113,10 +118,12 @@
    * Sets the {@link Proxy} settings for the panel components.
    */
   public void setProxy(boolean used, Proxy.Type type, String host, int port) {
+    LOGGER.debug("setProxy(.) method parameter:  ProxyUsed = "+used+"\tProxyType = "+type+"\tHost = '"+host+"'\tPort = "+port);
     proxyUsed.setValue(used);
     proxyType.setSelectedItem(type);
     proxyHost.setValue(host);
     proxyPort.setValue(String.valueOf(port));
     updateComponentsEnabled();
+    LOGGER.debug("setProxy(.) components after set:  ProxyUsed = "+proxyUsed.getValue()+"\tProxyType = "+proxyType.getValue()+"\tHost = '"+proxyHost.getValue()+"'\tPort = "+proxyPort.getValue());
   }
 }



More information about the Schmitzm-commits mailing list