net.datacrow.core.wf.requests
Class Requests

java.lang.Object
  extended by net.datacrow.core.wf.requests.Requests
All Implemented Interfaces:
java.io.Serializable

public class Requests
extends java.lang.Object
implements java.io.Serializable

Collection of requests. Requests can be added to queries and are executed after the query has been performed. A request is in most cases a UI related task which needs to be executed without locking the GUI.

Author:
Robert Jan van der Waals
See Also:
IRequest, IUpdateUIRequest, Serialized Form

Constructor Summary
Requests()
          Create a new empty instance.
Requests(IRequest request)
          Create a new instance and adds the provided request.
 
Method Summary
 void add(IRequest request)
          Adds a request.
 void clear()
          Free resources.
 IRequest[] get()
          Gets the requests as an array.
 void remove(IRequest request)
          Removes the specified request.
 int size()
          Total count of requests part of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Requests

public Requests()
Create a new empty instance.


Requests

public Requests(IRequest request)
Create a new instance and adds the provided request.

Method Detail

size

public int size()
Total count of requests part of this instance.


add

public void add(IRequest request)
Adds a request.

Parameters:
request -

remove

public void remove(IRequest request)
Removes the specified request.

Parameters:
request -

clear

public void clear()
Free resources.


get

public IRequest[] get()
Gets the requests as an array.

Returns:
The array (filled or empty)