Code example for Vector

Methods: copyInto, size

0
    } 
     
    /** Returns the listeners as an array. */ 
    public ClientEventListener[] getEventListeners() { 
	ClientEventListener[] ret =
	    new ClientEventListener[listeners.size()];
	listeners.copyInto(ret);
	return ret;
    } 
 
    /** Adds all listeners in the given array. */ 
    public void addEventListeners(ClientEventListener[] cela) {
	for (int i = 0 ; i < cela.length ; i++)
	    addEventListener(cela[i]);
    } 
 
	@Override 
	public void removeFrom(ObjectContainer container) {
    	if(container != null)
    		container.activate(listeners, 1);
		ClientEventListener[] list = listeners.toArray(new ClientEventListener[listeners.size()]);