org.tbee.swing.table
Class TableModelValueWrapper.ValueWrapper

java.lang.Object
  extended by 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


Constructor Summary
TableModelValueWrapper.ValueWrapper(String description, Object value)
           
 
Method Summary
 int compareTo(Object arg0)
          Compare the descriptions, since that is shown
 boolean equals(Object other)
           
 Object getValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableModelValueWrapper.ValueWrapper

public TableModelValueWrapper.ValueWrapper(String description,
                                           Object value)
Method Detail

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.