本文整理匯總了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());
}
示例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);
}
示例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) {
}
示例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);
}
示例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);
}