public class ContainerItem<Key> extends Object implements Serializable, Comparable<ContainerItem>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_LABEL |
static long |
serialVersionUID |
| Constructor and Description |
|---|
ContainerItem(Key key,
String label)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property-change listener for all properties.
|
void |
addPropertyChangeListener(String prop,
PropertyChangeListener listener)
Add a property-change listener for a specific property.
|
int |
compareTo(ContainerItem s) |
boolean |
equals(Object obj)
The equal is done on the KEY internal name.
|
Key |
getKey() |
String |
getLabel()
Get the I18N GUI label
|
int |
hashCode()
Compute hashcode for the item
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove the specified listener from the list
|
void |
removePropertyChangeListener(String prop,
PropertyChangeListener listener)
Remove the specified listener for a specified property from the list
|
void |
setLabel(String label)
Set the I18N GUI label
|
String |
toString()
The GUI representation of the item
|
public static final long serialVersionUID
public static final String PROP_LABEL
public ContainerItem(Key key, String label)
label - The I18N label of the Item, shown in the GUIkey - The internal name of this item, retrieved by listeners for processingIllegalArgumentException - if one of the arguments are missingpublic Key getKey()
public int compareTo(ContainerItem s)
compareTo in interface Comparable<ContainerItem>public String getLabel()
public void setLabel(String label)
label - the I18N GUI labelpublic String toString()
public boolean equals(Object obj)
public int hashCode()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener instancepublic void addPropertyChangeListener(String prop, PropertyChangeListener listener)
prop - The static property name PROP_..listener - The PropertyChangeListener instancepublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - The listener instancepublic void removePropertyChangeListener(String prop, PropertyChangeListener listener)
prop - The static property name PROP_..listener - The listener instanceCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.