org.eclipse.emf.edit.provider
Class AdapterFactoryItemDelegator

java.lang.Object
  extended byorg.eclipse.emf.edit.provider.AdapterFactoryItemDelegator
All Implemented Interfaces:
IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITableItemLabelProvider, ITreeItemContentProvider
Direct Known Subclasses:
ItemPropertyDescriptor.ItemDelegator

public class AdapterFactoryItemDelegator
extends Object
implements IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITableItemLabelProvider, ITreeItemContentProvider


Field Summary
protected  AdapterFactory adapterFactory
          This keeps track of the factory used to generate the adapters.
 
Constructor Summary
AdapterFactoryItemDelegator(AdapterFactory adapterFactory)
           
 
Method Summary
 Command createCommand(Object object, EditingDomain editingDomain, Class commandClass, CommandParameter commandParameter)
          This does the same thing as EditingDomain.createCommand, i.e., it creates commands for a domain's model objects.
 AdapterFactory getAdapterFactory()
           
 Collection getChildren(Object object)
          This does the same thing as ITreeContentProvider.getChildren.
 Object getColumnImage(Object object, int columnIndex)
          This does the same thing as ITableLabelProvider.getColumnImage.
 String getColumnText(Object object, int columnIndex)
          This does the same thing as ITableLabelProvider.getColumnText.
 Object getEditableValue(Object object)
          This returns the value to be edited.
 Collection getElements(Object object)
          This does the same thing as IStructuredContentProvider.getElements.
 Object getImage(Object object)
          This does the same thing as ILabelProvider.getImage, it fetches the label image specific to this object instance.
 Collection getNewChildDescriptors(Object object, EditingDomain editingDomain, 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).
 Object getParent(Object object)
          This does the same thing as ITreeContentProvider.getParent.
 IItemPropertyDescriptor getPropertyDescriptor(Object object, Object propertyId)
          This returns the property descriptor with the given ID.
 List getPropertyDescriptors(Object object)
          This does the same thing as IPropertySource.getPropertyDescriptors.
 String getText(Object object)
          This does the same thing as ILabelProvider.getText, it fetches the label text specific to this object instance.
 boolean hasChildren(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

adapterFactory

protected AdapterFactory adapterFactory
This keeps track of the factory used to generate the adapters.

Constructor Detail

AdapterFactoryItemDelegator

public AdapterFactoryItemDelegator(AdapterFactory adapterFactory)
Method Detail

getAdapterFactory

public AdapterFactory getAdapterFactory()

getText

public String getText(Object object)
This does the same thing as ILabelProvider.getText, it fetches the label text specific to this object instance.

Specified by:
getText in interface IItemLabelProvider

getImage

public Object getImage(Object object)
This does the same thing as ILabelProvider.getImage, it fetches the label image specific to this object instance.

Specified by:
getImage in interface IItemLabelProvider

getColumnText

public String getColumnText(Object object,
                            int columnIndex)
This does the same thing as ITableLabelProvider.getColumnText.

Specified by:
getColumnText in interface ITableItemLabelProvider

getColumnImage

public Object getColumnImage(Object object,
                             int columnIndex)
This does the same thing as ITableLabelProvider.getColumnImage.

Specified by:
getColumnImage in interface ITableItemLabelProvider

getPropertyDescriptors

public List getPropertyDescriptors(Object object)
Description copied from interface: IItemPropertySource
This does the same thing as IPropertySource.getPropertyDescriptors.

Specified by:
getPropertyDescriptors in interface IItemPropertySource

getPropertyDescriptor

public IItemPropertyDescriptor getPropertyDescriptor(Object object,
                                                     Object propertyId)
Description copied from interface: IItemPropertySource
This returns the property descriptor with the given ID.

Specified by:
getPropertyDescriptor in interface IItemPropertySource

getEditableValue

public Object getEditableValue(Object object)
Description copied from interface: IItemPropertySource
This returns the value to be edited.

Specified by:
getEditableValue in interface IItemPropertySource

getElements

public Collection getElements(Object object)
This does the same thing as IStructuredContentProvider.getElements.

Specified by:
getElements in interface IStructuredItemContentProvider

getChildren

public Collection getChildren(Object object)
This does the same thing as ITreeContentProvider.getChildren.

Specified by:
getChildren in interface IEditingDomainItemProvider

hasChildren

public boolean hasChildren(Object object)
This does the same thing as ITreeContentProvider.hasChildren.

Specified by:
hasChildren in interface ITreeItemContentProvider

getParent

public Object getParent(Object object)
This does the same thing as ITreeContentProvider.getParent.

Specified by:
getParent in interface IEditingDomainItemProvider

getNewChildDescriptors

public Collection getNewChildDescriptors(Object object,
                                         EditingDomain editingDomain,
                                         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).

Specified by:
getNewChildDescriptors in interface IEditingDomainItemProvider

createCommand

public Command createCommand(Object object,
                             EditingDomain editingDomain,
                             Class commandClass,
                             CommandParameter commandParameter)
This does the same thing as EditingDomain.createCommand, i.e., it creates commands for a domain's model objects.

Specified by:
createCommand in interface IEditingDomainItemProvider

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.