public void setActive ( boolean active ) { refreshListener . setActive ( active ) ; addListener . setActive ( active ) ; removeListener . setActive ( active ) ; eventManager . fireRemoteEvent ( active ? addListener . eventName : removeListener . eventName , self ) ; if ( active ) { refresh ( ) ; } }
Sets the active state .