- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.tc.admin.common.XButton.<init>()
方法的一些代码示例,展示了XButton.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XButton.<init>()
方法的具体详情如下:
包路径:com.tc.admin.common.XButton
类名称:XButton
方法名:<init>
暂无
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public JComponent createAltToolBar() {
XContainer panel = new XContainer(new FlowLayout(FlowLayout.CENTER, 1, 3));
panel.add(new XButton(new ManageEnablementAction()));
panel.add(new XButton(new ManageBulkLoadAction()));
panel.add(new XButton(new ManageStatisticsAction()));
panel.add(new XButton(new ManageContentsAction()));
panel.add(new XButton(new ManageSettingsAction()));
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private XContainer createSummaryPanel() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 3, 3, 3);
gbc.gridx = gbc.gridy = 0;
panel.add(summaryLabel = new XLabel(), gbc);
summaryLabel.setIcon(EhcachePresentationUtils.ALERT_ICON);
gbc.gridx++;
panel.add(manageStatsButton = new XButton("Manage Statistics..."), gbc);
manageStatsButton.addActionListener(manageStatsAction);
gbc.gridx++;
// filler
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
panel.add(new XLabel(), gbc);
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
private XContainer createTopPanel() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 3, 3, 3);
gbc.gridx = gbc.gridy = 0;
panel.add(summaryLabel = new XLabel(), gbc);
gbc.gridx++;
// filler
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
panel.add(new XLabel(), gbc);
gbc.gridx++;
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = 0.0;
showConfigButton = new XButton(bundle.getString("generate.configuration"), GENERATE_CONFIG_ICON);
panel.add(showConfigButton, gbc);
showConfigButton.addActionListener(new ShowConfigAction());
showConfigButton.setEnabled(false);
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0
private XContainer createTopPanel() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 3, 3, 3);
gbc.gridx = gbc.gridy = 0;
panel.add(summaryLabel = new XLabel(), gbc);
gbc.gridx++;
// filler
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
panel.add(new XLabel(), gbc);
gbc.gridx++;
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = 0.0;
showConfigButton = new XButton(bundle.getString("generate.configuration"), GENERATE_CONFIG_ICON);
panel.add(showConfigButton, gbc);
showConfigButton.addActionListener(new ShowConfigAction());
showConfigButton.setEnabled(false);
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
private XContainer createTopPanel() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 3, 3, 3);
gbc.gridx = gbc.gridy = 0;
panel.add(summaryLabel = new XLabel(), gbc);
gbc.gridx++;
// filler
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
panel.add(new XLabel(), gbc);
gbc.gridx++;
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = 0.0;
showConfigButton = new XButton(bundle.getString("generate.configuration"));
panel.add(showConfigButton, gbc);
showConfigButton.addActionListener(new ShowConfigAction());
showConfigButton.setEnabled(false);
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
private XContainer createTopPanel() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 3, 3, 3);
gbc.gridx = gbc.gridy = 0;
panel.add(summaryLabel = new XLabel(), gbc);
gbc.gridx++;
// filler
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
panel.add(new XLabel(), gbc);
gbc.gridx++;
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = 0.0;
showConfigButton = new XButton(bundle.getString("generate.configuration"), GENERATE_CONFIG_ICON);
panel.add(showConfigButton, gbc);
showConfigButton.addActionListener(new ShowConfigAction());
showConfigButton.setEnabled(false);
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public QueryForStatsMessage(ActionListener advancedHandler) {
super(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 3, 3, 3);
gbc.gridx = gbc.gridy = 0;
gbc.anchor = GridBagConstraints.CENTER;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
label = new XLabel(bundle.getString("query.enable.all.statistics"));
label.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
label.setFont((Font) bundle.getObject("message.label.font"));
add(label, gbc);
gbc.gridy++;
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.NONE;
XButton advancedButton = new XButton("Advanced...");
add(advancedButton, gbc);
advancedButton.addActionListener(advancedHandler);
gbc.gridx++;
gbc.anchor = GridBagConstraints.EAST;
add(noShowToggle = new XCheckBox("Don't show again"), gbc);
noShowToggle.addActionListener(this);
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui
protected JComponent createTablePanel() {
XContainer panel = new XContainer(new BorderLayout());
cacheTable = new XObjectTable(cacheTableModel = new CacheManagerTableModel());
cacheTable.addHierarchyListener(this);
panel.add(new XScrollPane(cacheTable), BorderLayout.CENTER);
XContainer bottomPanel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
bottomPanel.add(refreshButton = new XButton(appContext.getString("refresh")), gbc);
refreshButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
updateStats();
}
});
gbc.gridx++;
bottomPanel.add(clearAllStatsButton = new XButton(bundle.getString("clear.all.stats")), gbc);
clearAllStatsButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
queryClearAllStats();
}
});
panel.add(bottomPanel, BorderLayout.SOUTH);
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
refreshQueriesButton = new XButton(appContext.getString("refresh"));
bottomPanel.add(refreshQueriesButton, gbc);
refreshQueriesButton.addActionListener(new ActionListener() {
gbc.gridx++;
XButton clearAllCountersButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllCountersButton, gbc);
clearAllCountersButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
refreshCollectionsButton = new XButton(appContext.getString("refresh"));
bottomPanel.add(refreshCollectionsButton, gbc);
refreshCollectionsButton.addActionListener(new ActionListener() {
gbc.gridx++;
XButton clearAllCountersButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllCountersButton, gbc);
clearAllCountersButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
bottomPanel.add(refreshEntitiesButton = new XButton(appContext.getString("refresh")), gbc);
refreshEntitiesButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
gbc.gridx++;
XButton clearAllStatsButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllStatsButton, gbc);
clearAllStatsButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
refreshCollectionsButton = new XButton(appContext.getString("refresh"));
bottomPanel.add(refreshCollectionsButton, gbc);
refreshCollectionsButton.addActionListener(new ActionListener() {
gbc.gridx++;
XButton clearAllCountersButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllCountersButton, gbc);
clearAllCountersButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
refreshQueriesButton = new XButton(appContext.getString("refresh"));
bottomPanel.add(refreshQueriesButton, gbc);
refreshQueriesButton.addActionListener(new ActionListener() {
gbc.gridx++;
XButton clearAllCountersButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllCountersButton, gbc);
clearAllCountersButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
refreshCollectionsButton = new XButton(appContext.getString("refresh"));
bottomPanel.add(refreshCollectionsButton, gbc);
refreshCollectionsButton.addActionListener(new ActionListener() {
gbc.gridx++;
XButton clearAllCountersButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllCountersButton, gbc);
clearAllCountersButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
refreshQueriesButton = new XButton(appContext.getString("refresh"));
bottomPanel.add(refreshQueriesButton, gbc);
refreshQueriesButton.addActionListener(new ActionListener() {
gbc.gridx++;
XButton clearAllCountersButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllCountersButton, gbc);
clearAllCountersButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
gbc.gridx++;
panel.add(manageStatsButton = new XButton("Manage Statistics..."), gbc);
manageStatsButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
bottomPanel.add(refreshEntitiesButton = new XButton(appContext.getString("refresh")), gbc);
refreshEntitiesButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
gbc.gridx++;
XButton clearAllStatsButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllStatsButton, gbc);
clearAllStatsButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
bottomPanel.add(refreshEntitiesButton = new XButton(appContext.getString("refresh")), gbc);
refreshEntitiesButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
gbc.gridx++;
XButton clearAllStatsButton = new XButton(bundle.getString("clear.all.stats"));
bottomPanel.add(clearAllStatsButton, gbc);
clearAllStatsButton.addActionListener(new ActionListener() {
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
bottomPanel.add(refreshRegionsButton = new XButton(appContext.getString("refresh")), gbc);
refreshRegionsButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
gbc.gridx++;
bottomPanel.add(clearAlStatsButton = new XButton(bundle.getString("clear.all.stats")), gbc);
clearAlStatsButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
gbc.gridx++;
panel.add(manageStatsButton = new XButton("Manage Statistics..."), gbc);
manageStatsButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
我使用 SendInput 来模拟鼠标输入,到目前为止我可以成功地模拟左键、右键和中键。但是,我似乎无法正确模拟 xButtons。我正在定义一个输入结构如下: Win32.INPUT i = new
本文整理了Java中com.tc.admin.common.XButton.setSelected()方法的一些代码示例,展示了XButton.setSelected()的具体用法。这些代码示例主要来
本文整理了Java中com.tc.admin.common.XButton.setEnabled()方法的一些代码示例,展示了XButton.setEnabled()的具体用法。这些代码示例主要来源于
本文整理了Java中com.tc.admin.common.XButton.addActionListener()方法的一些代码示例,展示了XButton.addActionListener()的具体
本文整理了Java中com.tc.admin.common.XButton.setText()方法的一些代码示例,展示了XButton.setText()的具体用法。这些代码示例主要来源于Github
本文整理了Java中com.tc.admin.common.XButton.()方法的一些代码示例,展示了XButton.()的具体用法。这些代码示例主要来源于Github/Stackoverflow
这个问题在这里已经有了答案: Adding the "Clear" Button to an iPhone UITextField (11 个答案) 关闭 2 年前。 在我的应用程序中,我添加了一个
我是一名优秀的程序员,十分优秀!