|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.swing.LabelInfo
public class LabelInfo
Association of a text and an icon
| Constructor Summary | |
|---|---|
LabelInfo()
Instantiates a new label info. |
|
LabelInfo(Icon iconObject)
Constructor with icon only |
|
LabelInfo(String text)
Constructor with text only |
|
LabelInfo(String text,
Icon iconObject)
Constructor |
|
| Method Summary | |
|---|---|
Icon |
getIcon()
Gets the icon. |
String |
getText()
Gets the text. |
void |
setIcon(Icon iconObject)
Sets the icon. |
void |
setText(String text)
Sets the text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabelInfo(String text,
Icon iconObject)
text - TexticonObject - Iconpublic LabelInfo(String text)
text - Textpublic LabelInfo(Icon iconObject)
iconObject - Iconpublic LabelInfo()
| Method Detail |
|---|
public Icon getIcon()
public void setIcon(Icon iconObject)
iconObject - the new iconpublic String getText()
public void setText(String text)
text - the new text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||