gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-24 00:09:05 25 4
gpt4 key购买 nike

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

XObjectTable.getSelectedRows介绍

暂无

代码示例

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

public void actionPerformed(ActionEvent e) {
 int[] selection = table.getSelectedRows();
 CacheModel cacheModel;
 for (int i = 0; i < selection.length; i++) {
  cacheModel = (CacheModel) tableModel.getObjectAt(selection[i]);
  if (cacheModel != null) {
   targetList.add(cacheModel);
  }
  appContext.submit(this);
 }
}

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

public void actionPerformed(ActionEvent e) {
 int[] selection = cacheTable.getSelectedRows();
 for (int i = 0; i < selection.length; i++) {
  CacheStatisticsModel cacheStatisticsModel = (CacheStatisticsModel) cacheTableModel.getObjectAt(selection[i]);
  if (cacheStatisticsModel != null) {
   CacheModel cacheModel = cacheManagerModel.getCacheModel(cacheStatisticsModel.getCacheName());
   if (cacheModel != null) {
    targetList.add(cacheModel);
   }
  }
  appContext.submit(this);
 }
}

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

public void actionPerformed(ActionEvent e) {
 int[] selection = table.getSelectedRows();
 CacheConfigurationModel configModel;
 for (int i = 0; i < selection.length; i++) {
  configModel = (CacheConfigurationModel) tableModel.getObjectAt(selection[i]);
  CacheModel cacheModel = cacheManagerModel.getCacheModel(configModel.getCacheName());
  if (cacheModel != null) {
   targetList.add(cacheModel);
  }
  appContext.submit(this);
 }
}

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

public void valueChanged(ListSelectionEvent e) {
 if (e == null || !e.getValueIsAdjusting()) {
  nodeInstanceTableModel.clear();
  boolean showNodeInstancePanel = false;
  CacheManagerInstance cacheManagerInstance = null;
  int[] rows = nodeSummaryTable.getSelectedRows();
  if (rows.length == 1) {
   cacheManagerInstance = (CacheManagerInstance) nodeSummaryTableModel.getObjectAt(rows[0]);
   if (cacheManagerInstance.getInstanceCount() > 0) {
    for (Iterator<CacheModelInstance> iter = cacheManagerInstance.cacheModelInstanceIter(); iter.hasNext();) {
     nodeInstanceTableModel.add(iter.next());
    }
    nodeInstanceTableModel.fireTableDataChanged();
    String title = MessageFormat.format(bundle.getString("node.instance.detail"), cacheManagerModel.getName(),
                      cacheManagerInstance.getClient());
    nodeInstancePanel.setBorder(BorderFactory.createTitledBorder(title));
    showNodeInstancePanel = true;
   }
  }
  setNodeInstancePanelVisible(showNodeInstancePanel);
  updateActions(nodeSummaryTable);
 }
}

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

public void valueChanged(ListSelectionEvent e) {
 if (!e.getValueIsAdjusting()) {
  cacheInstanceTableModel.clear();
  boolean showCacheInstancePanel = false;
  CacheModel cacheModel = null;
  int[] rows = cacheSummaryTable.getSelectedRows();
  if (rows.length == 1) {
   cacheModel = (CacheModel) cacheSummaryTableModel.getObjectAt(rows[0]);
   for (CacheModelInstance cacheModelInstance : cacheModel.cacheModelInstances()) {
    cacheInstanceTableModel.add(cacheModelInstance);
   }
   cacheInstanceTableModel.fireTableDataChanged();
   String title = MessageFormat.format(bundle.getString("cache.detail"), cacheModel.getCacheName());
   cacheInstancePanel.setBorder(BorderFactory.createTitledBorder(title));
   showCacheInstancePanel = true;
  }
  setCacheInstancePanelVisible(showCacheInstancePanel);
  updateActions(cacheSummaryTable);
 }
}

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