Foxtrot
Version 2.0
A C E F G H I J P R S T W

A

AbstractWorkerThread - Class in foxtrot
Partial implementation of the WorkerThread interface.
AbstractWorkerThread() - Constructor for class foxtrot.AbstractWorkerThread
Creates a new instance of this AbstractWorkerThread, called by subclasses.
accept(AWTEvent) - Method in interface foxtrot.pumps.EventFilter
Callback called by EventPumps to filter the given AWT event.

C

canPumpSequencedEvent(AWTEvent) - Method in class foxtrot.pumps.SunJDK141ConditionalEventPump
There are 2 cases when a SequencedEvent 'event' is pumped by Foxtrot: 1) Foxtrot was NOT called by another SequencedEvent, so 'event' is the first SequencedEvent of a series of SequencedEvents. 2) Foxtrot was called by another SequencedEvent, and thus 'event' is not the first SequencedEvent of a series of SequencedEvents.
canPumpSequencedEvent(AWTEvent) - Method in class foxtrot.pumps.SunJDK14ConditionalEventPump
There are 2 cases when a SequencedEvent 'event' is pumped by Foxtrot: 1) Foxtrot was NOT called by another SequencedEvent, so 'event' is the first SequencedEvent of a series of SequencedEvents. 2) Foxtrot was called by another SequencedEvent, and thus 'event' is not the first SequencedEvent of a series of SequencedEvents.
create(Class, EventListener) - Static method in class foxtrot.utils.EventListenerProxy
Creates a proxy for the given listener.

E

EventFilter - Interface in foxtrot.pumps
Filters AWT events pumped by EventPumps before they're dispatched.
EventFilterable - Interface in foxtrot.pumps
EventPumps that implement this interface have the possibility to filter AWT events before they are dispatched.
EventListenerProxy - Class in foxtrot.utils
This class wraps an EventListener subclass (and thus any AWT/Swing event listener such as ActionListeners, MouseListeners and so on) making sure that if a wrapped listener is executing, another wrapped listener (even of different type) it is not executed.
EventListenerProxy(EventListener) - Constructor for class foxtrot.utils.EventListenerProxy
Creates an instance that wraps the given listener
EventPump - Interface in foxtrot
Worker uses an implementation of this interface to pump AWT events from the standard AWT Event Queue while executing Tasks.

F

foxtrot - package foxtrot
 
foxtrot.pumps - package foxtrot.pumps
 
foxtrot.utils - package foxtrot.utils
 
foxtrot.workers - package foxtrot.workers
 

G

getEventFilter() - Method in interface foxtrot.pumps.EventFilterable
Returns the EventFilter
getEventFilter() - Method in class foxtrot.pumps.SunJDK14ConditionalEventPump
Returns the EventFilter
getEventPump() - Static method in class foxtrot.Worker
Returns the EventPump used to pump events from the AWT Event Queue.
getThreadName() - Method in class foxtrot.workers.SingleWorkerThread
Returns the name of the worker thread used by this WorkerThread.
getWorkerThread() - Static method in class foxtrot.Worker
Returns the WorkerThread used to run Tasks or Jobs in a thread that is not the Event Dispatch Thread.

H

handle(Throwable) - Method in class foxtrot.pumps.SunJDK14ConditionalEventPump.ThrowableHandler
The callback method invoked by the AWT event dispatch mechanism when an unexpected exception or error is thrown during event dispatching.

I

invoke(Object, Method, Object[]) - Method in class foxtrot.utils.EventListenerProxy
isAlive() - Method in class foxtrot.workers.SingleWorkerThread
Returns whether this WorkerThread is alive.
isAlive() - Method in interface foxtrot.WorkerThread
Returns whether this WorkerThread is alive.
isCompleted() - Method in class foxtrot.Task
Returns whether the execution of this Task has been completed or not.
isThreadInterrupted() - Method in class foxtrot.workers.SingleWorkerThread
Returns whether the worker thread has been interrupted or not.
isWorkerThread() - Method in class foxtrot.workers.SingleWorkerThread
Returns whether the current thread is a thread used by the implementation of this WorkerThread to run Tasks.
isWorkerThread() - Method in interface foxtrot.WorkerThread
Returns whether the current thread is a thread used by the implementation of this WorkerThread to run Tasks.

J

Job - Class in foxtrot
A time-consuming task to be executed in the Worker Thread that does not throw checked exceptions.
Job() - Constructor for class foxtrot.Job
 

P

