net.sf.webmancer.base
Interface IEventQueue

All Known Implementing Classes:
EventQueue

public interface IEventQueue

This interface represents a queue of events that wait for handling by a tree of widgets.

Author:
Michal Burda

Method Summary
 boolean hasEvents()
          Determine whether there are some events in the queue.
 Event nextEvent()
          Return the next event in the queue or null if the queue is empty.
 void putEvent(Event event)
          Put the event into the event queue.
 

Method Detail

putEvent

void putEvent(Event event)
Put the event into the event queue.

Parameters:
event - The event to put into this queue (must not be null)

hasEvents

boolean hasEvents()
Determine whether there are some events in the queue.

Returns:
true if there are some events in the queue.

nextEvent

Event nextEvent()
Return the next event in the queue or null if the queue is empty.

Returns:
the next event stored in the queue or null if the queue is empty.


Copyright © 2006-2007. All Rights Reserved.