Java 类java.awt.desktop.AboutHandler 实例源码

项目:openjdk-jdk10    文件:_AppEventHandler.java   
void performUsing(final AboutHandler handler, final _NativeEvent event) {
    handler.handleAbout(new AboutEvent());
}
项目:openjdk9    文件:_AppEventHandler.java   
void performUsing(final AboutHandler handler, final _NativeEvent event) {
    handler.handleAbout(new AboutEvent());
}
项目:openjdk-jdk10    文件:Desktop.java   
/**
 * 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);
}
项目:openjdk-jdk10    文件:DesktopPeer.java   
/**
 * 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) {
}
项目:openjdk-jdk10    文件:Application.java   
/**
 * 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);
}
项目:openjdk9    文件:Desktop.java   
/**
 * 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);
}
项目:openjdk9    文件:DesktopPeer.java   
/**
 * 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) {
}