Class Index | File Index

Classes


Class myfaces._impl._util._Queue


Defined in: _Queue.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Queue implementation used by our runtime system improved version of
Method Summary
Method Attributes Method Name and Description
 
arrFilter(closure)
Simple filter
 
resets the queue to initial empty state
 
Standard constructor
 
dequeues the last element in the queue
 
each(closure)
simple foreach
 
enqueue(element)
adds a listener to the queue
 
indexOf(element)
 
 
 
remove(element)
removes a listener form the queue
 
setQueueSize(newSize)
Sets the current queue to a new size, all overflow elements at the end are stripped automatically
Class Detail
myfaces._impl._util._Queue()
Queue implementation used by our runtime system improved version of
See:
http://safalra.com/web-design/javascript/queues/Queue.js
Method Detail
arrFilter(closure)
Simple filter
Parameters:
closure
a closure which returns true or false depending whether the filter has triggered
Returns:
an array of filtered queue entries

cleanup()
resets the queue to initial empty state

constructor_()
Standard constructor

{Object} dequeue()
dequeues the last element in the queue
Returns:
{Object} element which is dequeued

each(closure)
simple foreach
Parameters:
closure
a closure which processes the element

enqueue(element)
adds a listener to the queue
Parameters:
element
the listener to be added

indexOf(element)
Parameters:
element
Returns:
the current index of the element in the queue or -1 if it is not found

isEmpty()
Returns:
true if the current queue is empty false otherwise

length()
Returns:
the length of the queue as integer

remove(element)
removes a listener form the queue
Parameters:
element
the listener to be removed

setQueueSize(newSize)
Sets the current queue to a new size, all overflow elements at the end are stripped automatically
Parameters:
{int} newSize
as numeric value

Documentation generated by JsDoc Toolkit 2.1.0 on Mon Feb 24 2014 18:10:41 GMT-0500 (COT)