The JBCL classes have a standard naming convention. The following tables outline the naming conventions for the interfaces and classes of the JavaBeans Component Library.
Interface naming conventions
Interface | Description |
<Modeltype>Model | Read-only model interfaces. |
Writable<Modeltype>Model | Read-write model interfaces that extend the read-only version and add editing capabilities. |
Objects implement one of these two interfaces to be a model component for that model. | |
Basic<Modeltype>Container classes are simple implementations of the writable model interface. | |
<Modeltype>ModelListener | Implemented by objects that want to respond to changes in the data or structure of a model. |
<Modeltype>ModelModelAdapter classes are event helper classes that implement the model event-listener interface. | |
<Modeltype>Selection | Read-only selection interfaces. |
Writable<Modeltype>Selection | Read-write selection interfaces that extend the read-only version and add editing capabilities. |
Objects implement one of the two interfaces to be a selection component for that model. | |
Basic<Modeltype>Selection classes are simple implementations of the writable selection interface. | |
<Modeltype>SubfocusListener | Implemented by objects that want to respond to subfocus events. |
<Modeltype>SubfocusAdapter classes are event helper classes that implement the model subfocus event listener interface. | |
Class naming conventions
Class | Description |
<Modeltype>ModelEvent | Event objects that are generated when the data or structure of a model changes. |
<Modeltype>SelectionEvent | Event objects that are generated when the selection pool (the set of selected items) for the component changes. |
<Modeltype>SubfocusEvent | Event objects that are generated when the focused item in the component changes. |
<Modeltype>ModelAdapter | Event helper classes that implement the model event listener interface. |
<Modeltype>SelectionAdapter | Event helper classes that implement the model event selection listener interface. |
<Modeltype>SubfocusAdapter | Event helper classes that implement the model event subfocus listener interface. |
Basic<Modeltype>Container | Implementations of the writable model interface. |
Basic<Modeltype>Selection | Implementations of the writable selection interface. |
<Modeltype>ViewManager | View manager objects for the specified model. |