Code example for Hashtable

Methods: keySet

	/** returns the key for the table, not the value (which is another table) */ 
	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.