edu.indiana.iucbrf.feature
Class FeatureKeyInt

java.lang.Object
  extended by edu.indiana.iucbrf.feature.FeatureKeyInt
All Implemented Interfaces:
FeatureKey, SwingRepresentable, java.io.Serializable

public class FeatureKeyInt
extends java.lang.Object
implements FeatureKey

The unique (across the Domain) identifier for a feature.

See Also:
Serialized Form

Field Summary
static int LABEL_WIDTH
           
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
protected FeatureKeyInt()
          For serialization
  FeatureKeyInt(int intValue)
          Creates a new instance of FeatureKey
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int getIntValue()
           
 int hashCode()
           
 java.lang.String toSimpleString()
          Returns a simplified String representation of this FeatureKey.
 java.lang.String toString()
           
 javax.swing.JComponent toSwing(int detailLevel)
          Detail level may be ignored by implementations.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LABEL_WIDTH

public static final int LABEL_WIDTH
See Also:
Constant Field Values
Constructor Detail

FeatureKeyInt

protected FeatureKeyInt()
For serialization


FeatureKeyInt

public FeatureKeyInt(int intValue)
Creates a new instance of FeatureKey

Method Detail

hashCode

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

equals

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

toSimpleString

public java.lang.String toSimpleString()
Description copied from interface: FeatureKey
Returns a simplified String representation of this FeatureKey. This is used, for example, in the construction of database queries involving a FeatureKey.

Specified by:
toSimpleString in interface FeatureKey

toString

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

getIntValue

public int getIntValue()

toSwing

public javax.swing.JComponent toSwing(int detailLevel)
Description copied from interface: SwingRepresentable
Detail level may be ignored by implementations. If used, the standard is for detailLevel 0 to be least detail, with higher values growing more detailed. 0 is least detail, higher numbers are more

Specified by:
toSwing in interface SwingRepresentable