net.user1.union.core.event
Interface Event

All Known Subinterfaces:
RemoteEvent
All Known Implementing Classes:
AccountEvent, BaseEvent, ClientEvent, ModuleEvent, RemoteRoomEvent, RemoteServerEvent, RoomEvent, ServerEvent, UPCEvent

public interface Event

All events dispatched in the server implement the Event interface.


Method Summary
 java.lang.Object getProperty(java.lang.String name)
          Gets a named property for the event.
 boolean isCanceled()
          Returns true if the default action is to be prevented.
 void preventDefault()
          Invoking this method on an event will prevent it's default action, if any, from occuring.
 

Method Detail

getProperty

java.lang.Object getProperty(java.lang.String name)
Gets a named property for the event. For example in a ServerEvent.ROOM_CREATE_REQUESTED the RoomDef used for the create room request is retrieved from the property PROP_PASSWORD.

Parameters:
name - the name of the property
Returns:
a named property for the even

isCanceled

boolean isCanceled()
Returns true if the default action is to be prevented.

Returns:
true if the default action is to be prevented

preventDefault

void preventDefault()
Invoking this method on an event will prevent it's default action, if any, from occuring. If the event has no default action then this method does nothing.



Copyright USER1 Subsystems Corporation - Tue Jan 28 2014, 05:05 PM -0500