T - the type of object for which this provider can supply labels
public interface LabelProvider<T>
LabelProvider interface defines the contract for an object tha can provide a label (String) for a given object and key.| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
LabelProvider.Key
The  
LabelProvider.Key enumerated type is for convenience when working with common label provider keys. | 
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
LONG_LABEL
Long label (description) key. 
 | 
static java.lang.String | 
SHORT_LABEL
Short label (name) key. 
 | 
static java.lang.String | 
TO_STRING
Used to get a relatively comprehensive string representation/description of the object. 
 | 
static java.lang.String | 
TOOLTIP
Tooltip key. 
 | 
static final java.lang.String SHORT_LABEL
static final java.lang.String LONG_LABEL
static final java.lang.String TOOLTIP
static final java.lang.String TO_STRING
java.lang.String labelFor(T obj, java.lang.String key)
null value, it should return an empty (0 length) string instead.obj - the objectkey - the key