net.sf.rej.util
Class Wrapper<E>

java.lang.Object
  extended by net.sf.rej.util.Wrapper<E>
Type Parameters:
E - the type of the value-object being wrapped.

public class Wrapper<E>
extends java.lang.Object

Wrapper class A wrapper class used in Swing classes(JList, JTable, JComboBox,...) that has a separate textual display String and content object.


Constructor Summary
Wrapper()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 E getContent()
           
 int hashCode()
           
 void setContent(E o)
           
 void setDisplay(java.lang.String display)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Wrapper

public Wrapper()
Method Detail

setContent

public void setContent(E o)

getContent

public E getContent()

setDisplay

public void setDisplay(java.lang.String display)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object