1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.4.2_01) on Tue Oct 18 20:10:26 CEST 2005 -->
10
<META NAME="keywords" CONTENT="spin.off.ListenerSpinOver class">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
parent.document.title="ListenerSpinOver";
23
<BODY BGCOLOR="white" onload="windowTitle();">
26
<!-- ========= START OF TOP NAVBAR ======= -->
27
<A NAME="navbar_top"><!-- --></A>
28
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
31
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32
<A NAME="navbar_top_firstrow"><!-- --></A>
33
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34
<TR ALIGN="center" VALIGN="top">
35
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
36
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
37
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
38
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
39
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
45
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52
<A HREF="../../spin/off/InternalOptionPaneDispatcherFactory.html" title="class in spin.off"><B>PREV CLASS</B></A>
53
<A HREF="../../spin/off/SimpleStarter.html" title="class in spin.off"><B>NEXT CLASS</B></A></FONT></TD>
54
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55
<A HREF="../../index.html" target="_top"><B>FRAMES</B></A>
56
<A HREF="ListenerSpinOver.html" target="_top"><B>NO FRAMES</B></A>
57
<SCRIPT type="text/javascript">
60
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
65
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
71
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
73
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
77
<A NAME="skip-navbar_top"></A>
78
<!-- ========= END OF TOP NAVBAR ========= -->
81
<!-- ======== START OF CLASS DATA ======== -->
86
Class ListenerSpinOver</H2>
89
<IMG SRC="../../resources/inherit.gif" ALT="extended by"><A HREF="../../spin/Evaluator.html" title="class in spin">spin.Evaluator</A>
90
<IMG SRC="../../resources/inherit.gif" ALT="extended by"><B>spin.off.ListenerSpinOver</B>
94
<DT>public class <B>ListenerSpinOver</B><DT>extends <A HREF="../../spin/Evaluator.html" title="class in spin">Evaluator</A></DL>
97
An evaluator for spin-off that automatically spins-over all
98
arguments of a <A HREF="../../spin/off/SpinOffEvaluator.html" title="class in spin.off"><CODE>SpinOffEvaluator</CODE></A> if their corresponding parameter
99
types are subinterfaces of <code>java.util.EventListener</code>.
101
Use an instance of this class on construction of a <em>Spin</em> object
102
or install it globally by calling the static method:
104
Spin.setDefaultOffEvaluator(new ListenerSpinOver());
110
<DT><B>See Also:</B><DD><A HREF="../../spin/off/ListenerSpinOver.html#isListenerAdditionOrRemoval(java.lang.reflect.Method)"><CODE>isListenerAdditionOrRemoval(java.lang.reflect.Method)</CODE></A>,
111
<A HREF="../../spin/off/ListenerSpinOver.html#isListener(java.lang.Class)"><CODE>isListener(java.lang.Class)</CODE></A></DL>
115
<!-- ======== NESTED CLASS SUMMARY ======== -->
118
<!-- =========== FIELD SUMMARY =========== -->
121
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
123
<A NAME="constructor_summary"><!-- --></A>
124
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
125
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
126
<TD COLSPAN=2><FONT SIZE="+2">
127
<B>Constructor Summary</B></FONT></TD>
129
<TR BGCOLOR="white" CLASS="TableRowColor">
130
<TD><CODE><B><A HREF="../../spin/off/ListenerSpinOver.html#ListenerSpinOver()">ListenerSpinOver</A></B>()</CODE>
133
</TD>
135
<TR BGCOLOR="white" CLASS="TableRowColor">
136
<TD><CODE><B><A HREF="../../spin/off/ListenerSpinOver.html#ListenerSpinOver(spin.Evaluator)">ListenerSpinOver</A></B>(<A HREF="../../spin/Evaluator.html" title="class in spin">Evaluator</A> evaluator)</CODE>
139
</TD>
143
<!-- ========== METHOD SUMMARY =========== -->
145
<A NAME="method_summary"><!-- --></A>
146
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
147
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
148
<TD COLSPAN=2><FONT SIZE="+2">
149
<B>Method Summary</B></FONT></TD>
151
<TR BGCOLOR="white" CLASS="TableRowColor">
152
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153
<CODE> void</CODE></FONT></TD>
154
<TD><CODE><B><A HREF="../../spin/off/ListenerSpinOver.html#evaluate(spin.Invocation)">evaluate</A></B>(<A HREF="../../spin/Invocation.html" title="class in spin">Invocation</A> invocation)</CODE>
157
Evaluate the given invocation.</TD>
159
<TR BGCOLOR="white" CLASS="TableRowColor">
160
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161
<CODE>protected boolean</CODE></FONT></TD>
162
<TD><CODE><B><A HREF="../../spin/off/ListenerSpinOver.html#isListener(java.lang.Class)">isListener</A></B>(java.lang.Class type)</CODE>
165
Test if the given class is a listener subinterface.</TD>
167
<TR BGCOLOR="white" CLASS="TableRowColor">
168
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169
<CODE>protected boolean</CODE></FONT></TD>
170
<TD><CODE><B><A HREF="../../spin/off/ListenerSpinOver.html#isListenerAdditionOrRemoval(java.lang.reflect.Method)">isListenerAdditionOrRemoval</A></B>(java.lang.reflect.Method method)</CODE>
173
Test if the given method is a listener addition or removal. </TD>
175
<TR BGCOLOR="white" CLASS="TableRowColor">
176
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177
<CODE>protected java.lang.Object</CODE></FONT></TD>
178
<TD><CODE><B><A HREF="../../spin/off/ListenerSpinOver.html#spinOver(java.lang.Object)">spinOver</A></B>(java.lang.Object object)</CODE>
181
Spin-over the given object.</TD>
184
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
185
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
186
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
187
<TD><B>Methods inherited from class java.lang.Object</B></TD>
189
<TR BGCOLOR="white" CLASS="TableRowColor">
190
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
196
<!-- ============ FIELD DETAIL =========== -->
199
<!-- ========= CONSTRUCTOR DETAIL ======== -->
201
<A NAME="constructor_detail"><!-- --></A>
202
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
203
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
204
<TD COLSPAN=1><FONT SIZE="+2">
205
<B>Constructor Detail</B></FONT></TD>
209
<A NAME="ListenerSpinOver()"><!-- --></A><H3>
210
ListenerSpinOver</H3>
212
public <B>ListenerSpinOver</B>()</PRE>
217
<A NAME="ListenerSpinOver(spin.Evaluator)"><!-- --></A><H3>
218
ListenerSpinOver</H3>
220
public <B>ListenerSpinOver</B>(<A HREF="../../spin/Evaluator.html" title="class in spin">Evaluator</A> evaluator)</PRE>
224
<!-- ============ METHOD DETAIL ========== -->
226
<A NAME="method_detail"><!-- --></A>
227
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
228
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
229
<TD COLSPAN=1><FONT SIZE="+2">
230
<B>Method Detail</B></FONT></TD>
234
<A NAME="evaluate(spin.Invocation)"><!-- --></A><H3>
237
public void <B>evaluate</B>(<A HREF="../../spin/Invocation.html" title="class in spin">Invocation</A> invocation)
238
throws java.lang.Throwable</PRE>
240
<DD><B>Description copied from class: <CODE><A HREF="../../spin/Evaluator.html" title="class in spin">Evaluator</A></CODE></B></DD>
241
<DD>Evaluate the given invocation.
244
<DT><B>Specified by:</B><DD><CODE><A HREF="../../spin/Evaluator.html#evaluate(spin.Invocation)">evaluate</A></CODE> in class <CODE><A HREF="../../spin/Evaluator.html" title="class in spin">Evaluator</A></CODE></DL>
247
<DT><B>Parameters:</B><DD><CODE>invocation</CODE> - invocation to evaluate
249
<DD><CODE>java.lang.Throwable</CODE></DL>
254
<A NAME="isListenerAdditionOrRemoval(java.lang.reflect.Method)"><!-- --></A><H3>
255
isListenerAdditionOrRemoval</H3>
257
protected boolean <B>isListenerAdditionOrRemoval</B>(java.lang.reflect.Method method)</PRE>
259
<DD>Test if the given method is a listener addition or removal. For this the
260
methods name must obey the name pattern <code>(add|remove).*Listener</code>.
263
<DT><B>Parameters:</B><DD><CODE>method</CODE> - method to test
264
<DT><B>Returns:</B><DD><code>true</code> if method obeys the name pattern of
265
listener addition or removal</DL>
270
<A NAME="isListener(java.lang.Class)"><!-- --></A><H3>
273
protected boolean <B>isListener</B>(java.lang.Class type)</PRE>
275
<DD>Test if the given class is a listener subinterface.
278
<DT><B>Parameters:</B><DD><CODE>type</CODE> - class to test
279
<DT><B>Returns:</B><DD><code>true</code> if the class is an sub-interface of
280
<code>java.util.EventListener</code></DL>
285
<A NAME="spinOver(java.lang.Object)"><!-- --></A><H3>
288
protected java.lang.Object <B>spinOver</B>(java.lang.Object object)</PRE>
290
<DD>Spin-over the given object.
293
<DT><B>Parameters:</B><DD><CODE>object</CODE> - object to spin-over
294
<DT><B>Returns:</B><DD><em>Spin</em> proxy</DL>
297
<!-- ========= END OF CLASS DATA ========= -->
301
<!-- ======= START OF BOTTOM NAVBAR ====== -->
302
<A NAME="navbar_bottom"><!-- --></A>
303
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
304
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
306
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
307
<A NAME="navbar_bottom_firstrow"><!-- --></A>
308
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
309
<TR ALIGN="center" VALIGN="top">
310
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
311
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
312
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
313
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
314
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
315
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
316
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
320
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
326
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
327
<A HREF="../../spin/off/InternalOptionPaneDispatcherFactory.html" title="class in spin.off"><B>PREV CLASS</B></A>
328
<A HREF="../../spin/off/SimpleStarter.html" title="class in spin.off"><B>NEXT CLASS</B></A></FONT></TD>
329
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
330
<A HREF="../../index.html" target="_top"><B>FRAMES</B></A>
331
<A HREF="ListenerSpinOver.html" target="_top"><B>NO FRAMES</B></A>
332
<SCRIPT type="text/javascript">
335
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
340
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
346
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
347
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
348
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
349
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
352
<A NAME="skip-navbar_bottom"></A>
353
<!-- ======== END OF BOTTOM NAVBAR ======= -->