- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.tc.admin.common.XComboBox.getSelectedItem()
方法的一些代码示例,展示了XComboBox.getSelectedItem()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XComboBox.getSelectedItem()
方法的具体详情如下:
包路径:com.tc.admin.common.XComboBox
类名称:XComboBox
方法名:getSelectedItem
暂无
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private int getBatchSize() {
return ((Integer) batchSizeSelector.getSelectedItem()).intValue();
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private CacheManagerModel getSelection() {
String cacheManagerName = (String) cacheManagerSelector.getSelectedItem();
return cacheManagerName != null ? ehcacheModel.getCacheManagerModel(cacheManagerName) : null;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void actionPerformed(ActionEvent e) {
Set<StandaloneCacheModel> set = new HashSet<StandaloneCacheModel>();
CacheManagerInstance cacheManagerInstance = (CacheManagerInstance) cacheManagerInstanceSelector
.getSelectedItem();
for (CacheModelInstance cacheModelInstance : cacheManagerInstance.cacheModelInstances()) {
StandaloneCacheModel cacheModel = cacheManagerModel.standaloneCacheModel(cacheModelInstance);
if (cacheModel != null) {
set.add(cacheModel);
}
}
DefaultComboBoxModel comboModel = new DefaultComboBoxModel(set.toArray(new StandaloneCacheModel[0]));
standaloneCacheSelector.setModel(comboModel);
}
});
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void actionPerformed(ActionEvent ae) {
stopCellEditing();
standaloneCacheTableModel.clear();
CacheManagerInstance cacheManagerInstance = (CacheManagerInstance) cacheManagerSelector.getSelectedItem();
standaloneCacheTableModel.add(getSettingsList(cacheManagerInstance));
standaloneCacheTableModel.fireTableDataChanged();
}
});
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public ContentsRetrievalResult call() throws Exception {
ContentsRetrievalResult result = null;
if (!tornDown.get()) {
long minElapsedTime = 500;
long startTime = System.currentTimeMillis();
if (clusteredCacheToggle.isSelected()) {
CacheModel selectedCacheModel = (CacheModel) clusteredCacheSelector.getSelectedItem();
String cacheName = selectedCacheModel.getCacheName();
result = new ContentsRetrievalResult();
result.data = cacheManagerModel.toMap(cacheName, query, batchSize);
result.totalElements = selectedCacheModel.getSize();
} else {
StandaloneCacheModel cacheModel = (StandaloneCacheModel) standaloneCacheSelector.getSelectedItem();
result = new ContentsRetrievalResult();
result.data = cacheModel.toMap(query, batchSize);
result.totalElements = cacheModel.getSize();
}
long elapsedTime = System.currentTimeMillis() - startTime;
if (elapsedTime < minElapsedTime) {
Thread.sleep(minElapsedTime - elapsedTime);
}
}
return result;
}
});
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
public void actionPerformed(ActionEvent e) {
String pu = (String) puSelector.getSelectedItem();
if (pu != null) {
if (pagedView.hasPage(pu)) {
PersistenceUnitPanel puPage = (PersistenceUnitPanel) pagedView.getPage(pu);
puPage.setViewBy(viewButtonSet.getSelected());
}
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
public void actionPerformed(ActionEvent e) {
String pu = (String) puSelector.getSelectedItem();
if (pu != null) {
if (pagedView.hasPage(pu)) {
PersistenceUnitPanel puPage = (PersistenceUnitPanel) pagedView.getPage(pu);
puPage.setViewBy(viewButtonSet.getSelected());
}
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
public void actionPerformed(ActionEvent e) {
String pu = (String) puSelector.getSelectedItem();
if (pu != null) {
if (pagedView.hasPage(pu)) {
PersistenceUnitPanel puPage = (PersistenceUnitPanel) pagedView.getPage(pu);
puPage.setViewBy(viewButtonSet.getSelected());
}
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void standaloneCacheModelChanged(StandaloneCacheModel cacheModel) {
CacheModelInstance cacheModelInstance = cacheModel.cacheModelInstance();
CacheManagerInstance cacheManagerInstance = cacheModelInstance.getCacheManagerInstance();
List<IMutableCacheSettings> settingsList = getSettingsList(cacheManagerInstance);
for (int i = 0; i < settingsList.size(); i++) {
IMutableCacheSettings settings = settingsList.get(i);
if (settings.getCacheName().equals(cacheModel.getCacheName())) {
settingsList.set(i, settings);
break;
}
}
if (cacheManagerInstance.equals(cacheManagerSelector.getSelectedItem())) {
for (int i = 0; i < standaloneCacheTableModel.getRowCount(); i++) {
IMutableCacheSettings settings = (IMutableCacheSettings) standaloneCacheTableModel.getObjectAt(i);
if (settings.getCacheName().equals(cacheModel.getCacheName())) {
standaloneCacheTableModel.remove(i);
standaloneCacheTableModel.add(i, cacheModel.getCacheSettings());
standaloneCacheTableModel.fireTableRowsUpdated(i, i);
break;
}
}
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void standaloneCacheModelRemoved(StandaloneCacheModel cacheModel) {
CacheModelInstance cacheModelInstance = cacheModel.cacheModelInstance();
CacheManagerInstance cacheManagerInstance = cacheModelInstance.getCacheManagerInstance();
removeStandaloneCacheSettings(cacheManagerInstance, cacheModel);
if (cacheManagerInstance.equals(cacheManagerSelector.getSelectedItem())) {
for (int i = 0; i < standaloneCacheTableModel.getRowCount(); i++) {
IMutableCacheSettings settings = (IMutableCacheSettings) standaloneCacheTableModel.getObjectAt(i);
if (settings.getCacheName().equals(cacheModel.getCacheName())) {
standaloneCacheTableModel.remove(i);
standaloneCacheTableModel.fireTableRowsDeleted(i, i);
break;
}
}
}
evaluateVisibility();
// If the settingsList is now null, there are no more standalone caches in the containing
// CacheManagerInstance, so update the selector model so the CacheManagerInstance is removed.
List<IMutableCacheSettings> settingsList = standaloneCacheSettings.get(cacheManagerInstance);
if (settingsList == null) {
updateCacheManageSelector();
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void standaloneCacheModelAdded(StandaloneCacheModel cacheModel) {
CacheModelInstance cacheModelInstance = cacheModel.cacheModelInstance();
CacheManagerInstance cacheManagerInstance = cacheModelInstance.getCacheManagerInstance();
boolean haveCacheManagerInstance = haveCacheManagerInstance(cacheManagerInstance);
List<IMutableCacheSettings> settingsList = getSettingsList(cacheManagerInstance);
// If we already have CacheManagerInstance in the selector model, then we need to update the settingsList
// here, else getSettingsList properly set everything up already.
if (haveCacheManagerInstance) {
settingsList.add(cacheModel.getCacheSettings());
sort(settingsList);
}
// If we didn't already have CacheManagerInstance in the selector model, update the selector model.
if (!haveCacheManagerInstance) {
updateCacheManageSelector();
} else if (cacheManagerInstance.equals(cacheManagerSelector.getSelectedItem())) {
standaloneCacheTableModel.add(cacheModel.getCacheSettings());
standaloneCacheTableModel.sortColumn(0, XObjectTableModel.DOWN);
standaloneCacheTableModel.fireTableDataChanged();
}
evaluateVisibility();
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui
public void itemStateChanged(ItemEvent e) {
IClusterModel theClusterModel = getClusterModel();
if (theClusterModel == null) { return; }
String cacheManagerName = (String) cacheManagerSelector.getSelectedItem();
if (cacheManagerName != null) {
CacheManagerPanel cacheManagerPage;
if (!pagedView.hasPage(cacheManagerName)) {
cacheManagerPage = new CacheManagerPanel();
cacheManagerPage.setName(cacheManagerName);
pagedView.addPage(cacheManagerPage);
cacheManagerPage.setup(appContext, ehcacheModel.getCacheManagerModel(cacheManagerName));
} else {
cacheManagerPage = (CacheManagerPanel) pagedView.getPage(cacheManagerName);
}
pagedView.setPage(cacheManagerName);
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-quartz-ui
public void itemStateChanged(ItemEvent e) {
IClusterModel theClusterModel = getClusterModel();
if (theClusterModel == null) { return; }
String schedulerName = (String) schedulerSelector.getSelectedItem();
if (schedulerName != null) {
SchedulerPanel schedulerPage;
if (!pagedView.hasPage(schedulerName)) {
schedulerPage = new SchedulerPanel();
schedulerPage.setName(schedulerName);
pagedView.addPage(schedulerPage);
schedulerPage.setup(appContext, quartzModel.getSchedulerModel(schedulerName));
} else {
schedulerPage = (SchedulerPanel) pagedView.getPage(schedulerName);
}
pagedView.setPage(schedulerName);
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0
public void itemStateChanged(ItemEvent e) {
IClusterModel theClusterModel = getClusterModel();
if (theClusterModel == null) { return; }
String cacheManagerName = (String) cacheManagerSelector.getSelectedItem();
if (cacheManagerName != null) {
CacheManagerPanel cacheManagerPage;
if (!pagedView.hasPage(cacheManagerName)) {
cacheManagerPage = new CacheManagerPanel();
cacheManagerPage.setName(cacheManagerName);
pagedView.addPage(cacheManagerPage);
cacheManagerPage.setup(appContext, ehcacheModel.getCacheManagerModel(cacheManagerName));
} else {
cacheManagerPage = (CacheManagerPanel) pagedView.getPage(cacheManagerName);
}
pagedView.setPage(cacheManagerName);
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
public void itemStateChanged(ItemEvent e) {
IClusterModel theClusterModel = getClusterModel();
if (theClusterModel == null) { return; }
String pu = (String) puSelector.getSelectedItem();
if (pu != null) {
PersistenceUnitPanel puPage;
if (!pagedView.hasPage(pu)) {
puPage = new PersistenceUnitPanel();
puPage.setName(pu);
pagedView.addPage(puPage);
puPage.setup(appContext, theClusterModel, pu);
} else {
puPage = (PersistenceUnitPanel) pagedView.getPage(pu);
}
puPage.setViewBy(viewButtonSet.getSelected());
pagedView.setPage(pu);
} else {
pagedView.setPage(EMPTY_PAGE_NAME);
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
public void itemStateChanged(ItemEvent e) {
IClusterModel theClusterModel = getClusterModel();
if (theClusterModel == null) { return; }
String pu = (String) puSelector.getSelectedItem();
if (pu != null) {
PersistenceUnitPanel puPage;
if (!pagedView.hasPage(pu)) {
puPage = new PersistenceUnitPanel();
puPage.setName(pu);
pagedView.addPage(puPage);
puPage.setup(appContext, theClusterModel, pu);
} else {
puPage = (PersistenceUnitPanel) pagedView.getPage(pu);
}
puPage.setViewBy(viewButtonSet.getSelected());
pagedView.setPage(pu);
} else {
pagedView.setPage(EMPTY_PAGE_NAME);
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
public void itemStateChanged(ItemEvent e) {
IClusterModel theClusterModel = getClusterModel();
if (theClusterModel == null) { return; }
String pu = (String) puSelector.getSelectedItem();
if (pu != null) {
PersistenceUnitPanel puPage;
if (!pagedView.hasPage(pu)) {
puPage = new PersistenceUnitPanel();
puPage.setName(pu);
pagedView.addPage(puPage);
puPage.setup(appContext, theClusterModel, pu);
} else {
puPage = (PersistenceUnitPanel) pagedView.getPage(pu);
}
puPage.setViewBy(viewButtonSet.getSelected());
pagedView.setPage(pu);
} else {
pagedView.setPage(EMPTY_PAGE_NAME);
}
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void itemStateChanged(ItemEvent e) {
IClusterModel theClusterModel = getClusterModel();
if (theClusterModel == null) { return; }
String currentPage = pagedView.getPage();
if (currentPage != null) {
removeModelListeners(ehcacheModel.getCacheManagerModel(currentPage));
}
String cacheManagerName = (String) cacheManagerSelector.getSelectedItem();
if (cacheManagerName != null) {
CacheManagerPanel cacheManagerPage;
if (!pagedView.hasPage(cacheManagerName)) {
cacheManagerPage = new CacheManagerPanel();
cacheManagerPage.setName(cacheManagerName);
pagedView.addPage(cacheManagerPage);
cacheManagerPage.setup(appContext, ehcacheModel.getCacheManagerModel(cacheManagerName));
} else {
cacheManagerPage = (CacheManagerPanel) pagedView.getPage(cacheManagerName);
}
pagedView.setPage(cacheManagerName);
if (cacheManagerPage != null) {
addModelListeners(cacheManagerPage.getCacheManagerModel());
}
handleSummaryText();
}
}
}
我只是希望我所有的管理页面都在 /admin 下. 我的主页在 /admin但是当我单击侧栏中的用户时,它会将路径更改为 /users而不是 /admin/users . 我正在使用 rea
我在端口 8011 上设置了一个 Django 服务器,并在端口 80 上有一个 nginx 作为子目录服务。 静态文件,不错。 页面,很好。 但是当我访问/subdirectory/admin/时,
我正在尝试使用 Flask 和 Flask-SuperAdmin 自定义我的 Admin View ,但是,索引 View 和 subview 显然没有使用相同的 is_accessible 方法:
我正在尝试配置我的 .htaccess,以便当有人导航到路径 /wp-admin/admin.php?page=something 时,路径 /wp-admin/something显示在浏览器中,内容
有没有办法整体禁用分页?我希望我的所有记录都显示在一个长列表中,而不是分成几页。我现在正在使用 ListGuesser,我已经尝试过 List 和 ListGuesser,但我无法禁用分页。实际上 r
在本地部署时,我的 RA 项目呈现良好,但是,当我将构建目录复制到 S3 存储桶进行部署时,它呈现的一切都一团糟。有时它有效,但大多数时候它呈现如下图所示。它在带有 AOR 的两种环境中都能正常工作。
我试图在 Datagrid 中显示Field这是多对多关系(中间表)。 我有这些表: 组 - group_subject - 主题 一个小组可以有多个科目 一个主题可以连接多个群组 group_sub
在用于显示用户列表的 Django 管理屏幕中(带有标题,选择要更改的用户),有用户名/电子邮件等字段和员工状态。我想将用户的事件状态添加到该显示中。 尽管大多数 django-admin 自定义问题
无论如何要检查所有 firebase 事务是否在 firebase-admin nodejs 脚本中完成,并正确断开与 firebase 的连接并退出 nodejs 脚本? 目前,即使在所有事务完成后
我正在尝试使用 react-admin 将数据发送到我的自定义 API。我想发送文件,我可以看到有,我想将该数据作为多部分表单数据发送。我遇到过the base64 encoding help pag
我正在尝试在admin部分中实现带有子表单的表单。 form = Fighter() subform = FighterFightHistory() //All of his fights 我的问题如
我在编辑表单中获取记录的“更新”值时遇到了很大的麻烦。我总是得到初始记录值,即使我有一个链接到正确记录源的输入,它应该更新它。 有没有其他方法来获取 SimpleForm 的值? 我有一个简单的编辑表
开发一个不需要翻译的管理员。有没有办法完全关闭它们。就像现在一样,对于诸如通知之类的事情,它们会显示,但我也会收到有关缺少翻译键的控制台警告。 最佳答案 除了 Frederik 的回答之外,以下是禁用
开发一个不需要翻译的管理员。有没有办法完全关闭它们。就像现在一样,对于诸如通知之类的事情,它们会显示,但我也会收到有关缺少翻译键的控制台警告。 最佳答案 除了 Frederik 的回答之外,以下是禁用
我有这样的模型: class User(db.Model): __tablename__ = 'users' __table_args__ = {'mysql_engine' : 'I
我已经使用 Media 类自定义了我的内联模型。 我想自定义内联字段集以实现两件事: 为每一行添加一个按钮 按下“添加新行”时从 javascript 代码运行 我试过覆盖 tabular.html
我的所有管理员/任何 url 正在呈现管理文件,但是当我尝试只点击管理员时,它显示 404 不在这条路线上。我可以为 url/admin 创建单独的路由,但这是他们的任何其他选项。这样我只能通过单一路
虽然我使用了许多图表,如 HighCharts、Charts.js、C3、D3,但是否有人尝试过或是否有一些关于如何将任何图表框架包含在 React-admin 中的文档?我看了一些,但看起来我们必须
react-admin 文档将资源的默认路由解释为: /posts/:id 映射到 PostEdit /posts/:id/show 映射到 PostShow 我希望我的应用程序默认为查看,并且仅当用
我正在使用 react-admin 前端框架,想知道是否有办法从路由中删除“#”。我正在使用 customRoutes 属性为我们的系统提供路由集合。 ``` 最佳答案 您可以创建自己的历
我是一名优秀的程序员,十分优秀!