Java Doc for LayerItemProvider.java in  » GIS » udig-1.1 » net » refractions » udig » project » internal » provider » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » udig 1.1 » net.refractions.udig.project.internal.provider 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.refractions.udig.project.internal.provider.LayerItemProvider

LayerItemProvider
public class LayerItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,IStructuredItemContentProvider,ITreeItemContentProvider,IItemLabelProvider,IColorProvider,IItemPropertySource(Code)
This is the item provider adapter for a net.refractions.udig.project.internal.Layer object. The handling of this class is very important:
  • No method can block
  • if you have to catch an IOException you are doing it wrong
  • Responsible for providing an ImageDescriptor (not an Image)


Field Summary
final public static  StringGENERATED_ICON
    
final public static  StringGENERATED_NAME
    
final public static  Stringcopyright
    

Constructor Summary
public  LayerItemProvider(AdapterFactory adapterFactory)
     This constructs an instance from a factory and a notifier.

Method Summary
protected  voidaddCRSPropertyDescriptor(Object object)
     This adds a property descriptor for the CRS feature.
protected  voidaddCatalogRefPropertyDescriptor(Object object)
     This adds a property descriptor for the Catalog Ref feature.
protected  voidaddColourSchemePropertyDescriptor(Object object)
     This adds a property descriptor for the Colour Scheme feature.
protected  voidaddDefaultColorPropertyDescriptor(Object object)
     This adds a property descriptor for the Default Color feature.
protected  voidaddFeatureChangesPropertyDescriptor(Object object)
     This adds a property descriptor for the Feature Changes feature.
protected  voidaddFilterPropertyDescriptor(Object object)
     This adds a property descriptor for the Filter feature.
protected  voidaddGeoResourcePropertyDescriptor(Object object)
     This adds a property descriptor for the Geo Resource feature.
protected  voidaddGeoResourcesPropertyDescriptor(Object object)
     This adds a property descriptor for the Geo Resources feature.
protected  voidaddGlyphPropertyDescriptor(Object object)
     This adds a property descriptor for the Glyph feature.
protected  voidaddIDPropertyDescriptor(Object object)
     This adds a property descriptor for the ID feature.
protected  voidaddNamePropertyDescriptor(Object object)
     This adds a property descriptor for the Name feature.
protected  voidaddPropertiesPropertyDescriptor(Object object)
     This adds a property descriptor for the Properties feature.
protected  voidaddSelectablePropertyDescriptor(Object object)
     This adds a property descriptor for the Selectable feature.
protected  voidaddStatusPropertyDescriptor(Object object)
     This adds a property descriptor for the Status feature.
protected  voidaddVisiblePropertyDescriptor(Object object)
     This adds a property descriptor for the Visible feature.
protected  voidaddZorderPropertyDescriptor(Object object)
     This adds a property descriptor for the Zorder feature.
public  voiddispose()
    
public  ColorgetBackground(Object element)
    
public  CollectiongetChildrenFeatures(Object object)
     This specifies how to implement LayerItemProvider.getChildren 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 LayerItemProvider.createCommand .
public  ColorgetForeground(Object element)
    
public  ObjectgetImage(Object object)
     This returns Layer.gif.
public  ListgetPropertyDescriptors(Object object)
     This returns the property descriptors for the adapted class.
public  ResourceLocatorgetResourceLocator()
     Return the resource locator for this item provider's resources.
public  StringgetText(Object object)
     This returns the label text for the adapted class.
public  voidnotifyChanged(Notification notification)
     This handles model notifications by calling LayerItemProvider.updateChildren to update any cached children and by creating a viewer notification, which it passes to LayerItemProvider.fireNotifyChanged .

Field Detail
GENERATED_ICON
final public static String GENERATED_ICON(Code)
Propeties Key used to cache generated icon in layer.getProperties()



GENERATED_NAME
final public static String GENERATED_NAME(Code)
Properties Key used to cache generated name in layer.getProperties()



copyright
final public static String copyright(Code)




Constructor Detail
LayerItemProvider
public LayerItemProvider(AdapterFactory adapterFactory)(Code)
This constructs an instance from a factory and a notifier.




Method Detail
addCRSPropertyDescriptor
protected void addCRSPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the CRS feature.



addCatalogRefPropertyDescriptor
protected void addCatalogRefPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Catalog Ref feature.



addColourSchemePropertyDescriptor
protected void addColourSchemePropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Colour Scheme feature.



addDefaultColorPropertyDescriptor
protected void addDefaultColorPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Default Color feature.



addFeatureChangesPropertyDescriptor
protected void addFeatureChangesPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Feature Changes feature.



addFilterPropertyDescriptor
protected void addFilterPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Filter feature.



addGeoResourcePropertyDescriptor
protected void addGeoResourcePropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Geo Resource feature.



addGeoResourcesPropertyDescriptor
protected void addGeoResourcesPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Geo Resources feature.



addGlyphPropertyDescriptor
protected void addGlyphPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Glyph feature.



addIDPropertyDescriptor
protected void addIDPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the ID feature.



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



addPropertiesPropertyDescriptor
protected void addPropertiesPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Properties feature.



addSelectablePropertyDescriptor
protected void addSelectablePropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Selectable feature.



addStatusPropertyDescriptor
protected void addStatusPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Status feature.



addVisiblePropertyDescriptor
protected void addVisiblePropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Visible feature.



addZorderPropertyDescriptor
protected void addZorderPropertyDescriptor(Object object)(Code)
This adds a property descriptor for the Zorder feature.



dispose
public void dispose()(Code)



getBackground
public Color getBackground(Object element)(Code)

See Also:   net.refractions.udig.tool.info.internal.InfoView2
See Also:   



getChildrenFeatures
public Collection getChildrenFeatures(Object object)(Code)
This specifies how to implement LayerItemProvider.getChildren 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 LayerItemProvider.createCommand .



getForeground
public Color getForeground(Object element)(Code)

See Also:   net.refractions.udig.tool.info.internal.InfoView2
See Also:   



getImage
public Object getImage(Object object)(Code)
This returns Layer.gif. Returns layers glyph property, requesting WMS Legend Graphic will be handled by a decorator.



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



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



getText
public String getText(Object object)(Code)
This returns the label text for the adapted class. Makes use of layer label, will use name of GeoResource URL by default. A decorator can request the GeoResoruce's title in thread.



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



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.