Code example for Vector

Methods: toArray

0
	 * returns a list of Strings containing the names 
	 * of all of the elements that can have events 
	 *  
	 */ 
	public Object[] getEventElementNames() {
		Vector<Object> names = new Vector<Object>();
		for ( int i = 0; i < elements.size(); i++ ) {
			if ( elements.elementAt(i).getType().equals("AButton") 
					|| elements.elementAt(i).getType().equals("ASeekBar") ) {
				names.add(elements.elementAt(i).getName());
			} 
		} 
		return names.toArray();
	} 
}