|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.CellLabelProvider
org.eclipse.jface.databinding.viewers.ObservableMapCellLabelProvider
public class ObservableMapCellLabelProvider
A label provider based on one or more observable maps that track attributes
that this label provider uses for display. The default behavior is to display
the first attribute's value. Clients may customize by subclassing and
overriding update(ViewerCell)
.
Field Summary | |
---|---|
protected IObservableMap[] |
attributeMaps
Observable maps typically mapping from viewer elements to label values. |
Constructor Summary | |
---|---|
|
ObservableMapCellLabelProvider(IObservableMap attributeMap)
Creates a new label provider that tracks changes to one attribute. |
protected |
ObservableMapCellLabelProvider(IObservableMap[] attributeMaps)
Creates a new label provider that tracks changes to more than one attribute. |
Method Summary | |
---|---|
void |
dispose()
The BaseLabelProvider implementation of this
IBaseLabelProvider method clears its internal listener list. |
void |
update(ViewerCell cell)
Update the label for cell. |
Methods inherited from class org.eclipse.jface.viewers.CellLabelProvider |
---|
dispose, getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, initialize, useNativeToolTip |
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider |
---|
addListener, fireLabelProviderChanged, isLabelProperty, removeListener |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IObservableMap[] attributeMaps
Constructor Detail |
---|
public ObservableMapCellLabelProvider(IObservableMap attributeMap)
attributeMap
- protected ObservableMapCellLabelProvider(IObservableMap[] attributeMaps)
update(ViewerCell)
and make use of more than one attribute.
attributeMaps
- Method Detail |
---|
public void dispose()
BaseLabelProvider
BaseLabelProvider
implementation of this
IBaseLabelProvider
method clears its internal listener list.
Subclasses may extend but should call the super implementation.
dispose
in interface IBaseLabelProvider
dispose
in class BaseLabelProvider
public void update(ViewerCell cell)
CellLabelProvider
update
in class CellLabelProvider
cell
- ViewerCell
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.