gpt4 book ai didi

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

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

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

XLabel.setText介绍

暂无

代码示例

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

@Override
 public void setValue(Object value) {
  label.setText(value != null ? value.toString() : "");
  label.setHorizontalAlignment(SwingConstants.CENTER);
 }
}

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

@Override
 public void setValue(Object value) {
  if (!(value instanceof Boolean)) {
   setText(value != null ? value.toString() : "");
   return;
  }
  boolean isBulkloading = ((Boolean) value).booleanValue();
  label.setText(isBulkloading ? "Bulkloading" : "Normal");
 }
}

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

private void updateSummaryLabel(final int clusteredRegionCount) {
 String format = bundle.getString("regions.summary.format");
 summaryLabel.setText(MessageFormat.format(format, clusteredRegionCount, regionInfoMap.size()));
 /*
  * TODO: need a real model.
  */
 H2LCPanel h2lcPanel = (H2LCPanel) SwingUtilities.getAncestorOfClass(H2LCPanel.class, this);
 if (h2lcPanel != null) {
  h2lcPanel.cacheRegionsChanged(clusteredRegionCount, regionInfoMap.size());
 }
}

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

protected void updateCachedRegionsCount(final int clusteredRegionCount, final int allRegionsCount) {
 String format = bundle.getString("regions.summary.format");
 summaryLabel.setText(MessageFormat.format(format, clusteredRegionCount, allRegionsCount));
 enableAllRegionsButton.setEnabled(clusteredRegionCount != allRegionsCount);
 disableAllRegionsButton.setEnabled(clusteredRegionCount > 0);
}

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

protected void updateCachedRegionsCount(final int clusteredRegionCount, final int allRegionsCount) {
 String format = bundle.getString("regions.summary.format");
 summaryLabel.setText(MessageFormat.format(format, clusteredRegionCount, allRegionsCount));
 enableAllRegionsButton.setEnabled(clusteredRegionCount != allRegionsCount);
 disableAllRegionsButton.setEnabled(clusteredRegionCount > 0);
}

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

protected void updateEnabledCachesCount(final int clusteredCacheCount, final int allCachesCount,
                    final int enabledCacheCount) {
 String format = bundle.getString("caches.summary.format");
 summaryLabel.setText(MessageFormat.format(format, clusteredCacheCount, enabledCacheCount, allCachesCount, bundle
   .getString(cacheManagerModel.isStatsEnabled() ? "on" : "off")));
 enableAllCachesButton.setEnabled(enabledCacheCount != allCachesCount);
 enableAllCachesButton.setSelected(false);
 disableAllCachesButton.setEnabled(enabledCacheCount > 0);
 disableAllCachesButton.setSelected(false);
}

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

@Override
 public void setValue(Object value) {
  label.setHorizontalAlignment(SwingConstants.CENTER);
  if (textual) {
   label.setText(value != null ? value.toString() : "");
  } else {
   boolean enabled = ((Boolean) value).booleanValue();
   label.setIcon(enabled ? ENABLED_ICON : DISABLED_ICON);
   label.setBorder(emptyBorder);
  }
 }
}

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

@Override
 public void setValue(Object value) {
  label.setEnabled(false);
  label.setText("---");
  label.setHorizontalAlignment(SwingConstants.CENTER);
 }
}

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

public void actionPerformed(ActionEvent ae) {
  contentsHeader.setText(bundle.getString("retrieving.elements"));
  contentsHeader.setIcon(WAIT_ICON);
  clearAttributes();
  appContext.submit(new ContentsRetrievalWorker(null, getBatchSize()));
 }
});

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

public void actionPerformed(ActionEvent e) {
 ElementChooser chsr = (ElementChooser) e.getSource();
 XTreeNode node = (XTreeNode) chsr.getSelectedObject();
 String name = node.getName();
 if (pagedView.hasPage(name)) {
  pagedView.setPage(name);
 }
 TreePath path = elementChooser.getSelectedPath();
 Object type = path.getPathComponent(1);
 currentViewLabel.setText(type.toString());
}

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

public void actionPerformed(ActionEvent e) {
 ElementChooser chsr = (ElementChooser) e.getSource();
 XTreeNode node = (XTreeNode) chsr.getSelectedObject();
 String name = node.getName();
 if (pagedView.hasPage(name)) {
  pagedView.setPage(name);
 }
 TreePath path = elementChooser.getSelectedPath();
 Object type = path.getPathComponent(1);
 currentViewLabel.setText(type.toString());
}

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

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

private void suspend() {
 removeAll();
 messageLabel.setText(appContext.getString("cluster.not.ready.msg"));
 add(messagePanel);
 revalidate();
 repaint();
}

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

protected void suspend() {
 removeAll();
 messageLabel.setText(appContext.getString("cluster.not.ready.msg"));
 add(messagePanel);
 revalidate();
 repaint();
}

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

protected void suspend() {
 removeAll();
 messageLabel.setText(appContext.getString("cluster.not.ready.msg"));
 add(messagePanel);
 revalidate();
 repaint();
}

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