本文整理汇总了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);
}