Revision 7967 trunk/libraries/libUI/src-test/org/gvsig/gui/beans/comboBoxItemsSeeker/Item.java

View differences:

Item.java
41 41
 */
42 42

  
43 43
/**
44
 * This class is used for test the JComboBoxItemsSeekerConfigurable. Represents an Object with a string value.
45
 * 
44 46
 * @author Pablo Piqueras Bartolom? (p_queras@hotmail.com)
45 47
 */
46 48
public class Item implements Comparable{
47 49
	String value;
48 50

  
51
	/**
52
	 * Default contructor with 1 parameter
53
	 * 
54
	 * @param v Text value
55
	 */
49 56
	public Item (String v) {
50 57
		value = v;
51 58
	}
52 59
	
60
	/*
61
	 * (non-Javadoc)
62
	 * @see java.lang.Object#toString()
63
	 */
53 64
	public String toString() {
54 65
		return value;
55 66
	}
......
59 70
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
60 71
	 */
61 72
	public int compareTo(Object o) {
62
		// TODO Auto-generated method stub
63 73
		return this.value.compareTo(o.toString());
64 74
	}
65 75
}

Also available in: Unified diff