| org.eclipse.jface.viewers.BaseLabelProvider org.eclipse.jface.viewers.LabelProvider org.eclipse.jface.viewers.DecoratingLabelProvider
DecoratingLabelProvider | public DecoratingLabelProvider(ILabelProvider provider, ILabelDecorator decorator)(Code) | | Creates a decorating label provider which uses the given label decorator
to decorate labels provided by the given label provider.
Parameters: provider - the nested label provider Parameters: decorator - the label decorator, or null if no decorator is to be used initially |
addListener | public void addListener(ILabelProviderListener listener)(Code) | | The DecoratingLabelProvider implementation of this IBaseLabelProvider method
adds the listener to both the nested label provider and the label decorator.
Parameters: listener - a label provider listener |
dispose | public void dispose()(Code) | | The DecoratingLabelProvider implementation of this IBaseLabelProvider method
disposes both the nested label provider and the label decorator.
|
getBackground | public Color getBackground(Object element)(Code) | | |
getDecorationContext | public IDecorationContext getDecorationContext()(Code) | | Return the decoration context associated with this label provider.
It will be passed to the decorator if the decorator is an
instance of
LabelDecorator .
the decoration context associated with this label provider since: 3.2 |
getForeground | public Color getForeground(Object element)(Code) | | |
getImage | public Image getImage(Object element)(Code) | | The DecoratingLabelProvider implementation of this
ILabelProvider method returns the image provided
by the nested label provider's getImage method,
decorated with the decoration provided by the label decorator's
decorateImage method.
|
getLabelDecorator | public ILabelDecorator getLabelDecorator()(Code) | | Returns the label decorator, or null if none has been set.
the label decorator, or null if none has been set. |
getLabelProvider | public ILabelProvider getLabelProvider()(Code) | | Returns the nested label provider.
the nested label provider |
getText | public String getText(Object element)(Code) | | The DecoratingLabelProvider implementation of this
ILabelProvider method returns the text label provided
by the nested label provider's getText method,
decorated with the decoration provided by the label decorator's
decorateText method.
|
isLabelProperty | public boolean isLabelProperty(Object element, String property)(Code) | | The DecoratingLabelProvider implementation of this
IBaseLabelProvider method returns true if the corresponding method
on the nested label provider returns true or if the corresponding method on the
decorator returns true .
|
removeListener | public void removeListener(ILabelProviderListener listener)(Code) | | The DecoratingLabelProvider implementation of this IBaseLabelProvider method
removes the listener from both the nested label provider and the label decorator.
Parameters: listener - a label provider listener |
setDecorationContext | public void setDecorationContext(IDecorationContext decorationContext)(Code) | | Set the decoration context that will be based to the decorator
for this label provider if that decorator implements
LabelDecorator .
Parameters: decorationContext - the decoration context. since: 3.2 |
setLabelDecorator | public void setLabelDecorator(ILabelDecorator decorator)(Code) | | Sets the label decorator.
Removes all known listeners from the old decorator, and adds all known listeners to the new decorator.
The old decorator is not disposed.
Fires a label provider changed event indicating that all labels should be updated.
Has no effect if the given decorator is identical to the current one.
Parameters: decorator - the label decorator, or null if no decorations are to be applied |
updateForDecorationReady | protected void updateForDecorationReady(ViewerLabel settings, Object element)(Code) | | Decoration is ready. Update anything else for the settings.
Parameters: settings - The object collecting the settings. Parameters: element - The Object being decorated. since: 3.1 |
|
|