Basic HTML version of Foils prepared Aug 14 1997

Foil 100 JavaBean Design Patterns - I

From JavaBeans CORBA ComponentWare UC Web applications Certificate -- Aug 11,14 97. by Geoffrey C. Fox, Wojtek Furmanski


1 Beans of name B:
  • Any class or superclass
  • Needs a no-argument constructor
  • JAR file manifest entry specifies Java-Bean: True
2 Property P of type T is gotten by public T getP()
  • or public boolean isP() if P boolean
  • and set by public void setP(T value)
  • add index to argument for arrays
3 Bound and Constrained Properties are each supported by a single list of event listeners and B must support methods
  • addPropertyChangeListener(PropertyChangeListener l) Bound
  • removePropertyChangeListener(PropertyChangeListener l)
  • addvetoableChangeListener(VetoableChangeListener l) Constrained
  • removevetoableChangeListener(VetoableChangeListener l)

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998