Index
All Classes and Interfaces|All Packages|Serialized Form
A
- actionPerformed(ActionEvent) - Method in class spin.demo.progress.PullGUI
- addDirtyRegion(JComponent, int, int, int, int) - Method in class spin.over.CheckingRepaintManager
-
Overriden to check EDT rule.
- addInvalidComponent(JComponent) - Method in class spin.over.CheckingRepaintManager
-
Overriden to check EDT rule.
- addListener(AsyncListener) - Method in interface spin.demo.async.AsyncBean
-
Add a listener.
- addListener(AsyncListener) - Method in class spin.demo.async.AsyncBeanImpl
-
Add a listener.
- addPropertyChangeListener(PropertyChangeListener) - Method in interface spin.demo.Bean
-
Add a listener to property changes.
- addPropertyChangeListener(PropertyChangeListener) - Method in class spin.demo.BeanImpl
-
Add a listener to property changes.
- addPropertyChangeListener(PropertyChangeListener) - Method in interface spin.demo.progress.ProgressBean
-
Add a listener top property changes.
- addPropertyChangeListener(PropertyChangeListener) - Method in class spin.demo.progress.ProgressBeanImpl
-
Add a listener to property changes.
- aquireDialog() - Method in class spin.demo.dispatcher.ConcealedDialogDispatcherFactory
-
Aquire a pooled dialog.
- aquireDialog() - Method in class spin.demo.dispatcher.RevealedDialogDispatcherFactory
-
Aquire a dialog for the currently active window.
- aquireDialog() - Method in class spin.off.DialogDispatcherFactory
-
Factory method to implement by subclasses to aquire a dialog.
- aquireDialog(Window) - Method in class spin.demo.dispatcher.RevealedDialogDispatcherFactory
-
Aquire a dialog for the given owning window.
- areProxyEqual(Object, Object) - Method in class spin.proxy.CGLibProxyFactory
- areProxyEqual(Object, Object) - Method in class spin.proxy.JDKProxyFactory
- areProxyEqual(Object, Object) - Method in class spin.ProxyFactory
-
Test if the given proxies of this factory are intercepting the same object.
- Assert - Class in spin.demo
-
Utility class to assert correct thread handling.
- AsyncBean - Interface in spin.demo.async
-
A common interface for an async bean.
- AsyncBeanImpl - Class in spin.demo.async
-
Implementation of an async bean.
- AsyncBeanImpl() - Constructor for class spin.demo.async.AsyncBeanImpl
- AsyncGUI - Class in spin.demo.async
-
A demonstration of a GUI handling an async bean.
- AsyncGUI(AsyncBean) - Constructor for class spin.demo.async.AsyncGUI
-
Constructor.
- AsyncListener - Interface in spin.demo.async
-
The interface for an listener to ansync bean.
- AWTReflectDispatcherFactory - Class in spin.off
-
A factory of
Dispatcher
s which uses reflection to AWT internals to dispatch events - used as default by Spin for spin-off. - AWTReflectDispatcherFactory() - Constructor for class spin.off.AWTReflectDispatcherFactory
B
- Bean - Interface in spin.demo
-
A common interface for a bean.
- BeanException - Exception in spin.demo.exception
-
A checked exception for the bean.
- BeanException() - Constructor for exception spin.demo.exception.BeanException
- BeanImpl - Class in spin.demo
-
Implementation of a bean.
- BeanImpl() - Constructor for class spin.demo.BeanImpl
-
Constructor.
C
- CallbackGUI - Class in spin.demo.prompt
-
A demonstration of GUI showing a callback prompt.
- CallbackGUI(PromptBean) - Constructor for class spin.demo.prompt.CallbackGUI
-
Constructor.
- CallGUI - Class in spin.demo.prompt
-
A demonstration of a GUI showing a call prompt.
- CallGUI(PromptBean) - Constructor for class spin.demo.prompt.CallGUI
-
Constructor.
- cancel() - Method in interface spin.demo.progress.ProgressBean
-
Cancel the progress.
- cancel() - Method in class spin.demo.progress.ProgressBeanImpl
-
Cancel the progress.
- CGLibProxyFactory - Class in spin.proxy
-
A factory of proxies utilizing CGLib.
- CGLibProxyFactory() - Constructor for class spin.proxy.CGLibProxyFactory
- checkEDTRule(Component) - Method in class spin.over.CheckingRepaintManager
-
Check EDT rule on access to the given component.
- CheckingRepaintManager - Class in spin.over
-
A repaintManager that checks bad access - i.e.
- CheckingRepaintManager() - Constructor for class spin.over.CheckingRepaintManager
- ConcealedDialogDispatcherFactory - Class in spin.demo.dispatcher
-
Implementation of a dispatcher which uses a pool of modal dialogs to dispatch events.
- ConcealedDialogDispatcherFactory() - Constructor for class spin.demo.dispatcher.ConcealedDialogDispatcherFactory
- createDialog() - Method in class spin.demo.dispatcher.ConcealedDialogDispatcherFactory
-
Factory method to create a new dialog.
- createDialog(Window) - Method in class spin.demo.dispatcher.RevealedDialogDispatcherFactory
-
Create a dialog for the given owner.
- createDispatcher() - Method in class spin.off.AWTReflectDispatcherFactory
-
Create a dispatcher for events.
- createDispatcher() - Method in class spin.off.DialogDispatcherFactory
-
Create a dispatcher.
- createDispatcher() - Method in interface spin.off.DispatcherFactory
-
Create a
Dispatcher
for AWT events. - createDispatcher() - Method in class spin.off.InternalOptionPaneDispatcherFactory
-
Create a dispatcher for events.
- createProxy(Object, Evaluator) - Method in class spin.proxy.CGLibProxyFactory
- createProxy(Object, Evaluator) - Method in class spin.proxy.JDKProxyFactory
-
The created proxy will not implement non-public interfaces from different class loaders since these yield an
IllegalAccessError
on construction of a proxy. - createProxy(Object, Evaluator) - Method in class spin.ProxyFactory
-
Create a proxy for the given object that evaluates invocations with the given evaluator.
D
- DialogDispatcher() - Constructor for class spin.off.DialogDispatcherFactory.DialogDispatcher
- DialogDispatcherFactory - Class in spin.off
-
Abstract base class for factories that dispatch events with
java.awt.Dialog
s. - DialogDispatcherFactory() - Constructor for class spin.off.DialogDispatcherFactory
- DialogDispatcherFactory.DialogDispatcher - Class in spin.off
-
Dispatcher with
Dialog
. - Directory - Class in spin.demo.complex
-
A directory.
- Directory(String, boolean) - Constructor for class spin.demo.complex.Directory
-
Constructor.
- DirectoryService - Interface in spin.demo.complex
-
A common interface for a directory service.
- DirectoryServiceException - Exception in spin.demo.complex
-
An exception of a directory service.
- DirectoryServiceException(String) - Constructor for exception spin.demo.complex.DirectoryServiceException
-
Constructor.
- DirectoryServiceGUI - Class in spin.demo.complex
-
A GUI that uses a directory service.
- DirectoryServiceGUI(DirectoryService) - Constructor for class spin.demo.complex.DirectoryServiceGUI
-
Constructor.
- Dispatcher - Interface in spin.off
-
An dispatcher of AWT events.
- DispatcherFactory - Interface in spin.off
-
A factory of
Dispatcher
s of AWT events. - DispatcherGUI - Class in spin.demo.dispatcher
-
A demonstration of a GUI using different dispatchers.
- DispatcherGUI(Bean) - Constructor for class spin.demo.dispatcher.DispatcherGUI
-
Constructor.
E
- EDTRuleViolation - Exception in spin.over
-
Exception signaling a violation of the EDT rule.
- EDTRuleViolation(Component) - Constructor for exception spin.over.EDTRuleViolation
-
Create an exception.
- evaluate() - Method in class spin.Invocation
-
Evaluate the return value (or a possibly thrown
Throwable
) by invoking to method with the arguments on the wrapped object. - evaluate(Invocation) - Method in class spin.Evaluator
-
Evaluate the given invocation.
- evaluate(Invocation) - Method in class spin.off.ListenerSpinOver
- evaluate(Invocation) - Method in class spin.off.SpinOffEvaluator
-
Spin the given invocation off the EDT.
- evaluate(Invocation) - Method in class spin.over.SpinOverEvaluator
-
Spin the given invocation on the EDT.
- Evaluator - Class in spin
-
An evaluator is used to evaluate invocations.
- Evaluator() - Constructor for class spin.Evaluator
- evaluteInvocation(Evaluator, Object, Invocation) - Method in class spin.ProxyFactory
-
Evaluate the given invocation with the given evaluator.
- ExceptionBean - Class in spin.demo.exception
-
Implementation of a exception throwing bean.
- ExceptionBean() - Constructor for class spin.demo.exception.ExceptionBean
- ExceptionGUI - Class in spin.demo.exception
-
A demonstration of a GUI handling an exception.
- ExceptionGUI(ExceptionBean) - Constructor for class spin.demo.exception.ExceptionGUI
-
Constructor.
F
- FileService - Class in spin.demo.complex
-
Implementation of a file service.
- FileService() - Constructor for class spin.demo.complex.FileService
-
Constructor.
- FileService(File) - Constructor for class spin.demo.complex.FileService
-
Constructor.
- FileService(File, FileFilter) - Constructor for class spin.demo.complex.FileService
-
Constructor.
- FileService(String) - Constructor for class spin.demo.complex.FileService
-
Constructor.
- finished(int, long) - Method in class spin.demo.async.AsyncGUI
- finished(int, long) - Method in interface spin.demo.async.AsyncListener
-
Finished.
G
- get(int) - Method in interface spin.demo.prompt.PromptBean
-
Get a value.
- get(int) - Method in class spin.demo.prompt.PromptBeanImpl
-
Get a value.
- getArguments() - Method in class spin.Invocation
-
Get the arguments for the invoked method.
- getChildren(Directory) - Method in interface spin.demo.complex.DirectoryService
-
Get the children of a directory.
- getChildren(Directory) - Method in class spin.demo.complex.FileService
-
Get the children of a directory.
- getChildren(Directory) - Method in class spin.demo.complex.LatencyService
-
Get the children of a directory.
- getChildren(Directory) - Method in class spin.demo.complex.UnreliableService
-
Get the children of a directory.
- getComponent() - Method in exception spin.over.EDTRuleViolation
-
Get the component that triggered the violation.
- getDefaultDispatcherFactory() - Static method in class spin.off.SpinOffEvaluator
-
Get the default dispatcher factory.
- getDefaultOffEvaluator() - Static method in class spin.Spin
-
Get the default evaluator for spin-off.
- getDefaultOverEvaluator() - Static method in class spin.Spin
-
Get the default evaluator for spin-over.
- getDefaultProxyFactory() - Static method in class spin.Spin
-
Get the default proxy factory.
- getDefaultStarter() - Static method in class spin.off.SpinOffEvaluator
-
Get the default starter.
- getDefaultWait() - Static method in class spin.over.SpinOverEvaluator
-
Should evaluations wait for the invocations.
- getMethod() - Method in class spin.Invocation
-
Get the invoked method.
- getName() - Method in class spin.demo.complex.Directory
-
Get the name.
- getObject() - Method in class spin.Invocation
-
Get the object this invocation is evaluated on.
- getProxy() - Method in class spin.Spin
-
Get a proxy for the wrapped object.
- getResult() - Method in class spin.Invocation
-
Get the result of evaluation
- getRoot() - Method in interface spin.demo.complex.DirectoryService
-
Get the root directory.
- getRoot() - Method in class spin.demo.complex.FileService
-
Get the root directory.
- getRoot() - Method in class spin.demo.complex.LatencyService
-
Get the root directory.
- getRoot() - Method in class spin.demo.complex.UnreliableService
-
Get the root directory.
- getStatus() - Method in interface spin.demo.progress.ProgressBean
-
Get the current status.
- getStatus() - Method in class spin.demo.progress.ProgressBeanImpl
-
Get the current status.
- getThrowable() - Method in class spin.Invocation
-
Get the throwable thrown on evaluation.
- getValue() - Method in interface spin.demo.Bean
-
Get the value.
- getValue() - Method in class spin.demo.BeanImpl
-
Get the value.
I
- indicate(EDTRuleViolation) - Method in class spin.over.CheckingRepaintManager
-
Indicate a violation of the EDT rule.
- initDialog(Dialog) - Method in class spin.demo.dispatcher.ConcealedDialogDispatcherFactory
-
Initialize the given dialog.
- initDialog(Dialog) - Method in class spin.demo.dispatcher.RevealedDialogDispatcherFactory
- InternalOptionPaneDispatcherFactory - Class in spin.off
-
A factory of
Dispatcher
s which uses modal internalJOptionPane
s to dispatch events. - InternalOptionPaneDispatcherFactory() - Constructor for class spin.off.InternalOptionPaneDispatcherFactory
- Invocation - Class in spin
-
A single invocation on a Spin proxy handled by
Evaluator
s. - Invocation(Object, Method, Object[]) - Constructor for class spin.Invocation
-
Create an invocation of the given method on the given object with the given arguments.
- isEvaluated() - Method in class spin.Invocation
-
Test if this invocation is already evaluated.
- isLeaf() - Method in class spin.demo.complex.Directory
-
Test if directory has children.
- isLiableToEDTRule(StackTraceElement) - Method in class spin.over.CheckingRepaintManager
-
Is the given stackTraceElement liable to the EDT rule.
- isListener(Class) - Method in class spin.off.ListenerSpinOver
-
Test if the given class is a listener subinterface.
- isListenerAdditionOrRemoval(Method) - Method in class spin.off.ListenerSpinOver
-
Test if the given method is a listener addition or removal.
- isProxy(Object) - Method in class spin.proxy.CGLibProxyFactory
- isProxy(Object) - Method in class spin.proxy.JDKProxyFactory
- isProxy(Object) - Method in class spin.ProxyFactory
-
Test if the given object is a proxy created by this factory.
J
- JDKProxyFactory - Class in spin.proxy
-
A factory of proxies utilizing JDK virtual proxies.
- JDKProxyFactory() - Constructor for class spin.proxy.JDKProxyFactory
L
- LatencyService - Class in spin.demo.complex
-
Service that adds a latency to another service.
- LatencyService(DirectoryService) - Constructor for class spin.demo.complex.LatencyService
-
Constructor.
- ListenerSpinOver - Class in spin.off
-
An evaluator for spin-off that automatically spins-over all arguments of a
SpinOffEvaluator
if their corresponding parameter types are subinterfaces ofjava.util.EventListener
. - ListenerSpinOver() - Constructor for class spin.off.ListenerSpinOver
-
Constructor.
- ListenerSpinOver(Evaluator) - Constructor for class spin.off.ListenerSpinOver
-
Constructor.
M
- main(String[]) - Static method in class spin.demo.async.AsyncGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.complex.DirectoryServiceGUI
-
Entrance to this complex demonstration.
- main(String[]) - Static method in class spin.demo.dispatcher.DispatcherGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.exception.ExceptionGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.progress.PullGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.progress.PushGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.prompt.CallbackGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.prompt.CallGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.SpinOffGUI
-
Entrance to this demo.
- main(String[]) - Static method in class spin.demo.SpinOverGUI
-
Entrance to this demo.
O
- off(Object) - Static method in class spin.Spin
-
Convenience method to spin-off the given object from Swing.
- offEDT() - Static method in class spin.demo.Assert
-
Must be executed off the EDT.
- onEDT() - Static method in class spin.demo.Assert
-
Must be executed on the EDT.
- onInvokeLaterNonVoidReturnType(Invocation) - Method in class spin.over.SpinOverEvaluator
-
Hook method to handle a non-void return type of a invoked method.
- over(Object) - Static method in class spin.Spin
-
Convenience method to spin-over the given object with Swing.
P
- possiblyThrowException() - Method in class spin.demo.exception.ExceptionBean
-
Possibly throw an exception.
- process(int) - Method in interface spin.demo.prompt.PromptBean
-
Process.
- process(int) - Method in class spin.demo.prompt.PromptBeanImpl
-
Process.
- process(Prompt) - Method in interface spin.demo.prompt.PromptBean
-
Process.
- process(Prompt) - Method in class spin.demo.prompt.PromptBeanImpl
-
Process.
- ProgressBean - Interface in spin.demo.progress
-
A common interface for a progress.
- ProgressBeanImpl - Class in spin.demo.progress
-
Implementation of a progress.
- ProgressBeanImpl() - Constructor for class spin.demo.progress.ProgressBeanImpl
-
Constructor.
- prompt(String) - Method in class spin.demo.prompt.CallbackGUI
-
Prompt.
- prompt(String) - Method in interface spin.demo.prompt.Prompt
-
Prompt.
- Prompt - Interface in spin.demo.prompt
-
A common interface for a prompt.
- PromptBean - Interface in spin.demo.prompt
-
A common interface for a prompt.
- PromptBeanImpl - Class in spin.demo.prompt
-
Implementation of a prompt.
- PromptBeanImpl() - Constructor for class spin.demo.prompt.PromptBeanImpl
-
Constructor.
- propertyChange(PropertyChangeEvent) - Method in class spin.demo.progress.PushGUI
- propertyChange(PropertyChangeEvent) - Method in class spin.demo.SpinOverGUI
- ProxyFactory - Class in spin
-
A factory of proxies which intercept invocations, using Evaluators to evaluate them.
- ProxyFactory() - Constructor for class spin.ProxyFactory
- PullGUI - Class in spin.demo.progress
-
A demonstration of a GUI showing pulled progress.
- PullGUI(ProgressBean) - Constructor for class spin.demo.progress.PullGUI
-
Constructor.
- PushGUI - Class in spin.demo.progress
-
A demonstration of GUI showing pushed progress.
- PushGUI(ProgressBean) - Constructor for class spin.demo.progress.PushGUI
-
Constructor.
R
- releaseDialog(Dialog) - Method in class spin.demo.dispatcher.ConcealedDialogDispatcherFactory
-
Release a pooled dialog.
- releaseDialog(Dialog) - Method in class spin.demo.dispatcher.RevealedDialogDispatcherFactory
- releaseDialog(Dialog) - Method in class spin.off.DialogDispatcherFactory
-
Factory method to implement by subclasses to release a dialog.
- resultOrThrow() - Method in class spin.Invocation
-
Get the result or throwable of this invocation's evaluation.
- RevealedDialogDispatcherFactory - Class in spin.demo.dispatcher
-
Implementation of a dispatcher which uses dialogs to dispatch events.
- RevealedDialogDispatcherFactory() - Constructor for class spin.demo.dispatcher.RevealedDialogDispatcherFactory
- run() - Method in class spin.demo.async.AsyncBeanImpl
- run() - Method in class spin.off.DialogDispatcherFactory.DialogDispatcher
-
Called on the EDT to stop the dispatching.
S
- setArguments(Object[]) - Method in class spin.Invocation
-
Set the arguments for the invoked method.
- setDefaultDispatcherFactory(DispatcherFactory) - Static method in class spin.off.SpinOffEvaluator
-
Set the default dispatcher factory.
- setDefaultOffEvaluator(Evaluator) - Static method in class spin.Spin
-
Set the default evaluator for spin-off.
- setDefaultOverEvaluator(Evaluator) - Static method in class spin.Spin
-
Set the default evaluator for spin-over.
- setDefaultProxyFactory(ProxyFactory) - Static method in class spin.Spin
-
Set the default factory of proxies.
- setDefaultStarter(Starter) - Static method in class spin.off.SpinOffEvaluator
-
Set the default starter.
- setDefaultWait(boolean) - Static method in class spin.over.SpinOverEvaluator
-
Should evaluations wait for the invocations.
- setMethod(Method) - Method in class spin.Invocation
-
Set the method to invoke.
- setObject(Object) - Method in class spin.Invocation
-
Set the object this invocation is evaluated on.
- setResult(Object) - Method in class spin.Invocation
-
Set the result of evaluation
- setThrowable(Throwable) - Method in class spin.Invocation
-
Set the throwable thrown on evaluation.
- setValue(String) - Method in interface spin.demo.Bean
-
Set the value.
- setValue(String) - Method in class spin.demo.BeanImpl
-
Set the value.
- SimpleStarter - Class in spin.off
-
Simple implementation of a
Starter
that creates a new thread for each invocation ofSimpleStarter.start(Runnable)
. - SimpleStarter() - Constructor for class spin.off.SimpleStarter
- size() - Method in interface spin.demo.prompt.PromptBean
-
Size.
- size() - Method in class spin.demo.prompt.PromptBeanImpl
-
Size.
- spin - package spin
- Spin - Class in spin
-
Spin offers a transparent threading solution for developing non-freezing Swing applications.
- Spin(Object, Evaluator) - Constructor for class spin.Spin
-
Create a Spin wrapper for the given object.
- Spin(Object, ProxyFactory, Evaluator) - Constructor for class spin.Spin
-
Create a Spin wrapper for the given object.
- spin.demo - package spin.demo
- spin.demo.async - package spin.demo.async
- spin.demo.complex - package spin.demo.complex
- spin.demo.dispatcher - package spin.demo.dispatcher
- spin.demo.exception - package spin.demo.exception
- spin.demo.progress - package spin.demo.progress
- spin.demo.prompt - package spin.demo.prompt
- spin.off - package spin.off
- spin.over - package spin.over
- spin.proxy - package spin.proxy
- SpinOffEvaluator - Class in spin.off
-
An evaluator for spin-off, i.e.
- SpinOffEvaluator() - Constructor for class spin.off.SpinOffEvaluator
-
Create an evaluator for spin-off using the default dispatcherFactory and starter.
- SpinOffEvaluator(DispatcherFactory) - Constructor for class spin.off.SpinOffEvaluator
-
Create an evaluator for spin-off using the default starter.
- SpinOffEvaluator(DispatcherFactory, Starter) - Constructor for class spin.off.SpinOffEvaluator
-
Create an evaluator for spin-off.
- SpinOffEvaluator(Starter) - Constructor for class spin.off.SpinOffEvaluator
-
Create an evaluator for spin-off using the default dispatcherFactory.
- SpinOffGUI - Class in spin.demo
-
A demonstration of a GUI using spin off.
- SpinOffGUI(Bean) - Constructor for class spin.demo.SpinOffGUI
-
Constructor.
- spinOver(Object) - Method in class spin.off.ListenerSpinOver
-
Spin-over the given object.
- SpinOverEvaluator - Class in spin.over
-
An evaluator for spin-over, i.e.
- SpinOverEvaluator() - Constructor for class spin.over.SpinOverEvaluator
-
Create an evaluator for spin-over using the default wait setting.
- SpinOverEvaluator(boolean) - Constructor for class spin.over.SpinOverEvaluator
-
Create an evaluator for spin-over.
- SpinOverGUI - Class in spin.demo
-
A demonstration of a GUI using spin over.
- SpinOverGUI() - Constructor for class spin.demo.SpinOverGUI
-
Constructor.
- start() - Method in interface spin.demo.async.AsyncBean
-
Start this bean in an asynchron thread.
- start() - Method in class spin.demo.async.AsyncBeanImpl
-
Start this bean in an asynchron thread.
- start() - Method in interface spin.demo.progress.ProgressBean
-
Start.
- start() - Method in class spin.demo.progress.ProgressBeanImpl
-
Start.
- start() - Method in class spin.off.DialogDispatcherFactory.DialogDispatcher
-
Start the dispatching.
- start() - Method in interface spin.off.Dispatcher
-
Start dispatching events.
- start(Runnable) - Method in class spin.off.SimpleStarter
-
Start a runnable asynchronously.
- start(Runnable) - Method in interface spin.off.Starter
-
Start a
Runnable
asynchronously. - Starter - Interface in spin.off
-
A
Starter
startsRunnable
s asynchronously - used bySpinOffEvaluator
s to spin-off non UI computations from the EDT. - stop() - Method in class spin.off.DialogDispatcherFactory.DialogDispatcher
-
Stop dispatching.
- stop() - Method in interface spin.off.Dispatcher
-
Stop dispatching events.
U
- UnreliableService - Class in spin.demo.complex
-
Service that adds a unreliability to another service.
- UnreliableService(DirectoryService) - Constructor for class spin.demo.complex.UnreliableService
-
Constructor.
V
- violatesEDTRule(Component) - Method in class spin.over.CheckingRepaintManager
-
Does acces to the given component violate the EDT rule.
All Classes and Interfaces|All Packages|Serialized Form