gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-23 23:07:05 28 4
gpt4 key购买 nike

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

XScrollPane介绍

暂无

代码示例

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

public void actionPerformed(final ActionEvent e) {
  Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, EhcacheConfigPanel.this);
  JDialog dialog = new JDialog(frame, frame.getTitle(), true);
  XTextArea textArea = new XTextArea();
  textArea.setEditable(false);
  textArea.setText(cacheManagerModel.generateActiveConfigDeclaration());
  dialog.getContentPane().add(new XScrollPane(textArea));
  dialog.setSize(500, 600);
  WindowHelper.center(dialog);
  dialog.setVisible(true);
 }
}

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

treeModel = new SelectionModelTreeModel();
tree = new XTree(treeModel);
XScrollPane scroller = new XScrollPane(tree);
scroller.setPreferredSize(new Dimension(325, 275));
add(scroller);

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

public void actionPerformed(final ActionEvent e) {
  Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, CacheRegionsPanel.this);
  JDialog dialog = new JDialog(frame, frame.getTitle(), true);
  XTextArea textArea = new XTextArea();
  textArea.setEditable(false);
  textArea.setText(beanProvider.getBean().generateActiveConfigDeclaration());
  dialog.getContentPane().add(new XScrollPane(textArea));
  dialog.setSize(500, 600);
  WindowHelper.center(dialog);
  dialog.setVisible(true);
 }
}

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

public void actionPerformed(final ActionEvent e) {
  Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, CacheRegionsPanel.this);
  JDialog dialog = new JDialog(frame, frame.getTitle(), true);
  XTextArea textArea = new XTextArea();
  textArea.setEditable(false);
  textArea.setText(beanProvider.getBean().generateActiveConfigDeclaration());
  dialog.getContentPane().add(new XScrollPane(textArea));
  dialog.setSize(500, 600);
  WindowHelper.center(dialog);
  dialog.setVisible(true);
 }
}

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

public void actionPerformed(final ActionEvent e) {
  Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, CacheRegionsPanel.this);
  JDialog dialog = new JDialog(frame, frame.getTitle(), true);
  XTextArea textArea = new XTextArea();
  textArea.setEditable(false);
  textArea.setText(beanProvider.getBean().generateActiveConfigDeclaration());
  dialog.getContentPane().add(new XScrollPane(textArea));
  dialog.setSize(500, 600);
  WindowHelper.center(dialog);
  dialog.setVisible(true);
 }
}

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

public void actionPerformed(final ActionEvent ae) {
  JMenuItem mitem = (JMenuItem) ae.getSource();
  JPopupMenu popup = (JPopupMenu) mitem.getParent();
  Callable<String> configGenerator = currentPage.createConfigurationGenerator(popup);
  Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, TopologyPanel.this);
  JDialog dialog = new JDialog(frame, frame.getTitle(), true);
  XTextArea textArea = new XTextArea();
  textArea.setEditable(false);
  String text;
  try {
   text = configGenerator.call();
  } catch (Exception e) {
   text = e.toString();
  }
  textArea.setText(text);
  dialog.getContentPane().add(new XScrollPane(textArea));
  dialog.setSize(500, 600);
  WindowHelper.center(dialog);
  dialog.setVisible(true);
 }
}

代码示例来源: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-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.0

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

代码示例来源: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 createNodeSummaryPanel() {
 XContainer panel = new XContainer(new BorderLayout());
 String title = MessageFormat.format(bundle.getString("node.summary"), cacheManagerModel.getName());
 panel.setBorder(BorderFactory.createTitledBorder(title));
 nodeSummaryTableModel = new NodeSummaryTableModel();
 nodeSummaryTable = new XObjectTable(nodeSummaryTableModel);
 nodeSummaryTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
 nodeSummaryTable.getSelectionModel().addListSelectionListener(this);
 panel.add(createSelectAllPanel(nodeSummaryTable), BorderLayout.SOUTH);
 panel.add(new XScrollPane(nodeSummaryTable));
 nodeSummaryTable.setDefaultRenderer(Boolean.class, new BooleanRenderer());
 JPopupMenu popup = topologyPanel.createPopup();
 nodeSummaryTable.setPopupMenu(popup);
 popup.addPopupMenuListener(new PopupMenuAdapter() {
  @Override
  public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
   updateActions(nodeSummaryTable);
  }
 });
 return panel;
}

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

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

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

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

XScrollPane scroller = new XScrollPane(standaloneCacheTable);
result.add(scroller);

代码示例来源: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.x-ui

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

代码示例来源: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.x-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

attributePanel.add(new XScrollPane(attrTable = new XTable()));
XContainer contentsPanel = new XContainer(new BorderLayout());
XContainer headerPanel = new XContainer(new GridBagLayout());
headerPanel.add(new XLabel(), gbc);
contentsPanel.add(headerPanel, BorderLayout.NORTH);
contentsPanel.add(new XScrollPane(attributePanel));

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