net.sf.doolin.gui.swing
Class LabelInfo

java.lang.Object
  extended by net.sf.doolin.gui.swing.LabelInfo

public class LabelInfo
extends Object

Association of a text and an icon

Author:
Damien Coraboeuf

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

LabelInfo

public LabelInfo(String text,
                 Icon iconObject)
Constructor

Parameters:
text - Text
iconObject - Icon

LabelInfo

public LabelInfo(String text)
Constructor with text only

Parameters:
text - Text

LabelInfo

public LabelInfo(Icon iconObject)
Constructor with icon only

Parameters:
iconObject - Icon

LabelInfo

public LabelInfo()
Instantiates a new label info.

Method Detail

getIcon

public Icon getIcon()
Gets the icon.

Returns:
the icon

setIcon

public void setIcon(Icon iconObject)
Sets the icon.

Parameters:
iconObject - the new icon

getText

public String getText()
Gets the text.

Returns:
the text

setText

public void setText(String text)
Sets the text.

Parameters:
text - the new text


Copyright © 2011. All Rights Reserved.