|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.edit.provider.AdapterFactoryItemDelegator
public class AdapterFactoryItemDelegator
| Field Summary | |
|---|---|
protected AdapterFactory |
adapterFactory
This keeps track of the factory used to generate the adapters. |
| Fields inherited from interface org.eclipse.emf.edit.provider.IItemFontProvider |
|---|
BOLD_FONT, BOLD_ITALIC_FONT, ITALIC_FONT, NORMAL_FONT |
| Fields inherited from interface org.eclipse.emf.edit.provider.IItemColorProvider |
|---|
GRAYED_OUT_COLOR |
| Constructor Summary | |
|---|---|
AdapterFactoryItemDelegator(AdapterFactory adapterFactory)
|
|
| Method Summary | |
|---|---|
Command |
createCommand(java.lang.Object object,
EditingDomain editingDomain,
java.lang.Class<? extends Command> commandClass,
CommandParameter commandParameter)
This does the same thing as EditingDomain.createCommand,
i.e., it creates commands for a domain's model objects. |
AdapterFactory |
getAdapterFactory()
|
java.lang.Object |
getBackground(java.lang.Object object)
This does the same thing as IColorProvider.getBackground, it fetches the foreground color specific to this object instance. |
java.lang.Object |
getBackground(java.lang.Object object,
int columnIndex)
This does the same thing as ITableColorProvider.getBackground. |
java.util.Collection<?> |
getChildren(java.lang.Object object)
This does the same thing as ITreeContentProvider.getChildren. |
java.lang.Object |
getColumnImage(java.lang.Object object,
int columnIndex)
This does the same thing as ITableLabelProvider.getColumnImage. |
java.lang.String |
getColumnText(java.lang.Object object,
int columnIndex)
This does the same thing as ITableLabelProvider.getColumnText. |
java.lang.Object |
getEditableValue(java.lang.Object object)
This returns the value to be edited. |
java.util.Collection<?> |
getElements(java.lang.Object object)
This does the same thing as IStructuredContentProvider.getElements. |
java.lang.Object |
getFont(java.lang.Object object)
This does the same thing as IFontProvider.getFont, it fetches the font specific to this object instance. |
java.lang.Object |
getFont(java.lang.Object object,
int columnIndex)
This does the same thing as ITableFontProvider.getFont. |
java.lang.Object |
getForeground(java.lang.Object object)
This does the same thing as IColorProvider.getForeground, it fetches the foreground color specific to this object instance. |
java.lang.Object |
getForeground(java.lang.Object object,
int columnIndex)
This does the same thing as ITableColorProvider.getForeground. |
java.lang.Object |
getImage(java.lang.Object object)
This does the same thing as ILabelProvider.getImage, it fetches the label image specific to this object instance. |
java.util.Collection<?> |
getNewChildDescriptors(java.lang.Object object,
EditingDomain editingDomain,
java.lang.Object sibling)
This returns a list of objects describing the different children that can be added under the specified object in the editing domain, following the specified sibling as closely as possible (if non-null). |
java.lang.Object |
getParent(java.lang.Object object)
This does the same thing as ITreeContentProvider.getParent. |
IItemPropertyDescriptor |
getPropertyDescriptor(java.lang.Object object,
java.lang.Object propertyId)
This returns the property descriptor with an ID or feature
that matches the given ID. |
java.util.List<IItemPropertyDescriptor> |
getPropertyDescriptors(java.lang.Object object)
This does the same thing as IPropertySource.getPropertyDescriptors. |
java.lang.String |
getText(java.lang.Object object)
This does the same thing as ILabelProvider.getText, it fetches the label text specific to this object instance. |
boolean |
hasChildren(java.lang.Object object)
This does the same thing as ITreeContentProvider.hasChildren. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AdapterFactory adapterFactory
| Constructor Detail |
|---|
public AdapterFactoryItemDelegator(AdapterFactory adapterFactory)
| Method Detail |
|---|
public AdapterFactory getAdapterFactory()
public java.lang.String getText(java.lang.Object object)
getText in interface IItemLabelProviderpublic java.lang.Object getImage(java.lang.Object object)
getImage in interface IItemLabelProviderpublic java.lang.Object getFont(java.lang.Object object)
getFont in interface IItemFontProviderpublic java.lang.Object getForeground(java.lang.Object object)
getForeground in interface IItemColorProviderpublic java.lang.Object getBackground(java.lang.Object object)
getBackground in interface IItemColorProvider
public java.lang.String getColumnText(java.lang.Object object,
int columnIndex)
getColumnText in interface ITableItemLabelProvider
public java.lang.Object getColumnImage(java.lang.Object object,
int columnIndex)
getColumnImage in interface ITableItemLabelProvider
public java.lang.Object getFont(java.lang.Object object,
int columnIndex)
getFont in interface ITableItemFontProvider
public java.lang.Object getForeground(java.lang.Object object,
int columnIndex)
getForeground in interface ITableItemColorProvider
public java.lang.Object getBackground(java.lang.Object object,
int columnIndex)
getBackground in interface ITableItemColorProviderpublic java.util.List<IItemPropertyDescriptor> getPropertyDescriptors(java.lang.Object object)
IItemPropertySource
getPropertyDescriptors in interface IItemPropertySource
public IItemPropertyDescriptor getPropertyDescriptor(java.lang.Object object,
java.lang.Object propertyId)
IItemPropertySourceID or feature
that matches the given ID.
getPropertyDescriptor in interface IItemPropertySourcepublic java.lang.Object getEditableValue(java.lang.Object object)
IItemPropertySource
getEditableValue in interface IItemPropertySourcepublic java.util.Collection<?> getElements(java.lang.Object object)
getElements in interface IStructuredItemContentProviderpublic java.util.Collection<?> getChildren(java.lang.Object object)
getChildren in interface IEditingDomainItemProvidergetChildren in interface ITreeItemContentProviderpublic boolean hasChildren(java.lang.Object object)
hasChildren in interface ITreeItemContentProviderpublic java.lang.Object getParent(java.lang.Object object)
getParent in interface IEditingDomainItemProvidergetParent in interface ITreeItemContentProvider
public java.util.Collection<?> getNewChildDescriptors(java.lang.Object object,
EditingDomain editingDomain,
java.lang.Object sibling)
getNewChildDescriptors in interface IEditingDomainItemProvider
public Command createCommand(java.lang.Object object,
EditingDomain editingDomain,
java.lang.Class<? extends Command> commandClass,
CommandParameter commandParameter)
EditingDomain.createCommand,
i.e., it creates commands for a domain's model objects.
createCommand in interface IEditingDomainItemProvider
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||