Code example for Hashtable

Methods: keySet

0
	} 
 
	/** returns the key for the table, not the value (which is another table) */ 
	@SuppressWarnings("unchecked") 
	public Object getItem(int i) {
		Object[] array =_data.keySet().toArray();
		Arrays.sort(array, new SongComparator());
		Object retval = array[i];
		return retval;
	} 
 
	/** returns the unique id for the given index, which is just the index */ 
	public long getItemId(int i) {
		return i;
	} 
 
	/** 
	 * called when item in listview is selected... fires a model changed event... 
	 * 
	 * @param index index of item selected in listview. if -1 then it's unselected. 
	 */