當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。