|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.cdo.ui.CDOLabelDecorator
public class CDOLabelDecorator
Decorates labels of CDO objects
according to a pattern.
Field Summary | |
---|---|
static String[] |
DECORATION_PROPOSALS
|
static String |
DECORATOR_ID
|
static String |
DEFAULT_DECORATION
|
static String |
NO_DECORATION
|
Constructor Summary | |
---|---|
CDOLabelDecorator()
|
|
CDOLabelDecorator(String pattern)
|
Method Summary | |
---|---|
void |
addListener(ILabelProviderListener listener)
Adds a listener to this label provider. |
Image |
decorateImage(Image image,
Object element)
Returns an image that is based on the given image, but decorated with additional information relating to the state of the provided element. |
String |
decorateText(String text,
Object element)
Returns a text label that is based on the given text label, but decorated with additional information relating to the state of the provided element. |
void |
dispose()
Disposes of this label provider. |
boolean |
isLabelProperty(Object element,
String property)
Returns whether the label would be affected by a change to the given property of the given element. |
String |
parsePattern(String unparsedPattern)
|
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 |
Field Detail |
---|
public static final String[] DECORATION_PROPOSALS
public static final String DEFAULT_DECORATION
public static final String NO_DECORATION
public static final String DECORATOR_ID
Constructor Detail |
---|
public CDOLabelDecorator()
public CDOLabelDecorator(String pattern)
Method Detail |
---|
public void dispose()
org.eclipse.jface.viewers.IBaseLabelProvider
dispose
in interface IBaseLabelProvider
public String parsePattern(String unparsedPattern)
public Image decorateImage(Image image, Object element)
org.eclipse.jface.viewers.ILabelDecorator
decorateImage
in interface ILabelDecorator
image
- the input image to decorate, or null
if the element has no imageelement
- the element whose image is being decorated
null
if no decoration is to be appliedLabelProviderChangedEvent
,
IBaseLabelProvider.addListener(org.eclipse.jface.viewers.ILabelProviderListener)
,
CompositeImageDescriptor
public String decorateText(String text, Object element)
org.eclipse.jface.viewers.ILabelDecorator
decorateText
in interface ILabelDecorator
text
- the input text label to decorateelement
- the element whose image is being decorated
null
if no decoration is to be appliedLabelProviderChangedEvent
,
IBaseLabelProvider.addListener(org.eclipse.jface.viewers.ILabelProviderListener)
public boolean isLabelProperty(Object element, String property)
org.eclipse.jface.viewers.IBaseLabelProvider
isLabelProperty
in interface IBaseLabelProvider
element
- the elementproperty
- the property
true
if the label would be affected,
and false
if it would be unaffectedpublic void addListener(ILabelProviderListener listener)
org.eclipse.jface.viewers.IBaseLabelProvider
Label provider listeners are informed about state changes that affect the rendering of the viewer that uses this label provider.
addListener
in interface IBaseLabelProvider
listener
- a label provider listenerpublic void removeListener(ILabelProviderListener listener)
org.eclipse.jface.viewers.IBaseLabelProvider
removeListener
in interface IBaseLabelProvider
listener
- a label provider listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |