gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-24 18:51:05 27 4
gpt4 key购买 nike

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

XContainer.setBorder介绍

暂无

代码示例

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

private void clearAttributes() {
 attributePanel.setBorder(null);
 attrTable.setModel(EMPTY_TABLE_MODEL);
}

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

private XContainer createOperationsPanel() {
 XContainer panel = new XContainer(new GridBagLayout());
 Insets buttonMargin = (Insets) bundle.getObject("button.small.margin");
 GridBagConstraints gbc = new GridBagConstraints();
 gbc.gridx = gbc.gridy = 0;
 gbc.insets = new Insets(3, 3, 3, 3);
 gbc.anchor = GridBagConstraints.WEST;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 panel.add(enablementButton = new JToggleButton(bundle.getString("disable.region")), gbc);
 enablementButton.addActionListener(new ActionListener() {
  public void actionPerformed(final ActionEvent ae) {
   queryToggleRegionEnabled();
  }
 });
 enablementButton.setMargin(buttonMargin);
 gbc.gridy++;
 panel.add(flushButton = new JToggleButton(bundle.getString("evict.all.entries.in.region")), gbc);
 flushButton.addActionListener(new ActionListener() {
  public void actionPerformed(final ActionEvent ae) {
   queryFlushRegion();
  }
 });
 flushButton.setMargin(buttonMargin);
 panel.setBorder(BorderFactory.createTitledBorder(bundle.getString("region.operations")));
 return panel;
}

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

private XContainer createOverviewPanel() {
 XContainer result = new XContainer(new GridBagLayout());
 GridBagConstraints gbc = new GridBagConstraints();
 gbc.gridx = gbc.gridy = 0;
 gbc.anchor = GridBagConstraints.WEST;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 gbc.weightx = 1.0;
 gbc.insets = new Insets(1, 5, 1, 0);
 result.add(overviewLabel = new XLabel(overviewMsg), gbc);
 // overviewLabel.setFont((Font) bundle.getObject("message.label.font"));
 overviewLabel.setIcon(EhcachePresentationUtils.ALERT_ICON);
 result.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
 return result;
}

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

protected XContainer createVuMeterPanel() {
 XContainer panel = new XContainer(new BorderLayout());
 panel.add(createLegend(), BorderLayout.NORTH);
 panel.add(vuMeterPanel = new VuMeterPanel(appContext), BorderLayout.CENTER);
 panel.setBorder(BorderFactory.createTitledBorder("Cluster-wide Activity"));
 return panel;
}

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

private XContainer createToolBar() {
 XContainer panel = new XContainer(new GridBagLayout());
 GridBagConstraints gbc = new GridBagConstraints();
 gbc.insets = new Insets(3, 1, 3, 0);
 gbc.gridx = gbc.gridy = 0;
 gbc.anchor = GridBagConstraints.WEST;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 panel.add(enableAllRegionsButton = new JToggleButton(bundle.getString("enable.cache"), ENABLE_CACHE_ICON), gbc);
 enableAllRegionsButton.addActionListener(new EnableAllRegionsAction());
 gbc.gridx++;
 panel.add(disableAllRegionsButton = new JToggleButton(bundle.getString("disable.cache"), DISABLE_CACHE_ICON), gbc);
 disableAllRegionsButton.addActionListener(new DisableAllRegionsAction());
 gbc.gridx++;
 gbc.insets = new Insets(3, 5, 3, 0);
 panel.add(flushButton = new JToggleButton(bundle.getString("evict.all.entries"), CLEAR_CACHE_ICON), gbc);
 flushButton.addActionListener(new ActionListener() {
  public void actionPerformed(ActionEvent e) {
   queryFlushCache();
  }
 });
 gbc.gridx++;
 // filler
 gbc.weightx = 1.0;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 panel.add(new XLabel(), gbc);
 panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
 return panel;
}

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

