Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.paradoxpoint.libitina.gui.binding
Class ItemReferrence  view ItemReferrence download ItemReferrence.java

java.lang.Object
  extended bycom.paradoxpoint.libitina.gui.binding.ItemReferrence

public class ItemReferrence
extends java.lang.Object

Allows a referrence to specific item in a JComboBox by encapsulating the containing JComboBox and item Object into a single Object.


Field Summary
protected  javax.swing.JComboBox comboBox
          JComboBox containing item
private  int hashCode
           
protected  java.lang.Object item
          item in comboBox
 
Constructor Summary
ItemReferrence(javax.swing.JComboBox comboBox, java.lang.Object item)
          Constructs a new ItemReferrence instance with the given combo box and item
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this ItemReferrence to the specified object.
 javax.swing.JComboBox getComboBox()
          Getter for property comboBox.
 java.lang.Object getItem()
          Getter for property item.
 int hashCode()
          Returns a hash code for this ItemReferrence.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashCode

private volatile int hashCode

comboBox

protected javax.swing.JComboBox comboBox
JComboBox containing item


item

protected java.lang.Object item
item in comboBox

Constructor Detail

ItemReferrence

public ItemReferrence(javax.swing.JComboBox comboBox,
                      java.lang.Object item)
Constructs a new ItemReferrence instance with the given combo box and item

Method Detail

equals

public boolean equals(java.lang.Object obj)
Compares this ItemReferrence to the specified object. The result is true if and only if the argument is not null and is an ItemReferrence object that contains equal() elements


hashCode

public int hashCode()
Returns a hash code for this ItemReferrence. The hash code for a ItemReferrence object is computed using the method outlined in Effective Java by Joshua Bloch


getComboBox

public javax.swing.JComboBox getComboBox()
Getter for property comboBox.


getItem

public java.lang.Object getItem()
Getter for property item.