diff options
Diffstat (limited to 'base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java')
-rw-r--r-- | base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java index c7d28dd07..2e1f5e27f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java @@ -44,19 +44,19 @@ public class ProfileImplTab extends CMSBaseUGTab { private static final String IMPL_TYPE = ProfileImplDataModel.IMPL_TYPE; private static final String IMPL_CLASS = ProfileImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = ProfileImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "PROFILEIMPL"; private static final String DIALOG_PREFIX = "PROFILEREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected ProfileImplDataModel mDataModel; //table model protected ProfileRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String HELPINDEX = "configuration-certificateprofiles"; @@ -107,13 +107,13 @@ public class ProfileImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -125,7 +125,7 @@ public class ProfileImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -134,8 +134,8 @@ public class ProfileImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -219,7 +219,7 @@ public class ProfileImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -228,24 +228,24 @@ public class ProfileImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response = new NameValuePairs(); NameValuePairs response1; @@ -342,18 +342,18 @@ public class ProfileImplTab extends CMSBaseUGTab { obj.put(IMPL_DESC, value.substring(x + 1, x_end)); data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } |