本文整理了Java中nu.zoom.swing.desktop.Workbench.startWorkIndicator()
方法的一些代码示例,展示了Workbench.startWorkIndicator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.startWorkIndicator()
方法的具体详情如下:
包路径:nu.zoom.swing.desktop.Workbench
类名称:Workbench
方法名:startWorkIndicator
暂无
代码示例来源:origin: nu.zoom/eon2
public synchronized void operationStarting(OperationRunner operation) {
if (operation == null) {
throw new IllegalArgumentException("Operation can not be null");
}
workbench.startWorkIndicator();
currentOperations.add(operation);
}
代码示例来源:origin: nu.zoom/eon2
@Override
public void run() {
lookupProgressBar.setIndeterminate(true);
workbench.startWorkIndicator();
workbench.setStatusbarMessage(messages.getMessage("connection.dns.canonicalhostname"));
}
});
代码示例来源:origin: nu.zoom/eon2
private void lookupButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lookupButtonActionPerformed
lookupProgressBar.setIndeterminate(true);
workbench.startWorkIndicator();
String lookup = "_ldap._tcp." + domainNameField.getText();
String message = messages.format("connection.dns.lookup", lookup);
workbench.setStatusbarMessage(message);
lookupButton.setEnabled(false);
resultTableModel.clear();
operationManager.runOperation(new FindADServersOperation(lookup));
}//GEN-LAST:event_lookupButtonActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
代码示例来源:origin: nu.zoom/svansprogram
public void importManager() {
if (this.manager == null) {
openManager();
} else {
final FileChooser fileChooser = fileChooserFactory.getFileChooser(PreferencesUtil.MANAGER_FILECHOOSER_PREFS_KEY);
File openFile = fileChooser.openFile();
if (openFile != null) {
StyleRulesManager importFrom = readManager(openFile);
if (importFrom != null) {
workbench.startWorkIndicator();
this.manager.importManager(importFrom);
workbench.stopWorkIndicator();
}
}
}
}
代码示例来源:origin: nu.zoom/eon2
/**
* Do not call this method directly. This method is called by the operation
* manager.
*
* @see nu.zoom.ldap.eon.operation.OperationManager#runOperation(Operation)
*
*/
public void execute() {
try {
workbench.startWorkIndicator();
workbench.setStatusbarMessage(messages.format(
"connection.connecting", connection.getDescription()));
final InitialLdapContext iCtx = connection.getConnection();
if (iCtx != null) {
EventQueue.invokeLater(new Runnable() {
public void run() {
workbench.stopWorkIndicator();
componentFactory.showNewConnection(iCtx, connection);
}
});
}
} catch (BackendException e) {
workbench.stopWorkIndicator();
workbench.getErrorReporter().reportError(
messages.format("connection.connect.error", connection.getDescription()), e);
}
}
}
代码示例来源:origin: nu.zoom/eon2
public void execute(DirectoryTreeObject target) throws BackendException {
try {
workbench.startWorkIndicator();
Attributes attributes = sourceObject.getConnection().getAttributes(
sourceObject.getDistinguishedName());
Name sourceName = sourceObject.getDistinguishedName();
Name sourceRDN = sourceName.getSuffix(sourceName.size() - 1);
Name newName = ((Name) target.getDistinguishedName().clone())
.addAll(sourceRDN);
workbench.setStatusbarMessage(messages.format(
"clipboard.object.cut",
sourceObject.getDistinguishedName(),
newName.toString()));
target.getConnection().createSubcontext(newName, attributes);
eventRegistry.fireStructureChanged(target.getTree()
.getConnectionInformation().getGUID(), newName);
workbench.stopWorkIndicator();
} catch (NamingException e) {
workbench.stopWorkIndicator();
workbench.getErrorReporter().reportError(
messages.getMessage("error.tree.copy"),
e);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!