/** * Event handler for this dialog. */ public void actionPerformed(ActionEvent e) { if (e.getSource().equals(nextObjectButton)) { currentObjectIndex++; displayObjectProperties(); } else if (e.getSource().equals(previousObjectButton)) { currentObjectIndex--; displayObjectProperties(); } else if ("OK".equals(e.getActionCommand())) { this.setVisible(false); } }
/** * Event handler for this dialog. */ public void actionPerformed(ActionEvent e) { if (e.getSource().equals(nextObjectButton)) { currentObjectIndex++; displayObjectProperties(); } else if (e.getSource().equals(previousObjectButton)) { currentObjectIndex--; displayObjectProperties(); } else if ("OK".equals(e.getActionCommand())) { this.setVisible(false); } }
/** * Displays a dialog showing the detailed properties of a bucket, which will remain until the user * dismisses the dialog. * * @param owner * the Frame over which the dialog will be displayed and centered * @param bucket * the bucket whose details will be displayed * @param applicationProperties * property settings for this application */ public static void showDialog(Frame owner, S3Bucket bucket, Properties applicationProperties) { ItemPropertiesDialog dialog = new ItemPropertiesDialog(owner, "Bucket properties", false, applicationProperties, false); dialog.displayBucketProperties(bucket); dialog.setVisible(true); dialog.dispose(); }
/** * Displays a dialog showing the detailed properties of an object, which will remain until the user * dismisses the dialog. * * @param owner * the Frame over which the dialog will be displayed and centered * @param objects * the object whose details will be displayed * @param applicationProperties * property settings for this application * @param includeMetadata * display objects' metadata information in dialog. */ public static void showDialog(Frame owner, S3Object[] objects, Properties applicationProperties, boolean includeMetadata) { ItemPropertiesDialog dialog = new ItemPropertiesDialog(owner, "Object properties", true, applicationProperties,includeMetadata); dialog.displayObjectsProperties(objects); dialog.setVisible(true); dialog.dispose(); }
/** * Displays a dialog showing the detailed properties of a bucket, which will remain until the user * dismisses the dialog. * * @param owner * the Frame over which the dialog will be displayed and centered * @param bucket * the bucket whose details will be displayed * @param applicationProperties * property settings for this application */ public static void showDialog(Frame owner, S3Bucket bucket, Properties applicationProperties) { ItemPropertiesDialog dialog = new ItemPropertiesDialog(owner, "Bucket properties", false, applicationProperties, false); dialog.displayBucketProperties(bucket); dialog.setVisible(true); dialog.dispose(); }
/** * Displays a dialog showing the detailed properties of an object, which will remain until the user * dismisses the dialog. * * @param owner * the Frame over which the dialog will be displayed and centered * @param objects * the object whose details will be displayed * @param applicationProperties * property settings for this application * @param includeMetadata * display objects' metadata information in dialog. */ public static void showDialog(Frame owner, S3Object[] objects, Properties applicationProperties, boolean includeMetadata) { ItemPropertiesDialog dialog = new ItemPropertiesDialog(owner, "Object properties", true, applicationProperties,includeMetadata); dialog.displayObjectsProperties(objects); dialog.setVisible(true); dialog.dispose(); }