nu.zoom.swing.desktop.Workbench.stopWorkIndicator()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中nu.zoom.swing.desktop.Workbench.stopWorkIndicator()方法的一些代码示例,展示了Workbench.stopWorkIndicator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.stopWorkIndicator()方法的具体详情如下:
包路径:nu.zoom.swing.desktop.Workbench
类名称:Workbench
方法名:stopWorkIndicator

Workbench.stopWorkIndicator介绍

暂无

代码示例

代码示例来源:origin: nu.zoom/eon2

public synchronized void operationFinished(OperationRunner operation) {
  currentOperations.remove(operation);
  workbench.stopWorkIndicator();
}

代码示例来源:origin: nu.zoom/eon2

public void run() {
    workbench.stopWorkIndicator();
    componentFactory.showNewConnection(iCtx, connection);
  }
});

代码示例来源:origin: nu.zoom/eon2

@Override
  public void run() {
    lookupProgressBar.setIndeterminate(false);
    workbench.stopWorkIndicator();
    workbench.setStatusbarMessage(canonicalHostName);
    if ((domainNameField.getText() != null) && (domainNameField.getText().length() < 1)) {
      domainNameField.setText(canonicalHostName);
    }
  }
});

代码示例来源:origin: nu.zoom/eon2

@Override
  public void run() {
    lookupProgressBar.setIndeterminate(false);
    workbench.stopWorkIndicator();
    if (result.size() < 1) {
      workbench.setStatusbarMessage(messages.format("connection.dns.noresults", lookupName));
    } else {
      Set<Entry<SRVRecord, List<InetAddress>>> resultSet =
          result.entrySet();
      for (Entry<SRVRecord, List<InetAddress>> entry : resultSet) {
        SRVRecord srv = entry.getKey();
        resultTableModel.addEntry(srv.getHostname());
        List<InetAddress> addresses = entry.getValue();
        String addressesString = "";
        for (InetAddress address : addresses) {
          addressesString += " " + address.getHostAddress();
        }
        resultTableModel.addEntry(addressesString);
        resultTableModel.addEntry("" + srv.getPort());
        resultTableModel.addEntry("" + srv.getPriority());
        resultTableModel.addEntry("" + srv.getWeight());
      }
    }
    lookupButton.setEnabled(true);
  }
});

代码示例来源: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);
    }
  }
}

相关文章