gpt4 book ai didi

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

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

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

XTabbedPane介绍

暂无

代码示例

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

@Override
protected XContainer createMainPanel() {
 XContainer panel = new XContainer(new BorderLayout());
 XTabbedPane tabbedPane = new XTabbedPane();
 tabbedPane.add(bundle.getString("overview"), overviewPanel = new SchedulerOverviewPanel());
 tabbedPane.add(bundle.getString("jobs"), jobsPanel = new SchedulerDetailsPanel());
 panel.add(tabbedPane, BorderLayout.CENTER);
 return panel;
}

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

private XTabbedPane createTabbedPane() {
 tabbedPane = new XTabbedPane();
 tabbedPane.addTab(bundle.getString("entities"), createEntityTablePanel());
 tabbedPane.addTab(bundle.getString("collections"), createCollectionTablePanel());
 tabbedPane.addTab(bundle.getString("queries"), createQueryTablePanel());
 tabbedPane.addChangeListener(this);
 return tabbedPane;
}

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

public void stateChanged(ChangeEvent e) {
 selectedTabIndex = tabbedPane.getSelectedIndex();
}

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

@Override
protected synchronized void setup(final XContainer chartsPanel) {
 chartsPanel.setLayout(new BorderLayout());
 chartsPanel.add(tabbedPane = new XTabbedPane());
 tabbedPane.addTab("Usage", usagePanel = new BaseRuntimeStatsPanel(appContext));
 searchTabIndex = tabbedPane.getTabCount();
 tabbedPane.addTab("Search", searchPanel = new BaseRuntimeStatsPanel(appContext));
 jtaTabIndex = tabbedPane.getTabCount();
 tabbedPane.addTab("JTA", jtaPanel = new BaseRuntimeStatsPanel(appContext));
 writeBehindTabIndex = tabbedPane.getTabCount();
 tabbedPane.addTab("Write-Behind", writeBehindPanel = new BaseRuntimeStatsPanel(appContext));
 usagePanel.getChartsPanel().setLayout(new GridLayout(2, 2));
 setupCacheHitRatioPanel(usagePanel.getChartsPanel());
 setupCacheMissRatePanel(usagePanel.getChartsPanel());
 setupCacheUpdateRatePanel(usagePanel.getChartsPanel());
 setupCachePutRatePanel(usagePanel.getChartsPanel());
 searchPanel.getChartsPanel().setLayout(new GridLayout(2, 1));
 setupCacheSearchRatePanel(searchPanel.getChartsPanel());
 setupCacheAverageSearchTimePanel(searchPanel.getChartsPanel());
 jtaPanel.getChartsPanel().setLayout(new GridLayout(2, 1));
 setupTransactionCommitRatePanel(jtaPanel.getChartsPanel());
 setupTransactionRollbackRatePanel(jtaPanel.getChartsPanel());
 writeBehindPanel.getChartsPanel().setLayout(new GridLayout(1, 1));
 setupWriteBehindPanel(writeBehindPanel.getChartsPanel());
}

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