private XContainer createToolBar() {
 XContainer panel = new XContainer(new GridBagLayout());
 GridBagConstraints gbc = new GridBagConstraints();
 gbc.insets = new Insets(3, 1, 3, 0);
 gbc.gridx = gbc.gridy = 0;
 gbc.anchor = GridBagConstraints.WEST;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 panel.add(enableAllRegionsButton = new JToggleButton(bundle.getString("enable.cache"), ENABLE_CACHE_ICON), gbc);
 enableAllRegionsButton.addActionListener(new EnableAllRegionsAction());
 gbc.gridx++;
 panel.add(disableAllRegionsButton = new JToggleButton(bundle.getString("disable.cache"), DISABLE_CACHE_ICON), gbc);
 disableAllRegionsButton.addActionListener(new DisableAllRegionsAction());
 gbc.gridx++;
 gbc.insets = new Insets(3, 5, 3, 0);
 panel.add(flushButton = new JToggleButton(bundle.getString("evict.all.entries"), CLEAR_CACHE_ICON), gbc);
 flushButton.addActionListener(new ActionListener() {
  public void actionPerformed(ActionEvent e) {
   queryFlushCache();
  }
 });
 gbc.gridx++;
 // filler
 gbc.weightx = 1.0;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 panel.add(new XLabel(), gbc);
 panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
 return panel;
}

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

private XContainer createToolBar() {
 XContainer panel = new XContainer(new GridBagLayout());
 GridBagConstraints gbc = new GridBagConstraints();
 gbc.insets = new Insets(3, 3, 3, 3);
 gbc.gridx = gbc.gridy = 0;
 gbc.anchor = GridBagConstraints.WEST;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 enableAllCachesButton = new JToggleButton(bundle.getString("enable.all.caches"), ENABLE_CACHE_ICON);
 panel.add(enableAllCachesButton, gbc);
 enableAllCachesButton.addActionListener(new EnableAllCachesAction());
 gbc.gridx++;
 disableAllCachesButton = new JToggleButton(bundle.getString("disable.all.caches"), DISABLE_CACHE_ICON);
 panel.add(disableAllCachesButton, gbc);
 disableAllCachesButton.addActionListener(new DisableAllCachesAction());
 gbc.gridx++;
 clearAllCachesButton = new JToggleButton(bundle.getString("clear.all.caches"), CLEAR_CACHE_ICON);
 panel.add(clearAllCachesButton, gbc);
 clearAllCachesButton.addActionListener(new ActionListener() {
  public void actionPerformed(ActionEvent e) {
   queryClearAllCaches();
  }
 });
 gbc.gridx++;
 // filler
 gbc.weightx = 1.0;
 gbc.fill = GridBagConstraints.HORIZONTAL;
 panel.add(new XLabel(), gbc);
 panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
 return panel;
}

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

panel.add(new XLabel(), gbc);
panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));

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

protected XContainer createPropertiesPanel() {
 XContainer panel = new XContainer(new GridBagLayout());
 GridBagConstraints gbc = createConstraint();
 gbc.weightx = 0.0;
 gbc.fill = GridBagConstraints.NONE;
 inStandbyModeLabel = addRow(panel, "Standing by:", gbc);
 shutdownLabel = addRow(panel, "Shutdown:", gbc);
 versionLabel = addRow(panel, "Version:", gbc);
 jobStoreClassLabel = addRow(panel, "JobStore type:", gbc);
 threadPoolClassLabel = addRow(panel, "ThreadPool type:", gbc);
 threadPoolSizeLabel = addRow(panel, "ThreadPool size:", gbc);
 panel.setBorder(BorderFactory.createTitledBorder("Properties"));
 XContainer result = new XContainer(new GridBagLayout());
 result.add(panel, new GridBagConstraints());
 return result;
}

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

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);
 }
}

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

jobDetailTree.addMouseListener(treeMouseListener);
centerPanel.add(jobDetailPanel);
jobDetailPanel.setBorder(BorderFactory.createTitledBorder("Job Details"));
triggerTree.addMouseListener(treeMouseListener);
centerPanel.add(triggerPanel);
triggerPanel.setBorder(BorderFactory.createTitledBorder("Triggers"));

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

topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);

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

topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);

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

topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);

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

topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));

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

topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);

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