public class CompoundObject extends Object implements Serializable
identifier
, a
label
and an icon
. The icon is always an external resource,
accessible through an URL.Modifier and Type | Field and Description |
---|---|
protected String |
iconUrl |
protected String |
id |
protected String |
text |
Modifier | Constructor and Description |
---|---|
protected |
CompoundObject()
Creates a new instance of CompoundObject
|
|
CompoundObject(String id,
String text,
String iconUrl)
Creates a new instance of CompoundObject
|
Modifier and Type | Method and Description |
---|---|
void |
clearIcon() |
ImageIcon |
getIcon() |
String |
getIconUrl()
Getter for property iconUrl.
|
String |
getId()
Getter for property id.
|
String |
getText()
Getter for property text.
|
boolean |
hasIcon() |
void |
setIconUrl(String iconUrl)
Setter for property iconUrl.
|
void |
setId(String id)
Setter for property id.
|
void |
setText(String text)
Setter for property text.
|
protected CompoundObject()
public boolean hasIcon()
public ImageIcon getIcon()
public void clearIcon()
public String getId()
public void setId(String id)
id
- New value of property id.public String getText()
public void setText(String text)
text
- New value of property text.public String getIconUrl()
public void setIconUrl(String iconUrl)
iconUrl
- New value of property iconUrl.Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.