gpt4 book ai didi

com.tc.admin.common.XObjectTable类的使用及代码示例

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

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

XObjectTable介绍

暂无

代码示例

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

public void setup(ApplicationContext appContext, CacheManagerModel cacheManagerModel) {
 this.appContext = appContext;
 this.cacheManagerModel = cacheManagerModel;
 add(createTopPanel(), BorderLayout.NORTH);
 add(new XScrollPane(table = new XObjectTable()), BorderLayout.CENTER);
 table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
 table.setComponentPopupMenu(createPopupMenu());
 table.getSelectionModel().addListSelectionListener(this);
 table.setDefaultRenderer(Boolean.class, new TextualBooleanRenderer());
 appContext.submit(new CacheConfigurationTableModelGetter());
}

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

protected void setCacheTableModel(CacheManagerTableModel tableModel) {
 cacheTable.setModel(cacheTableModel = tableModel);
 sortTable(cacheTable);
 cacheTable.getColumnModel().getColumn(1).setCellRenderer(new PercentRenderer());
}

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

private void sortTable(final XObjectTable table) {
 if (sortColumn == -1) {
  sortColumn = table.getSortColumn();
  sortDirection = table.getSortDirection();
 }
 table.setSortColumn(sortColumn);
 table.setSortDirection(sortDirection);
 table.sort();
 ((XObjectTableModel) table.getModel()).fireTableDataChanged();
}

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

private void sortTable(final XObjectTable table) {
 table.sort();
 ((XObjectTableModel) table.getModel()).fireTableDataChanged();
}

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

public void setup(final ApplicationContext appContext, final IClusterModel clusterModel, final String persistenceUnit) {
 this.appContext = appContext;
 this.clusterModel = clusterModel;
 this.persistenceUnit = persistenceUnit;
 add(createTopPanel(), BorderLayout.NORTH);
 table = new XObjectTable(tableModel = new RegionInfoTableModel());
 table.getColumnModel().getColumn(1).setCellRenderer(new CachedColumnRenderer());
 table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
 table.getSelectionModel().addListSelectionListener(this);
 detailPanel = new CacheRegionDetailPanel(appContext);
 add(new XScrollPane(table), BorderLayout.CENTER);
 appContext.submit(new RegionInfoGetter());
}

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

private XContainer createCacheSummaryPanel() {
 final XContainer panel = new XContainer(new BorderLayout());
 panel.setBorder(BorderFactory.createTitledBorder(bundle.getString("cache.summary")));
 cacheSummaryTableModel = new CacheSummaryTableModel();
 cacheSummaryTable = new XObjectTable(cacheSummaryTableModel);
 cacheSummaryTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
 cacheSummaryTable.getSelectionModel().addListSelectionListener(this);
 panel.add(createSelectAllPanel(cacheSummaryTable), BorderLayout.SOUTH);
 panel.add(new XScrollPane(cacheSummaryTable));
 cacheSummaryTable.setDefaultRenderer(Boolean.class, new BooleanRenderer());
 JPopupMenu popup = topologyPanel.createPopup();
 cacheSummaryTable.setPopupMenu(popup);
 popup.addPopupMenuListener(new PopupMenuAdapter() {
  @Override
  public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
   updateActions(cacheSummaryTable);
  }
 });
 return panel;
}

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

private XContainer createCacheInstancePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 cacheInstanceTableModel = new CacheInstanceTableModel();
 cacheInstanceTable = new XObjectTable(cacheInstanceTableModel);
 panel.add(createSelectAllPanel(cacheInstanceTable), BorderLayout.SOUTH);
 panel.add(new XScrollPane(cacheInstanceTable));
 cacheInstanceTable.setDefaultRenderer(Boolean.class, new BooleanRenderer());
 cacheInstanceTable.getColumnModel().getColumn(3).setCellRenderer(new ModeRenderer());
 JPopupMenu popup = topologyPanel.createPopup();
 cacheInstanceTable.setPopupMenu(popup);
 popup.addPopupMenuListener(new PopupMenuAdapter() {
  @Override
  public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
   updateActions(cacheInstanceTable);
  }
 });
 return panel;
}

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

cacheTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
cacheTable.addHierarchyListener(this);
cacheTable.getSelectionModel().addListSelectionListener(this);
cacheTable.setPopupMenu(createPopupMenu());
panel.add(new XScrollPane(cacheTable), BorderLayout.CENTER);

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

regionTable.getColumnModel().getColumn(1).setCellRenderer(new PercentRenderer());
regionTable.addHierarchyListener(this);
panel.add(new XScrollPane(regionTable), BorderLayout.CENTER);

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

cacheTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
cacheTable.addHierarchyListener(this);
cacheTable.getSelectionModel().addListSelectionListener(this);
panel.add(new XScrollPane(cacheTable), BorderLayout.CENTER);

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

public void handleNotification(Notification notif, Object handBack) {
 if (tornDown.get()) { return; }
 String type = notif.getType();
 if (HibernateStatsMBean.CACHE_STATISTICS_RESET.equals(type)) {
  if (regionTable.isShowing()) {
   updateRegionStats();
  }
 }
}

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

