当前位置: 首页>>代码示例>>Java>>正文


Java AboutHandler类代码示例

本文整理汇总了Java中java.awt.desktop.AboutHandler的典型用法代码示例。如果您正苦于以下问题:Java AboutHandler类的具体用法?Java AboutHandler怎么用?Java AboutHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AboutHandler类属于java.awt.desktop包,在下文中一共展示了AboutHandler类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: performUsing

import java.awt.desktop.AboutHandler; //导入依赖的package包/类
void performUsing(final AboutHandler handler, final _NativeEvent event) {
    handler.handleAbout(new AboutEvent());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:4,代码来源:_AppEventHandler.java

示例2: setAboutHandler

import java.awt.desktop.AboutHandler; //导入依赖的package包/类
/**
 * Installs a handler to show a custom About window for your application.
 * <p>
 * Setting the {@link java.awt.desktop.AboutHandler} to {@code null} reverts it to the
 * default behavior.
 *
 * @param aboutHandler the handler to respond to the
 * {@link java.awt.desktop.AboutHandler#handleAbout(AboutEvent)} message
 *
 * @throws SecurityException if a security manager exists and it
 * denies the
 * {@code RuntimePermission("canProcessApplicationEvents")}
 * permission
 * @throws UnsupportedOperationException if the current platform
 * does not support the {@link Desktop.Action#APP_ABOUT} action
 *
 * @since 9
 */
public void setAboutHandler(final AboutHandler aboutHandler) {
    checkEventsProcessingPermission();
    checkActionSupport(Action.APP_ABOUT);
    peer.setAboutHandler(aboutHandler);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:24,代码来源:Desktop.java

示例3: setAboutHandler

import java.awt.desktop.AboutHandler; //导入依赖的package包/类
/**
 * Installs a handler to show a custom About window for your application.
 * <p>
 * Setting the {@link AboutHandler} to {@code null} reverts it to the
 * default behavior.
 *
 * @param aboutHandler the handler to respond to the
 * {@link AboutHandler#handleAbout} )} message
 */
default void setAboutHandler(final AboutHandler aboutHandler) {
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:12,代码来源:DesktopPeer.java

示例4: setAboutHandler

import java.awt.desktop.AboutHandler; //导入依赖的package包/类
/**
 * Installs a handler to show a custom About window for your application.
 *
 * Setting the {@link AboutHandler} to {@code null} reverts it to the default Cocoa About window.
 *
 * @param aboutHandler the handler to respond to the {@link AboutHandler#handleAbout} message
 * @since Java for Mac OS X 10.6 Update 3
 * @since Java for Mac OS X 10.5 Update 8
 */
public void setAboutHandler(final AboutHandler aboutHandler) {
    eventHandler.aboutDispatcher.setHandler(aboutHandler);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:Application.java

示例5: setAboutHandler

import java.awt.desktop.AboutHandler; //导入依赖的package包/类
/**
 * Installs a handler to show a custom About window for your application.
 * <p>
 * Setting the {@link java.awt.desktop.AboutHandler} to {@code null} reverts it to the
 * default behavior.
 *
 * @param aboutHandler the handler to respond to the
 * {@link java.awt.desktop.AboutHandler#handleAbout} )} message
 *
 * @throws SecurityException if a security manager exists and it
 * denies the
 * {@code AWTPermission("showWindowWithoutWarningBanner")}
 * permission
 * @throws UnsupportedOperationException if the current platform
 * does not support the {@link Desktop.Action#APP_ABOUT} action
 *
 * @since 9
 */
public void setAboutHandler(final AboutHandler aboutHandler) {
    checkAWTPermission();
    checkActionSupport(Action.APP_ABOUT);
    peer.setAboutHandler(aboutHandler);
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:24,代码来源:Desktop.java


注:本文中的java.awt.desktop.AboutHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。