
[ Previous ] [ Index ] [ Next ]


This pattern tells you how to decide on the fly which events to share, so that you do not have to share all the events of a class.
| Example of using shipping decision functions. |
| class FredListener implements ActionListener, ShippingDecisionFunction
{ // other code public boolean ship(java.awt.AWTEvent event)
{code to decide on whether to share this event
or not}
// other code |
Habanero® is a registered trademark owned by The Board of Trustees of the University of Illinois. Copyright 1996-1998. All rights reserved. Java(TM) is a proprietary trademark owned by Sun Microsystems, Inc.
![]()
The National Center for Supercomputing Applications
University of Illinois at Urbana-Champaign
Contacts page