protected void addPropertyListener ( final BoundPropertyListener listener ) { // get the bound property name String name = makePropertyName ( listener . getPropertyName ( ) ) ; // get the bound listener list for the property List list = ( List ) boundListeners . get ( name ) ; // if list is null, then add a new list if ( list == null ) { list = new ArrayList ( ) ; boundListeners . put ( name , list ) ; } // if listener is not in the list already, then add it if ( ! list . contains ( listener ) ) { list . add ( listener ) ; // notify listener that is is bound listener . propertyBound ( this ) ; } }
Add a bound property listener .