|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsears.tools.eawt.ApplicationWrapper
public class ApplicationWrapper
this class is a wrap class of class com.apple.eawt.Application
With this class we can access to the method of the Apple class.
Constructor Summary | |
---|---|
ApplicationWrapper()
Construct a new ApplicationWrapper object, get back Classes and methods |
Method Summary | |
---|---|
void |
addApplicationListener(java.util.EventListener listener)
com.apple.eawt.ApplicationListener#addApplicationListener(com.apple.eawt.ApplicationEvent) Adds the specified ApplicationListener as a receiver of callbacks from this class. |
void |
addPreferencesMenuItem()
com.apple.eawt.Application#addPreferencesMenuItem() Adds the Preferences item to the application menu if the item is not already present. |
static ApplicationWrapper |
getApplication()
this method return an instance object of the class |
void |
setEnabledPreferencesMenu(boolean enable)
com.apple.eawt.ApplicationListener#setEnabledPreferencesMenu(boolean) Enables the About item in the application menu. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationWrapper() throws AppException
AppException
- if an error occurs during initializationMethod Detail |
---|
public static ApplicationWrapper getApplication() throws AppException
AppException
- if instantiation failedpublic void addPreferencesMenuItem()
public void setEnabledPreferencesMenu(boolean enable)
enable
- specifies whether the About item in the application menu should be enabled (true) or not (false)public void addApplicationListener(java.util.EventListener listener)
listener
- an implementation of ApplicationListener that handles
ApplicationEvents generated by this class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |