public class LabelTypeSupport extends Object
PropertyChangeSupport
.Constructor and Description |
---|
LabelTypeSupport()
Constructs a new label type support class.
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel(LabelType type)
Returns the label for the given type.
|
void |
setLabel(String label,
LabelType type)
Sets a new label for the given label type.
|
public LabelTypeSupport()
public void setLabel(String label, LabelType type)
LabelType
enumerator specifies the context in which the label gets used: tooltip,
popup, status bar.label
- the new label used for the given label typetype
- the label type designating where the label will be usedpublic String getLabel(LabelType type)
LabelType.NAME
for the status, the tooltip, or the drag info
title, unless they specify their own label.type
- the label type for which a label is neededCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.