public void setup(ApplicationContext appContext, SchedulerModel schedulerModel) {
 this.schedulerModel = schedulerModel;
 this.schedulerModel.addSchedulerModelListener(new MySchedulerModelListener());
 super.setup(appContext, schedulerModel.getClusterModel());
 jobDetailTree.setup(schedulerModel);
 jobDetailTreeModel = (JobDetailTreeModel) jobDetailTree.getModel();
 triggerTree.setup(schedulerModel);
 triggerTreeModel = (TriggerTreeModel) triggerTree.getModel();
 instanceTable.setModel(instanceTableModel = new JobExecutionContextTableModel());
 instanceTable.setDefaultRenderer(Date.class, DATE_RENDERER);
 instanceTable.getColumnModel().getColumn(7).setCellRenderer(new RuntimeRenderer());
 revalidate();
 repaint();
}

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

entityTable.addHierarchyListener(this);
panel.add(new XScrollPane(entityTable), BorderLayout.CENTER);

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

protected JComponent createTablePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 cacheTable = new XObjectTable(cacheTableModel = new CacheManagerTableModel());
 cacheTable.addHierarchyListener(this);
 panel.add(new XScrollPane(cacheTable), BorderLayout.CENTER);
 XContainer bottomPanel = new XContainer(new GridBagLayout());
 GridBagConstraints gbc = new GridBagConstraints();
 gbc.gridx = gbc.gridy = 0;
 gbc.insets = new Insets(3, 3, 3, 3);
 bottomPanel.add(refreshButton = new XButton(appContext.getString("refresh")), gbc);
 refreshButton.addActionListener(new ActionListener() {
  public void actionPerformed(final ActionEvent ae) {
   updateStats();
  }
 });
 gbc.gridx++;
 bottomPanel.add(clearAllStatsButton = new XButton(bundle.getString("clear.all.stats")), gbc);
 clearAllStatsButton.addActionListener(new ActionListener() {
  public void actionPerformed(final ActionEvent ae) {
   queryClearAllStats();
  }
 });
 panel.add(bottomPanel, BorderLayout.SOUTH);
 return panel;
}

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

@Override
protected void setCacheTableModel(CacheManagerTableModel tableModel) {
 super.setCacheTableModel(tableModel);
 cacheTable.getColumnModel().getColumn(8).setCellRenderer(new DashRenderer());
}

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

public void cacheModelAdded(CacheModel cacheModel) {
 if (tornDown.get()) { return; }
 if (cacheModel != null) {
  tableModel.add(cacheModel.getCacheConfigurationModel());
  table.sort();
  tableModel.fireTableDataChanged();
  updateSummaryLabel();
 }
}

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

tablePanel.add(new XScrollPane(instanceTable = new XObjectTable()));
panel.add(tablePanel, BorderLayout.SOUTH);
tablePanel.setBorder(BorderFactory.createTitledBorder("Job Execution History"));
instanceTable.setPreferredScrollableViewportSize(new Dimension(600, 200));
instanceTable.setComponentPopupMenu(createInstanceTableMenu());
return panel;

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

public void run() {
  if (tornDown.get()) { return; }
  if (cacheModel != null) {
   tableModel.add(cacheModel);
   table.sort();
   int row = tableModel.getRowCount() - 1;
   tableModel.fireTableRowsInserted(row, row);
   if (row == 0) {
    table.setSelectedRow(0);
   }
   updateSummaryLabel();
  }
 }
});

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

private XContainer createClusteredPanel() {
 clusteredCacheTableModel = new XObjectTableModel(IMutableCacheSettings.class, ATTRS, HEADERS);
 Iterator<ClusteredCacheModel> cacheModelIter = cacheManagerModel.clusteredCacheModelIterator();
 while (cacheModelIter.hasNext()) {
  clusteredCacheTableModel.add(cacheModelIter.next().getCacheSettings());
 }
 clusteredCacheTable = new SettingsTable(clusteredCacheTableModel);
 clusteredCacheTable.getColumnModel().getColumn(0).setCellRenderer(new CacheNameRenderer(true));
 clusteredCacheTable.addMouseListener(new MouseAdapter() {
  @Override
  public void mouseClicked(MouseEvent e) {
   Point p = e.getPoint();
   int col = clusteredCacheTable.columnAtPoint(p);
   int row = clusteredCacheTable.rowAtPoint(p);
   if (col != -1 && row != -1) {
    clusteredCacheTable.editCellAt(row, col, null);
   }
  }
 });
 XScrollPane scroller = new XScrollPane(clusteredCacheTable);
 XContainer result = new XContainer(new BorderLayout());
 result.setBorder(BorderFactory.createTitledBorder("Terracotta-clustered Caches"));
 result.add(scroller);
 return result;
}

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

@Override
public void setup(ApplicationContext appContext, CacheManagerModel cacheManagerModel) {
 this.cacheManagerModel = cacheManagerModel;
 this.cacheManagerModel.addCacheManagerModelListener(this);
 super.setup(appContext, cacheManagerModel.getClusterModel());
 cacheSummaryTable.getSelectionModel().addListSelectionListener(this);
 cacheInstanceTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
  public void valueChanged(ListSelectionEvent e) {
   if (!e.getValueIsAdjusting()) {
    updateActions(cacheInstanceTable);
   }
  }
 });
 revalidate();
 repaint();
}

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