Print this page
4719 Common patchset for jdk1.7 support preparation


 239         }
 240 
 241         /*
 242          * Listener for all the buttons. The listener is shared for the sake
 243          * of reducing the number of overall listeners.
 244          * TBD: I18N the help
 245          */
 246         private class DCButtonListener implements ActionListener {
 247 
 248                 public void actionPerformed(ActionEvent e) {
 249                         if (e.getSource() == ok) {
 250                                 EncListDialog.this.encListDialogClose(true);
 251                         } else if (e.getSource() == cancel) {
 252                                 EncListDialog.this.encListDialogClose(false);
 253                         } else if (e.getSource() == clear) {
 254                                 for (int i = 0; i < cb.length; i++) {
 255                                         cb[i].setState(false);
 256                                 }
 257                         } else if (e.getSource() == help) {
 258                                 if (hd != null)
 259                                         hd.show();
 260                                 else {
 261                                         hd = new HelpDialog(
 262                                             EncListDialog.this.parent,
 263                                             getString(
 264                                             "Help for Encryption Type Dialog"),
 265                                             false);
 266                                         hd.setVisible(true);
 267                                         hd.setText(getString(hrb,
 268                                              "EncryptionTypeDialogHelp"));
 269                                 }
 270                         }
 271                 } // actionPerformed
 272         }
 273 
 274         /*
 275          * The string representation of the dialog box.
 276          * @return a String which contians the encryption type list
 277          */
 278         public String toString() {
 279 




 239         }
 240 
 241         /*
 242          * Listener for all the buttons. The listener is shared for the sake
 243          * of reducing the number of overall listeners.
 244          * TBD: I18N the help
 245          */
 246         private class DCButtonListener implements ActionListener {
 247 
 248                 public void actionPerformed(ActionEvent e) {
 249                         if (e.getSource() == ok) {
 250                                 EncListDialog.this.encListDialogClose(true);
 251                         } else if (e.getSource() == cancel) {
 252                                 EncListDialog.this.encListDialogClose(false);
 253                         } else if (e.getSource() == clear) {
 254                                 for (int i = 0; i < cb.length; i++) {
 255                                         cb[i].setState(false);
 256                                 }
 257                         } else if (e.getSource() == help) {
 258                                 if (hd != null)
 259                                         hd.setVisible(true);
 260                                 else {
 261                                         hd = new HelpDialog(
 262                                             EncListDialog.this.parent,
 263                                             getString(
 264                                             "Help for Encryption Type Dialog"),
 265                                             false);
 266                                         hd.setVisible(true);
 267                                         hd.setText(getString(hrb,
 268                                              "EncryptionTypeDialogHelp"));
 269                                 }
 270                         }
 271                 } // actionPerformed
 272         }
 273 
 274         /*
 275          * The string representation of the dialog box.
 276          * @return a String which contians the encryption type list
 277          */
 278         public String toString() {
 279