Code example for Vector

Methods: removeElement, trimToSize

0
	    throw new IllegalArgumentException("Adding a null listener!");
    } 
     
	@Override 
    public boolean removeEventListener(ClientEventListener cel) {
	boolean b = listeners.removeElement(cel);
	listeners.trimToSize();
	return b;
    } 
 
    /** 
     * Sends the ClientEvent to all registered listeners of this object. 
     **/ 
	@Override 
    public void produceEvent(ClientEvent ce, ObjectContainer container, ClientContext context) {
    	if(container != null)
    		container.activate(listeners, 1);
	for (Enumeration<ClientEventListener> e = listeners.elements() ; 
	     e.hasMoreElements();) {
            try { 
            	ClientEventListener cel = e.nextElement();