sears.tools.eawt
Class ApplicationEventWrapper

java.lang.Object
  extended by sears.tools.eawt.ApplicationEventWrapper

public class ApplicationEventWrapper
extends java.lang.Object

this class is a wrap class of class com.apple.eawt.ApplicationEvent
With this class we can access to the method of the Apple class.


Constructor Summary
ApplicationEventWrapper()
          Construct a new ApplicationEventWrapper
 
Method Summary
 void applicationEventObject(java.lang.Object anApplicationEventObject)
          set the ApplicationEvent object
 java.lang.String getFilename()
          com.apple.eawt.ApplicationEvent#getFilename()
Provides the filename associated with a particular AppleEvent.
 boolean isHandled()
          com.apple.eawt.ApplicationEvent#isHandled()
Determines whether an ApplicationListener has acted on a particular event.
 void setHandled(boolean state)
          com.apple.eawt.ApplicationEvent#setHandled(boolean)
Sets the state of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationEventWrapper

public ApplicationEventWrapper()
Construct a new ApplicationEventWrapper

Method Detail

applicationEventObject

public void applicationEventObject(java.lang.Object anApplicationEventObject)
set the ApplicationEvent object

Parameters:
anApplicationEventObject - must be instance of ApplicationEvent

getFilename

public java.lang.String getFilename()
com.apple.eawt.ApplicationEvent#getFilename()
Provides the filename associated with a particular AppleEvent.
If applicationEventObject isn't set or is not instance of ApplicationEvent or is null,
null is return.

Returns:
the full path to the file associated with the event, if applicable, otherwise null

isHandled

public boolean isHandled()
com.apple.eawt.ApplicationEvent#isHandled()
Determines whether an ApplicationListener has acted on a particular event.
If applicationEventObject isn't set or is not instance of ApplicationEvent or is null,
false is return.

Returns:
true if the event has been handled, otherwise false

setHandled

public void setHandled(boolean state)
com.apple.eawt.ApplicationEvent#setHandled(boolean)
Sets the state of the event.
If applicationEventObject isn't set or is not instance of ApplicationEvent or is null,
this method is a no op

Parameters:
state - true if the event has been handled, otherwise false.