gpt4 book ai didi

com.tc.admin.common.XButton.setText()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 05:20:40 25 4
gpt4 key购买 nike

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

XButton.setText介绍

暂无

代码示例

代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui

private ClearAllStatsWorker() {
 super(new Callable<Void>() {
  public Void call() throws Exception {
   clearAllStats();
   return null;
  }
 });
 clearAllStatsButton.setText(bundle.getString("wait"));
 clearAllStatsButton.setEnabled(false);
}

代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2

private void updateQueryStats() {
 refreshQueriesButton.setText(BUSY);
 refreshQueriesButton.setEnabled(false);
 appContext.execute(createQueryStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui

private void updateQueryStats() {
 refreshQueriesButton.setText(BUSY);
 refreshQueriesButton.setEnabled(false);
 appContext.execute(createQueryStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui

private void updateQueryStats() {
 refreshQueriesButton.setText(BUSY);
 refreshQueriesButton.setEnabled(false);
 appContext.execute(createQueryStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui

private void updateCollectionStats() {
 refreshCollectionsButton.setText(BUSY);
 refreshCollectionsButton.setEnabled(false);
 appContext.execute(createCollectionStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui

protected void updateEntityStats() {
 refreshEntitiesButton.setText(BUSY);
 refreshEntitiesButton.setEnabled(false);
 appContext.execute(createEntityStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2

protected void updateRegionStats() {
 refreshRegionsButton.setText(BUSY);
 refreshRegionsButton.setEnabled(false);
 appContext.execute(createRegionStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2

protected void updateEntityStats() {
 refreshEntitiesButton.setText(BUSY);
 refreshEntitiesButton.setEnabled(false);
 appContext.execute(createEntityStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2

private void updateCollectionStats() {
 refreshCollectionsButton.setText(BUSY);
 refreshCollectionsButton.setEnabled(false);
 appContext.execute(createCollectionStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui

protected void updateStats() {
 refreshButton.setText(BUSY);
 refreshButton.setEnabled(false);
 appContext.execute(createTableModelWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui

private void updateCollectionStats() {
 refreshCollectionsButton.setText(BUSY);
 refreshCollectionsButton.setEnabled(false);
 appContext.execute(createCollectionStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui

protected void updateEntityStats() {
 refreshEntitiesButton.setText(BUSY);
 refreshEntitiesButton.setEnabled(false);
 appContext.execute(createEntityStatsWorker());
}

代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2

@Override
 protected void finished() {
  if (tornDown.get()) { return; }
  Exception e = getException();
  if (e != null) {
   appContext.log(ExceptionHelper.getRootCause(e));
  } else {
   Map<String, EntityStats> result = getResult();
   entityTableModel.clear();
   if (result != null) {
    Iterator<String> iter = result.keySet().iterator();
    while (iter.hasNext()) {
     EntityStats entityStats = result.get(iter.next());
     if (entityStats != null) {
      entityTableModel.add(entityStats);
     }
    }
    sortTable(entityTable);
   }
  }
  refreshEntitiesButton.setText(appContext.getString("refresh"));
  refreshEntitiesButton.setEnabled(true);
 }
}

代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2

@Override
 protected void finished() {
  if (tornDown.get()) { return; }
  Exception e = getException();
  if (e != null) {
   appContext.log(ExceptionHelper.getRootCause(e));
  } else {
   collectionTableModel.clear();
   Map<String, CollectionStats> result = getResult();
   if (result != null) {
    Iterator<String> iter = result.keySet().iterator();
    while (iter.hasNext()) {
     CollectionStats collectionStats = result.get(iter.next());
     if (collectionStats != null) {
      collectionTableModel.add(collectionStats);
     }
    }
    sortTable(collectionTable);
   }
  }
  refreshCollectionsButton.setText(appContext.getString("refresh"));
  refreshCollectionsButton.setEnabled(true);
 }
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui

@Override
 protected void finished() {
  if (tornDown.get()) { return; }
  Exception e = getException();
  if (e != null) {
   appContext.log(ExceptionHelper.getRootCause(e));
  } else {
   collectionTableModel.clear();
   Map<String, CollectionStats> result = getResult();
   if (result != null) {
    Iterator<String> iter = result.keySet().iterator();
    while (iter.hasNext()) {
     CollectionStats collectionStats = result.get(iter.next());
     if (collectionStats != null) {
      collectionTableModel.add(collectionStats);
     }
    }
    sortTable(collectionTable);
   }
  }
  refreshCollectionsButton.setText(appContext.getString("refresh"));
  refreshCollectionsButton.setEnabled(true);
 }
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui

@Override
 protected void finished() {
  if (tornDown.get()) { return; }
  Exception e = getException();
  if (e != null) {
   appContext.log(ExceptionHelper.getRootCause(e));
  } else {
   Map<String, EntityStats> result = getResult();
   entityTableModel.clear();
   if (result != null) {
    Iterator<String> iter = result.keySet().iterator();
    while (iter.hasNext()) {
     EntityStats entityStats = result.get(iter.next());
     if (entityStats != null) {
      entityTableModel.add(entityStats);
     }
    }
    sortTable(entityTable);
   }
  }
  refreshEntitiesButton.setText(appContext.getString("refresh"));
  refreshEntitiesButton.setEnabled(true);
 }
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui

@Override
 protected void finished() {
  if (tornDown.get()) { return; }
  Exception e = getException();
  if (e != null) {
   appContext.log(ExceptionHelper.getRootCause(e));
  } else {
   collectionTableModel.clear();
   Map<String, CollectionStats> result = getResult();
   if (result != null) {
    Iterator<String> iter = result.keySet().iterator();
    while (iter.hasNext()) {
     CollectionStats collectionStats = result.get(iter.next());
     if (collectionStats != null) {
      collectionTableModel.add(collectionStats);
     }
    }
    sortTable(collectionTable);
   }
  }
  refreshCollectionsButton.setText(appContext.getString("refresh"));
  refreshCollectionsButton.setEnabled(true);
 }
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui

@Override
 protected void finished() {
  if (tornDown.get()) { return; }
  Exception e = getException();
  if (e != null) {
   Throwable rootCause = ExceptionHelper.getRootCause(e);
   if (!(rootCause instanceof IOException)) {
    appContext.log(e);
   }
  } else {
   updateStats();
  }
  clearAllStatsButton.setText(bundle.getString("clear.all.stats"));
  clearAllStatsButton.setSelected(false);
  clearAllStatsButton.setEnabled(true);
 }
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui

@Override
 protected void finished() {
  if (tornDown.get()) { return; }
  Exception e = getException();
  if (e != null) {
   appContext.log(ExceptionHelper.getRootCause(e));
  } else {
   cacheTable.setModel(getResult());
   sortTable(cacheTable);
   cacheTable.getColumnModel().getColumn(1).setCellRenderer(new PercentRenderer());
  }
  refreshButton.setText(appContext.getString("refresh"));
  refreshButton.setEnabled(true);
 }
}

代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui

private void queryClearAllStats() {
 String currLabel = clearAllStatsButton.getText();
 XLabel msg = new XLabel(bundle.getString("clear.all.counters.confirm"));
 Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, this);
 int answer = JOptionPane.showConfirmDialog(this, msg, frame.getTitle(), JOptionPane.OK_CANCEL_OPTION);
 if (answer == JOptionPane.OK_OPTION) {
  appContext.submit(new ClearAllStatsWorker());
 } else {
  clearAllStatsButton.setText(currLabel);
  clearAllStatsButton.setSelected(false);
  clearAllStatsButton.setEnabled(true);
 }
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com