gpt4 book ai didi

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

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

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

XLabel.<init>介绍

暂无

代码示例

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

private void queryClearSelectedCaches(JPopupMenu popupMenu) {
 if (tornDown.get()) { return; }
 XLabel msg = new XLabel(bundle.getString("clear.selected.caches.confirm"));
 msg.setFont((Font) bundle.getObject("message.label.font"));
 msg.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
 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(currentPage.createClearCachesWorker(popupMenu));
 }
}

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

private void queryDisableSelectedStats(JPopupMenu popupMenu) {
 if (tornDown.get()) { return; }
 XLabel msg = new XLabel(MessageFormat.format(bundle.getString("disable.selected.statistics.confirm"),
                        cacheManagerModel.getName()));
 msg.setFont((Font) bundle.getObject("message.label.font"));
 msg.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
 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(currentPage.createStatisticsControlWorker(popupMenu, false));
 }
}

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

@Override
protected XContainer createMainPanel() {
 XContainer panel = super.createMainPanel();
 XContainer legendPanel = new XContainer(new BorderLayout());
 XLabel label = new XLabel("Terracotta-clustered", CLUSTERED_ICON);
 legendPanel.add(label, BorderLayout.WEST);
 panel.add(legendPanel, BorderLayout.NORTH);
 return panel;
}

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

private void queryFlushCache() {
 XLabel msg = new XLabel(bundle.getString("flush.cache.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 FlushCacheWorker());
 } else {
  flushButton.setSelected(false);
  flushButton.setEnabled(true);
 }
}

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

private void queryEnableAllCaches() {
 XLabel msg = new XLabel(bundle.getString("enable.all.caches.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 EnableAllCachesWorker());
 } else {
  enableAllCachesButton.setSelected(false);
  enableAllCachesButton.setEnabled(true);
 }
}

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

private void queryEnableSelectedCaches(JPopupMenu popupMenu) {
 XLabel msg = new XLabel(bundle.getString("enable.selected.caches.confirm"));
 msg.setFont((Font) bundle.getObject("message.label.font"));
 msg.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
 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(currentPage.createEnableCachesWorker(popupMenu, true, false));
 }
}

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

private void queryDisableBulkLoad() {
 XLabel msg = new XLabel(MessageFormat.format(bundle.getString("disable.cache.bulkload.confirm"),
                        cacheModel.getCacheName()));
 Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, this);
 int answer = JOptionPane.showConfirmDialog(this.getParent(), msg, frame.getTitle(), JOptionPane.OK_CANCEL_OPTION);
 if (answer == JOptionPane.OK_OPTION) {
  appContext.submit(new BulkLoadControlWorker(false));
 }
}

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

private void queryToggleStatsEnabled() {
 boolean isStatsEnabled = cacheManagerModel.isStatsEnabled();
 XLabel msg = new XLabel(bundle.getString(isStatsEnabled ? "disable.stats.confirm" : "enable.stats.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 ToggleStatsEnabledWorker());
 } else {
  toggleStatsEnabledButton.setSelected(false);
  toggleStatsEnabledButton.setEnabled(true);
 }
}

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

private void queryClearAllStats() {
 if (tornDown.get()) { return; }
 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.setSelected(false);
  clearAllStatsButton.setEnabled(true);
 }
}

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

private void queryFlushCache() {
 XLabel msg = new XLabel(MessageFormat.format(bundle.getString("evict.all.entries.in.cache.confirm"), cacheModel
   .getCacheName()));
 Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, this);
 int answer = JOptionPane.showConfirmDialog(this.getParent(), msg, frame.getTitle(), JOptionPane.OK_CANCEL_OPTION);
 if (answer == JOptionPane.OK_OPTION) {
  appContext.submit(new FlushCacheWorker());
 } else {
  flushButton.setSelected(false);
  flushButton.setEnabled(true);
 }
}

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

protected static XLabel createOverlayLabel() {
 XLabel result = new XLabel();
 result.setFont(labelFont);
 result.setHorizontalAlignment(SwingConstants.CENTER);
 result.setForeground(Color.gray);
 return result;
}

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

private XLabel createOverlayLabel() {
 XLabel result = new XLabel();
 result.setFont(labelFont);
 result.setHorizontalAlignment(SwingConstants.CENTER);
 result.setForeground(Color.gray);
 return result;
}

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

private void queryClearAllStats() {
 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.setSelected(false);
  clearAllStatsButton.setEnabled(true);
 }
}

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

private void queryToggleCoherent() {
 boolean coherent = cacheModel.isCoherent();
 XLabel msg = new XLabel(MessageFormat.format(bundle.getString(coherent ? "make.cache.incoherent.confirm"
   : "make.cache.coherent.confirm"), cacheModel.getCacheName()));
 Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, this);
 int answer = JOptionPane.showConfirmDialog(this.getParent(), msg, frame.getTitle(), JOptionPane.OK_CANCEL_OPTION);
 if (answer == JOptionPane.OK_OPTION) {
  appContext.submit(new ToggleCoherentWorker());
 } else {
  toggleCoherentButton.setEnabled(true);
 }
}

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

private XContainer createMessagePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 panel.add(messageLabel = new XLabel());
 messageLabel.setText(appContext.getString("initializing"));
 messageLabel.setHorizontalAlignment(SwingConstants.CENTER);
 messageLabel.setFont((Font) appContext.getObject("message.label.font"));
 return panel;
}

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

private XContainer createMessagePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 panel.add(messageLabel = new XLabel());
 messageLabel.setText(appContext.getString("initializing"));
 messageLabel.setHorizontalAlignment(SwingConstants.CENTER);
 messageLabel.setFont((Font) appContext.getObject("message.label.font"));
 return panel;
}

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

private XContainer createMessagePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 panel.add(messageLabel = new XLabel());
 messageLabel.setText(appContext.getString("initializing"));
 messageLabel.setHorizontalAlignment(SwingConstants.CENTER);
 messageLabel.setFont((Font) appContext.getObject("message.label.font"));
 return panel;
}

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

private XContainer createMessagePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 panel.add(messageLabel = new XLabel());
 messageLabel.setText(appContext.getString("initializing"));
 messageLabel.setHorizontalAlignment(SwingConstants.CENTER);
 messageLabel.setFont((Font) appContext.getObject("message.label.font"));
 return panel;
}

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

private XContainer createMessagePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 panel.add(messageLabel = new XLabel());
 messageLabel.setText(appContext.getString("initializing"));
 messageLabel.setHorizontalAlignment(SwingConstants.CENTER);
 messageLabel.setFont((Font) appContext.getObject("message.label.font"));
 return panel;
}

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

private XContainer createMessagePanel() {
 XContainer panel = new XContainer(new BorderLayout());
 panel.add(messageLabel = new XLabel());
 messageLabel.setText(appContext.getString("initializing"));
 messageLabel.setHorizontalAlignment(SwingConstants.CENTER);
 messageLabel.setFont((Font) appContext.getObject("message.label.font"));
 return panel;
}

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