public ToggleAclDialog(Frame ownerFrame, boolean isPublicObject, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties) { super(ownerFrame, "Toggle privacy settings", true); this.hyperlinkListener = hyperlinkListener; this.applicationProperties = applicationProperties; this.isPublicObject = isPublicObject; initGui(); }
public void addObjects(S3Object[] objects) { for (int i = 0; i < objects.length; i++) { addObject(objects[i]); } }
@Override public void mouseReleased(MouseEvent e) { showContextMenu(e); }
public void run() { S3Object[] objects = event.getObjectsWithUpdatedACL(); for (int i = 0; i < objects.length; i++) { String aclStatus = getAclDescription(objects[i].getAcl()); objectTableModel.updateObjectAclStatus(objects[i], aclStatus); objectSelectedAction(); } } });
/** * 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()); }
public void removeAllObjects() { int rowCount = this.getRowCount(); for (int i = 0; i < rowCount; i++) { this.removeRow(0); } objectList.clear(); }
public void dragOver(DropTargetDragEvent dtde) { checkValidDrag(dtde); } public void dropActionChanged(DropTargetDragEvent dtde) {
/** * 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); }
public void run() { S3Object[] objectsWithAcl = event.getObjectsWithACL(); for (int i = 0; i < objectsWithAcl.length; i++) { String aclStatus = getAclDescription(objectsWithAcl[i].getAcl()); objectTableModel.updateObjectAclStatus(objectsWithAcl[i], aclStatus); } } });
/** * 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()); }
public ToggleAclDialog(JDialog ownerDialog, boolean isPublicObject, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties) { super(ownerDialog, "Change privacy", true); this.hyperlinkListener = hyperlinkListener; this.applicationProperties = applicationProperties; this.isPublicObject = isPublicObject; initGui(); }
@Override public void mouseReleased(MouseEvent e) { showContextMenu(e); }
public void addObjects(S3Object[] objects) { for (int i = 0; i < objects.length; i++) { addObject(objects[i]); } }
public void dragOver(DropTargetDragEvent dtde) { checkValidDrag(dtde); } public void dropActionChanged(DropTargetDragEvent dtde) {
public void run() { S3Object[] objects = event.getObjectsWithUpdatedACL(); for (int i = 0; i < objects.length; i++) { String aclStatus = getAclDescription(objects[i].getAcl()); objectTableModel.updateObjectAclStatus(objects[i], aclStatus); objectSelectedAction(); } } });
public ToggleAclDialog(JDialog ownerDialog, boolean isPublicObject, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties) { super(ownerDialog, "Change privacy", true); this.hyperlinkListener = hyperlinkListener; this.applicationProperties = applicationProperties; this.isPublicObject = isPublicObject; initGui(); }
@Override public void mousePressed(MouseEvent e) { showContextMenu(e); }
public void run() { S3Object[] objectsWithAcl = event.getObjectsWithACL(); for (int i = 0; i < objectsWithAcl.length; i++) { String aclStatus = getAclDescription(objectsWithAcl[i].getAcl()); objectTableModel.updateObjectAclStatus(objectsWithAcl[i], aclStatus); } } });
public ToggleAclDialog(Frame ownerFrame, boolean isPublicObject, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties) { super(ownerFrame, "Toggle privacy settings", true); this.hyperlinkListener = hyperlinkListener; this.applicationProperties = applicationProperties; this.isPublicObject = isPublicObject; initGui(); }
@Override public void mousePressed(MouseEvent e) { showContextMenu(e); }