javabean

ilovesimple2006發表於2007-08-15

As the official definition, it's kind of reusable component that developer can visually edit some property and bind some event method at design and runtime through visible inspector.

Naming convention for java bean:

instance field:

T propertyName;

Getter:

getPropertyName();

Setter:

void setPropertyName();

For boolean value instance field, the get method should be changed to:

boolean isPropertyName();

For the event object, all must inherit java.util.EventObject.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/792140/viewspace-958635/,如需轉載,請註明出處,否則將追究法律責任。

相關文章