summaryrefslogtreecommitdiffstats
path: root/base/console/src/com/netscape/admin/certsrv/wizard
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-05 14:49:11 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-09 10:03:25 -0500
commit7c7b9d023cd466c1771068badc020dab36beb553 (patch)
tree178877eb83e25336be7577953945fbdb0b9e1a15 /base/console/src/com/netscape/admin/certsrv/wizard
parentda1e6e2f49f66fd46c8039ff1aa4386309fba8f4 (diff)
downloadpki-7c7b9d023cd466c1771068badc020dab36beb553.tar.gz
pki-7c7b9d023cd466c1771068badc020dab36beb553.tar.xz
pki-7c7b9d023cd466c1771068badc020dab36beb553.zip
Removed whitespaces from Java code.
Whitespaces in Java code have been removed with the following command: find . -not -path .git -name *.java -exec sed -i 's/[[:blank:]]\+$//' {} \; Ticket #134
Diffstat (limited to 'base/console/src/com/netscape/admin/certsrv/wizard')
-rw-r--r--base/console/src/com/netscape/admin/certsrv/wizard/WizardBasePanel.java16
-rw-r--r--base/console/src/com/netscape/admin/certsrv/wizard/WizardInfo.java14
-rw-r--r--base/console/src/com/netscape/admin/certsrv/wizard/WizardWidget.java8
3 files changed, 19 insertions, 19 deletions
diff --git a/base/console/src/com/netscape/admin/certsrv/wizard/WizardBasePanel.java b/base/console/src/com/netscape/admin/certsrv/wizard/WizardBasePanel.java
index c31767d99..9b60500c3 100644
--- a/base/console/src/com/netscape/admin/certsrv/wizard/WizardBasePanel.java
+++ b/base/console/src/com/netscape/admin/certsrv/wizard/WizardBasePanel.java
@@ -44,7 +44,7 @@ public class WizardBasePanel extends CMSBasePanel implements MouseMotionListener
protected String mTitle;
protected String mErrorString;
protected String mNextString =
- mResource.getString("GENERALWIZARD_LABEL_NEXT_LABEL");
+ mResource.getString("GENERALWIZARD_LABEL_NEXT_LABEL");
protected String mPanelName;
public static long mSeed;
@@ -73,7 +73,7 @@ public class WizardBasePanel extends CMSBasePanel implements MouseMotionListener
/*
GridBagConstraints gbc = new GridBagConstraints();
-
+
CMSAdminUtil.resetGBC(gbc);
gbc.anchor = gbc.SOUTHWEST;
gbc.weightx = 1.0;
@@ -143,7 +143,7 @@ public class WizardBasePanel extends CMSBasePanel implements MouseMotionListener
wizardInfo.remove("NMC_ERRINFO");
wizardInfo.remove("NMC_STATUS");
}
-
+
public String getErrorMessage(WizardInfo wizardInfo) {
String value = (String)wizardInfo.get("NMC_ERRINFO");
if (value != null || value.trim().length() == 0)
@@ -151,11 +151,11 @@ public class WizardBasePanel extends CMSBasePanel implements MouseMotionListener
value = (String)wizardInfo.get("NMC_WARNINFO");
if (value != null || value.trim().length() == 0)
return value;
-
+
return null;
}
- public boolean send(String host, int port, String servlet, String rawData,
+ public boolean send(String host, int port, String servlet, String rawData,
WizardInfo wizardInfo) {
try {
Socket socket = new Socket(host, port);
@@ -203,7 +203,7 @@ public class WizardBasePanel extends CMSBasePanel implements MouseMotionListener
} else {
return false;
}
- } catch (Exception e) {
+ } catch (Exception e) {
}
return false;
@@ -247,7 +247,7 @@ public class WizardBasePanel extends CMSBasePanel implements MouseMotionListener
if (numTokens == 2) {
String name = tokenizer1.nextToken().trim();
String value = tokenizer1.nextToken().trim();
- wizardInfo.put(name, value);
+ wizardInfo.put(name, value);
}
}
bstream.close();
@@ -283,7 +283,7 @@ public class WizardBasePanel extends CMSBasePanel implements MouseMotionListener
// Keep tracking coordinate values
long x = e.getX();
long y = e.getY();
-
+
long top = mSeed >> 62;
mSeed = ((mSeed << 2) ^ top ^ (x<<8) ^ (y)) % Long.MAX_VALUE;
}
diff --git a/base/console/src/com/netscape/admin/certsrv/wizard/WizardInfo.java b/base/console/src/com/netscape/admin/certsrv/wizard/WizardInfo.java
index 5085d43b4..21bb656ce 100644
--- a/base/console/src/com/netscape/admin/certsrv/wizard/WizardInfo.java
+++ b/base/console/src/com/netscape/admin/certsrv/wizard/WizardInfo.java
@@ -47,24 +47,24 @@ public class WizardInfo extends Properties {
public Object getEntry(String name) {
return get(name);
}
-
+
/**
* access method to NEXT-DONE function buttons
*/
public JButton getNextDoneButton() {
- return mBNext_Done;
+ return mBNext_Done;
}
-
+
/**
* access method to CANCEL function buttons
*/
public JButton getCancelButton() {
return mBCancel;
}
-
+
/**
* access method to BACK function buttons
- */
+ */
public JButton getBackButton() {
return mBBack;
}
@@ -72,14 +72,14 @@ public class WizardInfo extends Properties {
/*==========================================================
* package methods
*==========================================================*/
-
+
/**
* set function buttons. Called by the WizardWidget to set the
* button reference.
*/
void setButtons(JButton next, JButton cancel, JButton back ) {
mBNext_Done = next;
- mBCancel = cancel;
+ mBCancel = cancel;
mBBack = back;
}
}
diff --git a/base/console/src/com/netscape/admin/certsrv/wizard/WizardWidget.java b/base/console/src/com/netscape/admin/certsrv/wizard/WizardWidget.java
index c98d37b51..c58723f80 100644
--- a/base/console/src/com/netscape/admin/certsrv/wizard/WizardWidget.java
+++ b/base/console/src/com/netscape/admin/certsrv/wizard/WizardWidget.java
@@ -165,7 +165,7 @@ public class WizardWidget extends JDialog implements ActionListener
if (!validateWizardPanel()) {
return;
}
-
+
if (concludeWizardPanel()) {
if (mNextScreen.empty() || mBNext_Done.getText().equals("Done")) {
@@ -261,7 +261,7 @@ public class WizardWidget extends JDialog implements ActionListener
data.put(ConfigConstants.PR_CERT_INSTANCE_NAME,
consoleInfo.get(ConfigConstants.PR_CERT_INSTANCE_NAME));
data.put(ConfigConstants.PR_SERVER_ROOT,
- consoleInfo.get(ConfigConstants.PR_SERVER_ROOT));
+ consoleInfo.get(ConfigConstants.PR_SERVER_ROOT));
boolean ready = configCertCgi.configCert(data);
data.clear();
data = null;
@@ -296,10 +296,10 @@ public class WizardWidget extends JDialog implements ActionListener
//JButton[] buttons = {mBBack, mBNext_Done, mBCancel, mBHelp };
JButton[] buttons = {mBBack, mBNext_Done, mBCancel};
-
+
//pass the buttons reference to wizardinfo
mInfo.setButtons(mBNext_Done, mBCancel, mBBack);
-
+
return CMSAdminUtil.makeJButtonPanel( buttons, true);
}