diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-01 08:30:39 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-01 08:30:39 +0000 |
commit | de9cabd09b90c701a2c41ce761ac199c5a4a20a6 (patch) | |
tree | 8578151320171a2f17377f8ef23e7bc02e41749f /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationContainerImpl.java | |
parent | 99cc7141f302e16ec4a22e95e95015f74f09e894 (diff) | |
download | pdf-over-de9cabd09b90c701a2c41ce761ac199c5a4a20a6.tar.gz pdf-over-de9cabd09b90c701a2c41ce761ac199c5a4a20a6.tar.bz2 pdf-over-de9cabd09b90c701a2c41ce761ac199c5a4a20a6.zip |
Working on Configuration UI. (still work in progress!)
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12533 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationContainerImpl.java')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationContainerImpl.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationContainerImpl.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationContainerImpl.java index f8489d71..dd305201 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationContainerImpl.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationContainerImpl.java @@ -91,7 +91,7 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { */ @Override public void setEmblem(String emblemFile) throws InvalidEmblemFile { - if (this.emblemFile == null || this.emblemFile.trim().equals("")) { //$NON-NLS-1$ + if (emblemFile == null || emblemFile.trim().equals("")) { //$NON-NLS-1$ // Ok to set no file ... } else { File imageFile = new File(emblemFile); @@ -128,6 +128,10 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { */ @Override public void setNumber(String number) throws InvalidNumberException { + if(number == null || number.trim().equals("")) { //$NON-NLS-1$ + this.mobileNumber = null; + return; + } this.mobileNumber = ATrustHelper.normalizeMobileNumber(number); } @@ -166,6 +170,11 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { public void setProxyPort(int port) throws InvalidPortException { if(port > 0 && port < 0xFFFF) { this.proxyPort = port; + return; + } + if(port == -1) { + this.proxyPort = -1; + return; } throw new InvalidPortException(port); } |