|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.ValueIconPair
public class ValueIconPair
ValueIconPair
combines a long value with a specifi icon.
Constructor Summary | |
---|---|
ValueIconPair(java.lang.Long value,
java.io.File iconFile)
Constructs a new ValueIconPair with the given value and the File describing the image icon. |
|
ValueIconPair(long value,
javax.swing.Icon icon)
Constructs a new ValueIconPair with the given value and icon. |
|
ValueIconPair(java.lang.Long value,
javax.swing.Icon icon)
Constructs a new ValueIconPair with the given value and icon. |
|
ValueIconPair(java.lang.Long value,
java.lang.String iconName)
Constructs a new ValueIconPair with the given value and path to the icon in the classpath. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
javax.swing.Icon |
getIcon()
Returns the icon. |
java.lang.String |
getIconName()
Returns the icon name. |
java.lang.Long |
getValue()
Returns the value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueIconPair(long value, javax.swing.Icon icon)
value
- icon
- public ValueIconPair(java.lang.Long value, javax.swing.Icon icon)
value
- icon
- public ValueIconPair(java.lang.Long value, java.lang.String iconName)
value
- iconName
- public ValueIconPair(java.lang.Long value, java.io.File iconFile)
value
- iconFile
- Method Detail |
---|
public javax.swing.Icon getIcon()
public java.lang.Long getValue()
public java.lang.String getIconName()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |