/** * Displays object-specific actions in a popup menu. * @param invoker the component near which the popup menu will be displayed * @param xPos the mouse's horizontal co-ordinate when the popup menu was invoked * @param yPos the mouse's vertical co-ordinate when the popup menu was invoked */ private void showObjectPopupMenu(JComponent invoker, int xPos, int yPos) { if (getSelectedObjects().length == 0) { return; } objectActionMenu.show(invoker, xPos, yPos); }
/** * Displays object-specific actions in a popup menu. * @param invoker the component near which the popup menu will be displayed * @param xPos the mouse's horizontal co-ordinate when the popup menu was invoked * @param yPos the mouse's vertical co-ordinate when the popup menu was invoked */ private void showObjectPopupMenu(JComponent invoker, int xPos, int yPos) { if (getSelectedObjects().length == 0) { return; } objectActionMenu.show(invoker, xPos, yPos); }
/** * Displays the currently selected object's properties in the dialog {@link ItemPropertiesDialog}. * <p> * As detailed information about the object may not yet be available, this method works * indirectly via the {@link #retrieveObjectsDetails} method. The <code>retrieveObjectsDetails</code> * method retrieves all the details for the currently selected objects, and once they are available * knows to display the <code>PropertiesDialog</code> as the {@link #isViewingObjectProperties} flag * is set. */ private void listObjectProperties() { isViewingObjectProperties = true; retrieveObjectsDetails(getSelectedObjects()); }
/** * Displays the currently selected object's properties in the dialog {@link ItemPropertiesDialog}. * <p> * As detailed information about the object may not yet be available, this method works * indirectly via the {@link #retrieveObjectsDetails} method. The <code>retrieveObjectsDetails</code> * method retrieves all the details for the currently selected objects, and once they are available * knows to display the <code>PropertiesDialog</code> as the {@link #isViewingObjectProperties} flag * is set. */ private void listObjectProperties() { isViewingObjectProperties = true; retrieveObjectsDetails(getSelectedObjects()); }
/** * Actions performed when an object is selected in the objects list table. */ private void objectSelectedAction() { S3Object[] selectedObjects = getSelectedObjects(); int count = selectedObjects.length; togglePublicMenuItem.setEnabled( userCanACL && count == 1); downloadObjectMenuItem.setEnabled( userCanDownload && count > 0); deleteObjectMenuItem.setEnabled( userCanDelete && count > 0); viewObjectPropertiesMenuItem.setEnabled(count > 0); generatePublicGetUrl.setEnabled( count == 1 && ACL_PUBLIC_DESCRIPTION.equals( objectTableModel.getObjectAclStatus(selectedObjects[0]))); }
/** * Actions performed when an object is selected in the objects list table. */ private void objectSelectedAction() { S3Object[] selectedObjects = getSelectedObjects(); int count = selectedObjects.length; togglePublicMenuItem.setEnabled( userCanACL && count == 1); downloadObjectMenuItem.setEnabled( userCanDownload && count > 0); deleteObjectMenuItem.setEnabled( userCanDelete && count > 0); viewObjectPropertiesMenuItem.setEnabled(count > 0); generatePublicGetUrl.setEnabled( count == 1 && ACL_PUBLIC_DESCRIPTION.equals( objectTableModel.getObjectAclStatus(selectedObjects[0]))); }
private void deleteSelectedObjects() { final S3Object[] objects = getSelectedObjects();
private void deleteSelectedObjects() { final S3Object[] objects = getSelectedObjects();
.populateObjectMap("", getSelectedObjects());
.populateObjectMap("", getSelectedObjects());
private void generatePublicGetUrl() { final S3Object[] objects = getSelectedObjects();
private void generatePublicGetUrl() { final S3Object[] objects = getSelectedObjects();