public class ExtendedAdapterFactoryItemDelegator extends AdapterFactoryItemDelegator implements IItemStyledLabelProvider, IItemDescriptionProvider
IItemStyledLabelProvider
and IItemDescriptionProvider
.adapterFactory
BOLD_FONT, BOLD_ITALIC_FONT, ITALIC_FONT, NORMAL_FONT
GRAYED_OUT_COLOR
Constructor and Description |
---|
ExtendedAdapterFactoryItemDelegator(AdapterFactory adapterFactory)
Creates a new instance that will use the given adapter factory to respond to its implemented protocol.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription(Object object)
Returns the description for the given object.
|
IStyledString.IComposedStyledString |
getStyledText(Object object)
Returns the styled text label for the given object.
|
createCommand, getAdapterFactory, getBackground, getBackground, getChildren, getColumnImage, getColumnText, getEditableValue, getElements, getFont, getFont, getForeground, getForeground, getImage, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyDescriptors, getText, hasChildren
public ExtendedAdapterFactoryItemDelegator(AdapterFactory adapterFactory)
adapterFactory
- the adapter factory use to adapt.public String getDescription(Object object)
getDescription
in interface IItemDescriptionProvider
object
- the object to evaluate the description for.IItemDescriptionProvider.getDescription(java.lang.Object)
public IStyledString.IComposedStyledString getStyledText(Object object)
getStyledText
in interface IItemStyledLabelProvider
object
- the object to evaluate the styled string for.IItemStyledLabelProvider.getStyledText(java.lang.Object)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.