本文整理汇总了Java中org.simplericity.macify.eawt.ApplicationEvent.setHandled方法的典型用法代码示例。如果您正苦于以下问题:Java ApplicationEvent.setHandled方法的具体用法?Java ApplicationEvent.setHandled怎么用?Java ApplicationEvent.setHandled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.simplericity.macify.eawt.ApplicationEvent
的用法示例。
在下文中一共展示了ApplicationEvent.setHandled方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleOpenFile
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
public void handleOpenFile(ApplicationEvent ev)
{
String f = ev.getFilename();
if (f.endsWith(".xml"))
{
open(ev.getFilename());
ev.setHandled(true);
}
}
示例2: handleOpenFile
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
@Override
public void handleOpenFile(ApplicationEvent e) {
try {
if (e.getFilename() != null) {
fileManager.openDataflow(null, new File(e.getFilename()));
e.setHandled(true);
}
} catch (OpenException | IllegalStateException ex) {
logger.warn("Could not open file " + e.getFilename(), ex);
}
}
示例3: handleAbout
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
@Override
@Deprecated
public void handleAbout(ApplicationEvent event) {
coreController.displayView(ViewEnum.TRANSACTIONS_VIEW);
event.setHandled(true);
}
示例4: handleAbout
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
public void handleAbout(ApplicationEvent ev)
{
showAboutFrame();
ev.setHandled(true);
}
示例5: handleAbout
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
@Override
public void handleAbout(ApplicationEvent e) {
showAboutDialog();
e.setHandled(true);
}
示例6: handleQuit
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
@Override
public void handleQuit(ApplicationEvent e) {
e.setHandled(true);
exit();
}
示例7: handlePreferences
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
@Override
public void handlePreferences(ApplicationEvent e) {
e.setHandled(true);
t2ConfigurationFrame.showFrame();
}
示例8: handleAbout
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
@Override
public void handleAbout(final ApplicationEvent event) {
final AboutDialog dialog = new AboutDialog(_windowContext);
dialog.setVisible(true);
event.setHandled(true);
}
示例9: handleAbout
import org.simplericity.macify.eawt.ApplicationEvent; //导入方法依赖的package包/类
@Override
@Deprecated
public void handleAbout(ApplicationEvent event) {
controller.displayView(View.HELP_ABOUT_VIEW);
event.setHandled(true);
}