org.tbee.swing.table
Class TableModelValueWrapper.ValueWrapper
java.lang.Object
org.tbee.swing.table.TableModelValueWrapper.ValueWrapper
- All Implemented Interfaces:
- Comparable
- Enclosing class:
- TableModelValueWrapper
public static class TableModelValueWrapper.ValueWrapper
- extends Object
- implements Comparable
This a special class to enable indirect renderers and editors like ComboBoxes.
Note: both value and description should be unique
TableModelValueWrapper.ValueWrapper
public TableModelValueWrapper.ValueWrapper(String description,
Object value)
getValue
public Object getValue()
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
compareTo
public int compareTo(Object arg0)
- Compare the descriptions, since that is shown
- Specified by:
compareTo in interface Comparable
- Parameters:
arg0 -
- Returns:
Copyright © 2011 KnowledgePlaza. All Rights Reserved.