|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.swing.icons.StringPlusIcon
public class StringPlusIcon
A string which knows how to append an icon to its JLabel.
Field Summary | |
---|---|
protected javax.swing.Icon |
icon
The icon, or null if none. |
protected java.lang.String |
value
The string. |
Constructor Summary | |
---|---|
StringPlusIcon(java.lang.String value,
javax.swing.Icon icon)
Constructs a new StringPlusIcon object. |
Method Summary | |
---|---|
void |
addIcon(javax.swing.JLabel label)
Appends the icon to the JLabel. |
java.lang.String |
toString()
Returns the string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String value
protected javax.swing.Icon icon
Constructor Detail |
---|
public StringPlusIcon(java.lang.String value, javax.swing.Icon icon)
value
- The string.icon
- The icon, or null if none. Method Detail |
---|
public void addIcon(javax.swing.JLabel label)
addIcon
in interface AddIcon
label
- The JLabel. public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |