/** * Stops/halts the progress display dialog and allows the user to interact with the application. */ private void stopProgressDialog() { runInDispatcherThreadImmediately(new Runnable() { public void run() { progressDialog.stopDialog(); } }); }
/** * Starts a progress display dialog that cannot be cancelled. While the dialog is running the user * cannot interact with the application. * * @param statusText * describes the status of a task in text meaningful to the user */ private void startProgressDialog(String statusText) { startProgressDialog(statusText, null, 0, 0, null, null); }
@Override public void mousePressed(MouseEvent e) { showContextMenu(e); }
public Properties toProperties() { Properties properties = new Properties(); properties.setProperty("upload-acl-permission", getUploadACLPermission()); properties.setProperty("upload-compression-active", isUploadCompressionActive() ? "true" : "false"); properties.setProperty("upload-encryption-active", isUploadEncryptionActive() ? "true" : "false"); properties.setProperty("upload-storage-class", getUploadStorageClass()); properties.setProperty("upload-encryption-algorithm", getEncryptionAlgorithm()); return properties; }
@Override public void updateBytesTransferred(long byteCount) { super.updateBytesTransferred(byteCount); String detailsText = formatBytesProgressWatcherDetails(this, false); int progressValue = (int)((double)getBytesTransferred() * 100 / getBytesToTransfer()); updateProgressDialog(statusText[0], detailsText, progressValue); } };
@Override public void updateBytesTransferred(long byteCount) { super.updateBytesTransferred(byteCount); String detailsText = formatBytesProgressWatcherDetails(this, true); int progressValue = (int)((double)getBytesTransferred() * 100 / getBytesToTransfer()); updateProgressDialog(statusText, detailsText, progressValue); } };
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 (currentSelectedBucket == null || getSelectedObjects().length == 0) { return; } objectActionMenu.show(invoker, xPos, yPos); }
public Properties toProperties() { Properties properties = new Properties(); properties.setProperty("upload-acl-permission", getUploadACLPermission()); properties.setProperty("upload-compression-active", isUploadCompressionActive() ? "true" : "false"); properties.setProperty("upload-encryption-active", isUploadEncryptionActive() ? "true" : "false"); properties.setProperty("upload-storage-class", getUploadStorageClass()); properties.setProperty("upload-encryption-algorithm", getEncryptionAlgorithm()); return properties; }
@Override public void updateBytesTransferred(long byteCount) { super.updateBytesTransferred(byteCount); String detailsText = formatBytesProgressWatcherDetails(this, false); int progressValue = (int)((double)getBytesTransferred() * 100 / getBytesToTransfer()); updateProgressDialog(statusText[0], detailsText, progressValue); } };
@Override public void updateBytesTransferred(long byteCount) { super.updateBytesTransferred(byteCount); String detailsText = formatBytesProgressWatcherDetails(this, true); int progressValue = (int)((double)getBytesTransferred() * 100 / getBytesToTransfer()); updateProgressDialog(statusText, detailsText, progressValue); } };
@Override public void mouseReleased(MouseEvent e) { showContextMenu(e); }
public void dragOver(DropTargetDragEvent dtde) { checkValidDrag(dtde); } public void dropActionChanged(DropTargetDragEvent dtde) {
/** * Stops/halts the progress display dialog and allows the user to interact with the application. */ private void stopProgressDialog() { runInDispatcherThreadImmediately(new Runnable() { public void run() { progressDialog.stopDialog(); } }); }
/** * Starts a progress display dialog that cannot be cancelled. While the dialog is running the user * cannot interact with the application. * * @param statusText * describes the status of a task in text meaningful to the user */ private void startProgressDialog(String statusText) { startProgressDialog(statusText, null, 0, 0, null, null); }
/** * 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 (currentSelectedBucket == null || getSelectedObjects().length == 0) { return; } objectActionMenu.show(invoker, xPos, yPos); }
@Override public void mousePressed(MouseEvent e) { showContextMenu(e); }
public void dragEnter(DropTargetDragEvent dtde) { if (checkValidDrag(dtde)) { SwingUtilities.invokeLater(new Runnable() { public void run() { objectsTable.requestFocusInWindow(); }; }); } } public void dragOver(DropTargetDragEvent dtde) {
@Override public void mouseReleased(MouseEvent e) { showContextMenu(e); }
public void dragEnter(DropTargetDragEvent dtde) { if (checkValidDrag(dtde)) { SwingUtilities.invokeLater(new Runnable() { public void run() { objectsTable.requestFocusInWindow(); }; }); } } public void dragOver(DropTargetDragEvent dtde) {