JavaBean is a reusable software component that can be visually manipulated using the builder tool. The following are the JavaBean Listener naming rules:
- Listener method names that are used to register a listener with an event source must use the prefix add followed by the listener type.
- Listener method names that are used to remove a listener must use the prefix remove followed by the listener type.
- The type of listener to be added or removed must be passed as the argument to the method.
- Listener method names must end with the word “Listener”.
Responses to “What are the JavaBean listener naming rules?”