public class NomenclatureItemValue<T> extends NomenclatureItem<T>
NomenclatureItemValue is a label value in a containing Nomenclature. The
 value should correspond to the associated type.
 The code that implements the layout must decide how to display an instance of this class.
Nomenclature_defaultLabel, _value| Constructor and Description | 
|---|
NomenclatureItemValue()  | 
NomenclatureItemValue(T newValue,
                     String newLabel)  | 
NomenclatureItemValue(T newValue,
                     String[] newLabels)  | 
NomenclatureItemValue(T newValue,
                     String[] newLabels,
                     Locale[] locales)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object x)  | 
String | 
getDefaultLabel()
Returns first label. 
 | 
String | 
getLabel(int index)
Returns the label at the specified position (from 0 to the number of labels - 1). 
 | 
String | 
getLabel(Locale aLocale)
Returns the label defined for the specified locale. 
 | 
int | 
hashCode()  | 
boolean | 
isLocalized()  | 
void | 
setDefaultLabel(String aString)
Sets first label. 
 | 
void | 
setLabel(int index,
        String aString)
Replaces the label at the specified position in all labels with the specified string. 
 | 
getValue, isDefaultItem, isValueItem, setDefaultItem, setValue, toStringpublic NomenclatureItemValue()
public NomenclatureItemValue(T newValue, String[] newLabels, Locale[] locales)
public boolean isLocalized()
isLocalized in class NomenclatureItem<T>public String getLabel(Locale aLocale)
getLabel in class NomenclatureItem<T>aLocale - the locale to search for. Can be null.null if specified locale does not exist or a
         null label is defined for the locale.public void setLabel(int index,
                     String aString)
setLabel in class NomenclatureItem<T>public String getDefaultLabel()
getDefaultLabel in class NomenclatureItem<T>public String getLabel(int index)
getLabel in class NomenclatureItem<T>public void setDefaultLabel(String aString)
setDefaultLabel in class NomenclatureItem<T>