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

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

public class PageItemProvider
extends ElementItemProvider

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


Field Summary
protected  java.util.List children
           
 
Constructor Summary
PageItemProvider(AdapterFactory adapterFactory)
          This constructs an instance from a factory and a notifier.
 
Method Summary
protected  void addNamePropertyDescriptor(java.lang.Object object)
          This adds a property descriptor for the Name 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.util.Collection getChildren(java.lang.Object object)
           
 java.util.Collection getChildrenFeatures(java.lang.Object object)
          This specifies how to implement getChildren(java.lang.Object) and is used to deduce an appropriate feature for an org.eclipse.emf.edit.command.AddCommand, org.eclipse.emf.edit.command.RemoveCommand or org.eclipse.emf.edit.command.MoveCommand in #createCommand.
 java.lang.Object getImage(java.lang.Object object)
          This returns Page.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.ElementItemProvider
addLocationPropertyDescriptor, addSizePropertyDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected java.util.List children
Constructor Detail

PageItemProvider

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

Method Detail

getChildren

public java.util.Collection getChildren(java.lang.Object object)

getPropertyDescriptors

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

Overrides:
getPropertyDescriptors in class ElementItemProvider

addNamePropertyDescriptor

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


getChildrenFeatures

public java.util.Collection getChildrenFeatures(java.lang.Object object)
This specifies how to implement getChildren(java.lang.Object) and is used to deduce an appropriate feature for an org.eclipse.emf.edit.command.AddCommand, org.eclipse.emf.edit.command.RemoveCommand or org.eclipse.emf.edit.command.MoveCommand in #createCommand.


getImage

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

Overrides:
getImage in class ElementItemProvider

getText

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

Overrides:
getText in class ElementItemProvider

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 ElementItemProvider

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 ElementItemProvider

getResourceLocator

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

Overrides:
getResourceLocator in class ElementItemProvider