/** * Displays the dialog box and waits until the user applies their changes or cancels the dialog. * <p> * If the user elects to apply their changes, this method returns the updated ACL information. * If the user cancels the dialog, this method returns null. * * @param owner the Frame within which this dialog will be displayed and centered * @param s3Items an array of {@link S3Bucket} or {@link S3Object}s to which ACL change will be applied * @param accessControlList the original ACL settings for the S3Bucket or S3Objects provided * @return the update ACL settings if the user applies changes, null if the dialog is cancelled. */ public static AccessControlList showDialog(Frame owner, BaseStorageItem[] s3Items, AccessControlList accessControlList, HyperlinkActivatedListener hyperlinkListener) { if (accessControlDialog == null) { accessControlDialog = new AccessControlDialog(owner, hyperlinkListener); } accessControlDialog.initData(s3Items, accessControlList); accessControlDialog.setVisible(true); return accessControlDialog.getUpdatedAccessControlList(); }
/** * Displays the dialog box and waits until the user applies their changes or cancels the dialog. * <p> * If the user elects to apply their changes, this method returns the updated ACL information. * If the user cancels the dialog, this method returns null. * * @param owner the Frame within which this dialog will be displayed and centered * @param s3Items an array of {@link S3Bucket} or {@link S3Object}s to which ACL change will be applied * @param accessControlList the original ACL settings for the S3Bucket or S3Objects provided * @return the update ACL settings if the user applies changes, null if the dialog is cancelled. */ public static AccessControlList showDialog(Frame owner, BaseStorageItem[] s3Items, AccessControlList accessControlList, HyperlinkActivatedListener hyperlinkListener) { if (accessControlDialog == null) { accessControlDialog = new AccessControlDialog(owner, hyperlinkListener); } accessControlDialog.initData(s3Items, accessControlList); accessControlDialog.setVisible(true); return accessControlDialog.getUpdatedAccessControlList(); }