com.virtuosotechnologies.lib.platform
Class PlatformEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.virtuosotechnologies.lib.platform.PlatformEvent
All Implemented Interfaces:
Serializable

public class PlatformEvent
extends EventObject

A platform-specific event.

See Also:
Serialized Form

Nested Class Summary
static class PlatformEvent.Type
          An enumeration of event types.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PlatformEvent(PlatformEvent.Type type)
          Constructor
 
Method Summary
static Object getGlobalSource()
          Get the global event source used for all platform events
 PlatformEvent.Type getType()
          Get the event type
 boolean isHandled()
          Has the event been handled?
 void setHandled()
          Mark the event as having been handled.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlatformEvent

public PlatformEvent(PlatformEvent.Type type)
Constructor

Parameters:
type - type of event
Method Detail

getType

public final PlatformEvent.Type getType()
Get the event type

Returns:
event type

isHandled

public final boolean isHandled()
Has the event been handled?

Returns:
true if the event has been handled

setHandled

public final void setHandled()
Mark the event as having been handled.


getGlobalSource

public static Object getGlobalSource()
Get the global event source used for all platform events