org.ajax4jsf.event
Class EventsQueue

java.lang.Object
  extended by org.ajax4jsf.event.EventsQueue

public class EventsQueue
extends java.lang.Object

Very simple implementation of FIFO buffer, to organize JSF events queue.

Author:
asmirnov

Constructor Summary
EventsQueue()
           
 
Method Summary
 void add(javax.faces.event.FacesEvent element)
          Add event to queue.
 void clear()
           
 boolean isEmpty()
           
 javax.faces.event.FacesEvent remove()
          Remove and return first queued event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventsQueue

public EventsQueue()
Method Detail

remove

public javax.faces.event.FacesEvent remove()
                                    throws java.util.NoSuchElementException
Remove and return first queued event.

Returns:
faces event form top of queue
Throws:
java.util.NoSuchElementException - , if queue is empty.

add

public void add(javax.faces.event.FacesEvent element)
Add event to queue.

Parameters:
element -

clear

public void clear()

isEmpty

public boolean isEmpty()


Copyright © 2007. All Rights Reserved.