net.refractions.udig.printing.model.provider
Class DecoratorBoxItemProvider

java.lang.Object
  extended by ItemProviderAdapter
      extended by net.refractions.udig.printing.model.provider.ElementItemProvider
          extended by net.refractions.udig.printing.model.provider.BoxItemProvider
              extended by net.refractions.udig.printing.model.provider.DecoratorBoxItemProvider

public class DecoratorBoxItemProvider
extends BoxItemProvider

This is the item provider adapter for a net.refractions.udig.printing.model.DecoratorBox object.


Constructor Summary
DecoratorBoxItemProvider(AdapterFactory adapterFactory)
          This constructs an instance from a factory and a notifier.
 
Method Summary
protected  void addLayerPropertyDescriptor(java.lang.Object object)
          This adds a property descriptor for the Layer feature.
protected  void addMapPropertyDescriptor(java.lang.Object object)
          This adds a property descriptor for the Map feature.
protected  void collectNewChildDescriptors(java.util.Collection newChildDescriptors, java.lang.Object object)
          This adds to the collection of org.eclipse.emf.edit.command.CommandParameters describing all of the children that can be created under this object.
 java.lang.Object getImage(java.lang.Object object)
          This returns DecoratorBox.gif.
 java.util.List getPropertyDescriptors(java.lang.Object object)
          This returns the property descriptors for the adapted class.
 ResourceLocator getResourceLocator()
          Return the resource locator for this item provider's resources.
 java.lang.String getText(java.lang.Object object)
          This returns the label text for the adapted class.
 void notifyChanged(Notification notification)
          This handles model notifications by calling #updateChildren to update any cached children and by creating a viewer notification, which it passes to #fireNotifyChanged.
 
Methods inherited from class net.refractions.udig.printing.model.provider.BoxItemProvider
addBoxPrinterPropertyDescriptor, addIDPropertyDescriptor, addSourceConnectionsPropertyDescriptor, addTargetConnectionsPropertyDescriptor
 
Methods inherited from class net.refractions.udig.printing.model.provider.ElementItemProvider
addLocationPropertyDescriptor, addSizePropertyDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratorBoxItemProvider

public DecoratorBoxItemProvider(AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier.

Method Detail

getPropertyDescriptors

public java.util.List getPropertyDescriptors(java.lang.Object object)
This returns the property descriptors for the adapted class.

Overrides:
getPropertyDescriptors in class BoxItemProvider

addMapPropertyDescriptor

protected void addMapPropertyDescriptor(java.lang.Object object)
This adds a property descriptor for the Map feature.


addLayerPropertyDescriptor

protected void addLayerPropertyDescriptor(java.lang.Object object)
This adds a property descriptor for the Layer feature.


getImage

public java.lang.Object getImage(java.lang.Object object)
This returns DecoratorBox.gif.

Overrides:
getImage in class BoxItemProvider

getText

public java.lang.String getText(java.lang.Object object)
This returns the label text for the adapted class.

Overrides:
getText in class BoxItemProvider

notifyChanged

public void notifyChanged(Notification notification)
This handles model notifications by calling #updateChildren to update any cached children and by creating a viewer notification, which it passes to #fireNotifyChanged.

Overrides:
notifyChanged in class BoxItemProvider

collectNewChildDescriptors

protected void collectNewChildDescriptors(java.util.Collection newChildDescriptors,
                                          java.lang.Object object)
This adds to the collection of org.eclipse.emf.edit.command.CommandParameters describing all of the children that can be created under this object.

Overrides:
collectNewChildDescriptors in class BoxItemProvider

getResourceLocator

public ResourceLocator getResourceLocator()
Return the resource locator for this item provider's resources.

Overrides:
getResourceLocator in class BoxItemProvider