|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.viewers.LabelProvider
A label provider implementation which, by default, uses an element's toString value for its text and null for its image.
This class may be used as is, or subclassed to provide richer labels. Subclasses may override any of the following methods:
Constructor Summary | |
LabelProvider()
Creates a new label provider. |
Method Summary | |
void | addListener(ILabelProviderListener listener)
Adds a listener to this label provider. |
void | dispose()
The LabelProvider implementation of this IBaseLabelProvider method does nothing. |
protected void | fireLabelProviderChanged(LabelProviderChangedEvent event)
Fires a label provider changed event to all registered listeners Only listeners registered at the time this method is called are notified. |
Image | getImage(Object element)
The LabelProvider implementation of this ILabelProvider method returns null. |
String | getText(Object element)
The LabelProvider implementation of this ILabelProvider method returns the element's toString string. |
boolean | isLabelProperty(Object element,
String property)
The LabelProvider implementation of this IBaseLabelProvider method returns true. |
void | removeListener(ILabelProviderListener listener)
Removes a listener to this label provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LabelProvider()
Method Detail |
public void addListener(ILabelProviderListener listener)
Label provider listeners are informed about state changes that affect the rendering of the viewer that uses this label provider.
public void dispose()
protected void fireLabelProviderChanged(LabelProviderChangedEvent event)
public Image getImage(Object element)
public String getText(Object element)
public boolean isLabelProperty(Object element, String property)
public void removeListener(ILabelProviderListener listener)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.