int selectedTab = tabbedPane.getSelectedIndex();
boolean isSearchTabEnabled = tabbedPane.isEnabledAt(searchTabIndex);
if (isSearchTabEnabled != isSearchable) {
 tabbedPane.setEnabledAt(searchTabIndex, isSearchable);
 if (selectedTab == searchTabIndex && !isSearchable) {
  tabbedPane.setSelectedIndex(0);
boolean isJTATabEnabled = tabbedPane.isEnabledAt(jtaTabIndex);
if (isJTATabEnabled != isTransactional) {
 tabbedPane.setEnabledAt(jtaTabIndex, isTransactional);
 if (selectedTab == jtaTabIndex && !isTransactional) {
  tabbedPane.setSelectedIndex(0);
boolean isWriteBehindTabEnabled = tabbedPane.isEnabledAt(writeBehindTabIndex);
if (isWriteBehindTabEnabled != hasAnyWriters) {
 tabbedPane.setEnabledAt(writeBehindTabIndex, hasAnyWriters);
 if (selectedTab == writeBehindTabIndex && !hasAnyWriters) {
  tabbedPane.setSelectedIndex(0);

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

public void hierarchyChanged(final HierarchyEvent e) {
 Component comp = e.getComponent();
 if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0) {
  if (comp.isShowing()) {
   if (comp == entityTable) {
    updateEntityStats();
   } else if (comp == collectionTable) {
    updateCollectionStats();
   } else if (comp == queryTable) {
    updateQueryStats();
   } else {
    tabbedPane.setSelectedIndex(selectedTabIndex);
   }
  }
 }
}

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

private void removePage(PagedView pagedView, String pageName) {
 Component page = pagedView.getPage(pageName);
 if (page != null) {
  pagedView.removePage(pageName);
  if (page instanceof XContainer) {
   ((XContainer) page).tearDown();
  } else if (page instanceof XTabbedPane) {
   ((XTabbedPane) page).tearDown();
  }
 }
}

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

if (!tornDown.compareAndSet(false, true)) { return; }
tabbedPane.removeChangeListener(this);
beanProvider.removeNotificationListener(this);
clusterModel.removePropertyChangeListener(clusterListener);

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

public void hierarchyChanged(final HierarchyEvent e) {
 Component comp = e.getComponent();
 if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0) {
  if (comp.isShowing()) {
   if (comp == entityTable) {
    updateEntityStats();
   } else if (comp == collectionTable) {
    updateCollectionStats();
   } else if (comp == queryTable) {
    updateQueryStats();
   } else {
    tabbedPane.setSelectedIndex(selectedTabIndex);
   }
  }
 }
}

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

private void removePage(PagedView pagedView, String pageName) {
 Component page = pagedView.getPage(pageName);
 if (page != null) {
  pagedView.removePage(pageName);
  if (page instanceof XContainer) {
   ((XContainer) page).tearDown();
  } else if (page instanceof XTabbedPane) {
   ((XTabbedPane) page).tearDown();
  }
 }
}

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

if (!tornDown.compareAndSet(false, true)) { return; }
tabbedPane.removeChangeListener(this);
beanProvider.removeNotificationListener(this);
clusterModel.removePropertyChangeListener(clusterListener);

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

private XContainer createMainPanel() {
 XContainer panel = new XContainer(new BorderLayout());
 XTabbedPane tabbedPane = new XTabbedPane();
 tabbedPane.add(bundle.getString("overview"), overviewPanel = new OverviewPanel());
 tabbedPane.add(bundle.getString("statistics"), h2lcStatsPanel = new H2LCRuntimeStatsPanel());
 tabbedPane.add(bundle.getString("configuration"), cacheRegionsPanel = new CacheRegionsPanel());
 panel.add(tabbedPane, BorderLayout.CENTER);
 return panel;
}

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

private XTabbedPane createTabbedPane() {
 tabbedPane = new XTabbedPane();
 tabbedPane.addTab(bundle.getString("entities"), createEntityTablePanel());
 tabbedPane.addTab(bundle.getString("collections"), createCollectionTablePanel());
 tabbedPane.addTab(bundle.getString("queries"), createQueryTablePanel());
 tabbedPane.addChangeListener(this);
 return tabbedPane;
}

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

public void stateChanged(ChangeEvent e) {
 selectedTabIndex = tabbedPane.getSelectedIndex();
}

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

public void hierarchyChanged(final HierarchyEvent e) {
 Component comp = e.getComponent();
 if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0) {
  if (comp.isShowing()) {
   if (comp == entityTable) {
    updateEntityStats();
   } else if (comp == collectionTable) {
    updateCollectionStats();
   } else if (comp == queryTable) {
    updateQueryStats();
   } else {
    tabbedPane.setSelectedIndex(selectedTabIndex);
   }
  }
 }
}

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

private void removePage(PagedView pagedView, String pageName) {
 Component page = pagedView.getPage(pageName);
 if (page != null) {
  pagedView.removePage(pageName);
  if (page instanceof XContainer) {
   ((XContainer) page).tearDown();
  } else if (page instanceof XTabbedPane) {
   ((XTabbedPane) page).tearDown();
  }
 }
}

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

if (!tornDown.compareAndSet(false, true)) { return; }
tabbedPane.removeChangeListener(this);
beanProvider.removeNotificationListener(this);
clusterModel.removePropertyChangeListener(clusterListener);

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

@Override
protected XContainer createMainPanel() {
 XContainer panel = new XContainer(new BorderLayout());
 XTabbedPane tabbedPane = new XTabbedPane();
 tabbedPane.add(bundle.getString("overview"), cacheOverviewPanel = new EhcacheOverviewPanel());
 tabbedPane.add(bundle.getString("statistics"), cacheStatsPanel = new EhcacheRuntimeStatsPanel());
 tabbedPane.add(bundle.getString("configuration"), cacheRegionsPanel = new EhcacheConfigPanel());
 panel.add(tabbedPane, BorderLayout.CENTER);
 return panel;
}

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

private XTabbedPane createTabbedPane() {
 tabbedPane = new XTabbedPane();
 tabbedPane.addTab(bundle.getString("entities"), createEntityTablePanel());
 tabbedPane.addTab(bundle.getString("collections"), createCollectionTablePanel());
 tabbedPane.addTab(bundle.getString("queries"), createQueryTablePanel());
 tabbedPane.addChangeListener(this);
 return tabbedPane;
}

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

public void stateChanged(ChangeEvent e) {
 selectedTabIndex = tabbedPane.getSelectedIndex();
}

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