java.awt.desktop.AboutHandler Java Examples

The following examples show how to use java.awt.desktop.AboutHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: _AppEventHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
void performUsing(final AboutHandler handler, final _NativeEvent event) {
    handler.handleAbout(new AboutEvent());
}
 
Example #2
Source File: Desktop.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * 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);
}
 
Example #3
Source File: DesktopPeer.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * 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) {
}
 
Example #4
Source File: Desktop.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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);
}
 
Example #5
Source File: DesktopPeer.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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) {
}
 
Example #6
Source File: Application.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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);
}