@Override public void run() { statusSpinner.startAnimation(null); } });
@Override public void run() { statusIndicator.startAnimation(null); } });
@Override public void run() { progressBar.setHidden(false); progressBar.setIndeterminate(true); progressBar.startAnimation(null); statusIconView.setImage(YELLOW_ICON); setProgress(StringUtils.EMPTY); setStatus(StringUtils.EMPTY); } });
@Action public void sendButtonClicked(final NSButton sender) { final String command = this.inputField.stringValue(); if(StringUtils.isNotBlank(command)) { progress.startAnimation(null); sender.setEnabled(false); parent.background(new RegistryBackgroundAction<Void>(this, session) { @Override public boolean alert(final BackgroundException e) { return false; } @Override public Void run(final Session<?> session) throws BackgroundException { final Command feature = session.getFeature(Command.class); feature.send(command, parent, CommandController.this); return null; } @Override public void cleanup() { super.cleanup(); progress.stopAnimation(null); sender.setEnabled(true); } @Override public String getActivity() { return command; } }); } }
this.loadBundle(); if(this.task.isRunning()) { progress.startAnimation(null);
/** * @param stop Enable controls and stop progress spinner * @return True if progress animation has started and settings are toggled */ private boolean toggleSizeSettings(final boolean stop) { this.window().endEditingFor(null); sizeButton.setEnabled(false); for(Path next : files) { if(next.isDirectory()) { sizeButton.setEnabled(stop); break; } } if(stop) { sizeProgress.stopAnimation(null); } else { sizeProgress.startAnimation(null); } return true; }
/** * Toggle settings before and after update * * @param stop Enable controls and stop progress spinner * @return True if progress animation has started and settings are toggled */ private boolean toggleAclSettings(final boolean stop) { this.window().endEditingFor(null); final Credentials credentials = session.getHost().getCredentials(); boolean enable = !credentials.isAnonymousLogin() && session.getFeature(AclPermission.class) != null; aclTable.setEnabled(stop && enable); aclAddButton.setEnabled(stop && enable); boolean selection = aclTable.selectedRowIndexes().count().intValue() > 0; aclRemoveButton.setEnabled(stop && enable && selection); if(stop) { aclProgress.stopAnimation(null); } else if(enable) { aclProgress.startAnimation(null); } return enable; }
/** * Toggle settings before and after update * * @param stop Enable controls and stop progress spinner * @return True if progress animation has started and settings are toggled */ private boolean toggleMetadataSettings(final boolean stop) { this.window().endEditingFor(null); final Credentials credentials = session.getHost().getCredentials(); boolean enable = !credentials.isAnonymousLogin() && session.getFeature(Metadata.class) != null; metadataTable.setEnabled(stop && enable); metadataAddButton.setEnabled(stop && enable); boolean selection = metadataTable.selectedRowIndexes().count().intValue() > 0; metadataRemoveButton.setEnabled(stop && enable && selection); if(stop) { metadataProgress.stopAnimation(null); } else if(enable) { metadataProgress.startAnimation(null); } return enable; }
@Override public void awakeFromNib() { this.toolbar = NSToolbar.toolbarWithIdentifier("Transfer Toolbar"); this.toolbar.setDelegate(this.id()); this.toolbar.setAllowsUserCustomization(true); this.toolbar.setAutosavesConfiguration(true); this.toolbar.setDisplayMode(NSToolbar.NSToolbarDisplayModeLabelOnly); this.window.setToolbar(toolbar); if(!collection.isLoaded()) { transferSpinner.startAnimation(null); } collection.addListener(new AbstractCollectionListener<Transfer>() { @Override public void collectionLoaded() { invoke(new WindowMainAction(TransferController.this) { @Override public void run() { transferSpinner.stopAnimation(null); transferTable.setGridStyleMask(NSTableView.NSTableViewSolidHorizontalGridLineMask); } }); } }); if(collection.isLoaded()) { transferSpinner.stopAnimation(null); transferTable.setGridStyleMask(NSTableView.NSTableViewSolidHorizontalGridLineMask); } super.awakeFromNib(); }
permissionProgress.startAnimation(null);
distributionProgress.startAnimation(null);
browserSpinner.startAnimation(null); source.addListener(new AbstractCollectionListener<Host>() { @Override
s3Progress.startAnimation(null);