post(Task) - Static method in class foxtrot.Worker
Enqueues the given Task to be executed in the worker thread.
post(Job) - Static method in class foxtrot.Worker
Enqueues the given Job to be executed in the worker thread.
postTask(Task) - Method in class foxtrot.workers.SingleWorkerThread
Posts the given Task onto an internal queue.
postTask(Task) - Method in interface foxtrot.WorkerThread
Posts a Task to be run by this WorkerThread in a thread that is not the Event Dispatch Thread.
pumpEvents(Task) - Method in interface foxtrot.EventPump
Pumps AWT events from the standard AWT Event Queue and dispatches the events until the given task is completed; must be called from the Event Dispatch Thread.
pumpEvents(Task) - Method in class foxtrot.pumps.SunJDK14ConditionalEventPump
Pumps AWT events from the standard AWT Event Queue and dispatches the events until the given task is completed; must be called from the Event Dispatch Thread.

R

run() - Method in class foxtrot.Job
The method to implement with time-consuming code.
run() - Method in class foxtrot.Task
The method to implement with time-consuming code.
run() - Method in class foxtrot.workers.SingleWorkerThread
The worker thread dequeues one Task from the internal queue via takeTask() and then executes it.
run(Task) - Method in class foxtrot.workers.SingleWorkerThread
Executes the given Task.
runTask(Task) - Method in class foxtrot.AbstractWorkerThread
Runs the given Task.
runTask(Task) - Method in interface foxtrot.WorkerThread
Runs the given Task.

S

sequencedEventClass - Static variable in class foxtrot.pumps.SunJDK14ConditionalEventPump
Implements the java.awt.Conditional interface, that is package private, with a JDK 1.3+ dynamic proxy.
setEventFilter(EventFilter) - Method in interface foxtrot.pumps.EventFilterable
Sets the EventFilter
setEventFilter(EventFilter) - Method in class foxtrot.pumps.SunJDK14ConditionalEventPump
Sets the EventFilter
setEventPump(EventPump) - Static method in class foxtrot.Worker
Sets the EventPump to be used to pump events from the AWT Event Queue.
setWorkerThread(WorkerThread) - Static method in class foxtrot.Worker
Sets the WorkerThread used to run Tasks or Jobs in a thread that is not the Event Dispatch Thread.
SingleWorkerThread - Class in foxtrot.workers
Full implementation of WorkerThread that uses a single worker thread to run Tasks subclasses.
SingleWorkerThread() - Constructor for class foxtrot.workers.SingleWorkerThread
 
start() - Method in class foxtrot.workers.SingleWorkerThread
Starts this WorkerThread, responsible for running Tasks (not in the Event Dispatch Thread).
start() - Method in interface foxtrot.WorkerThread
Starts this WorkerThread, responsible for running Tasks (not in the Event Dispatch Thread).
stop() - Method in class foxtrot.workers.SingleWorkerThread
Stops abruptly this WorkerThread.
SunJDK141ConditionalEventPump - Class in foxtrot.pumps
Specialized class for Sun's JDK 1.4.1
SunJDK141ConditionalEventPump() - Constructor for class foxtrot.pumps.SunJDK141ConditionalEventPump
 
SunJDK14ConditionalEventPump - Class in foxtrot.pumps
This implementation of EventPump calls the package protected method java.awt.EventDispatchThread.pumpEvents(Conditional) and can be used with Sun JDK 1.4.1+ only.
SunJDK14ConditionalEventPump() - Constructor for class foxtrot.pumps.SunJDK14ConditionalEventPump
 
SunJDK14ConditionalEventPump.ThrowableHandler - Class in foxtrot.pumps
Handler for RuntimeExceptions or Errors thrown during dispatching of AWT events.
SunJDK14ConditionalEventPump.ThrowableHandler() - Constructor for class foxtrot.pumps.SunJDK14ConditionalEventPump.ThrowableHandler
 

T

takeTask() - Method in class foxtrot.workers.SingleWorkerThread
Removes and returns the first available Task from the internal queue.
Task - Class in foxtrot
A time-consuming task to be executed in the Worker Thread that may throw checked exceptions.
Task() - Constructor for class foxtrot.Task
Creates a new Task.

W

Worker - Class in foxtrot
The class that execute time-consuming Tasks and Jobs.
WorkerThread - Interface in foxtrot
Implementations of this interface run Tasks in a thread that is not the Event Dispatch Thread.

A C E F G H I J P R S T W
Foxtrot
Version 2.0