Java Doc for DesignIde.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » designtime » 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 » IDE Netbeans » visualweb.api.designer » com.sun.rave.designtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.designtime.DesignIde

DesignIde
public interface DesignIde (Code)

A DesignIde is a top-level container for DesignProjects at design-time. The DesignIde represents the Creator IDE itself. Not much can be done with DesignIde in the Creator Design-Time API, except for accessing DesignProjects, listening to project-level events, and storing user-level data.

IMPLEMENTED BY CREATOR - This interface is implemented by Creator for use by the component (bean) author.


since:
   Mako




Method Summary
public  voidaddDesignIdeListener(DesignIdeListener listener)
    
public  DesignProjectcreateDesignProject(Map projectData)
    
public  DesignIdeListener[]getDesignIdeListeners()
    
public  DesignProject[]getDesignProjects()
    

Returns all the DesignProjects in this IDE.

public  ObjectgetIdeData(String key)
    

Retrieves the value for a global name-value pair of data.

public  voidremoveDesignIdeListener(DesignIdeListener listener)
    
public  booleanremoveDesignProject(DesignProject project)
    
public  voidsetIdeData(String key, Object data)
    

Sets a global name-value pair of data.




Method Detail
addDesignIdeListener
public void addDesignIdeListener(DesignIdeListener listener)(Code)
Adds a listener to this DesignIde
Parameters:
  listener - The desired listener to add



createDesignProject
public DesignProject createDesignProject(Map projectData)(Code)

Creates a new DesignProject for this IDE.

FIXME - decide on paramete3rs to createDesignContext() method


Parameters:
  projectData - A Map of project data to apply to the newlycreated project The newly created DesignProject, or null if the operationwas unsuccessful



getDesignIdeListeners
public DesignIdeListener[] getDesignIdeListeners()(Code)
Returns the array of current listeners to this DesignIde An array of listeners currently listening to this DesignIde



getDesignProjects
public DesignProject[] getDesignProjects()(Code)

Returns all the DesignProjects in this IDE. There will be one DesignProject for each open project in the IDE.

An array of DesignProject objects



getIdeData
public Object getIdeData(String key)(Code)

Retrieves the value for a global name-value pair of data. This name-value pair will be stored in the associated user settings file (as text), so this data is retrievable in any IDE session once it has been set.

NOTE: The 'data' Object can be a simple String or a complex (non-String) Object. Either way, it will be stored as text in IDE state and will be associated with this IDE. When the IDE state is written to disk, any complex (non-String) objects will be converted to String using the 'toString()' method. If a component author wishes to store a complex (non-String) object, they must be sure to override the 'toString()' method on their object to serialize out enough information to be able to restore the object when a subsequent call to 'getIdeData' returns a String. Though a complex object was stored via the 'setIdeData' method, a component author *may* get back a String from 'getIdeData' if the IDE has been closed and reopened since the previous call to 'setIdeData'. It is the responsibility of the component author to reconstruct the complex object from the String, and if desired, put it back into the context using the 'setIdeData' method passing the newly constructed object in. This way, all subsequent calls to 'getIdeData' with that key will return the complex object instance - until the IDE is closed and restored.


Parameters:
  key - The desired String key to retrieve the data object for The data object that is currently stored under this key -this may be a String or an Object, based on what was stored using'setIdeData'. NOTE: This will always be a String after the usersettings are read from disk, even if the stored object was not aString - it will have been converted using the 'toString()' method.
See Also:   DesignIde.setIdeData(StringObject)



removeDesignIdeListener
public void removeDesignIdeListener(DesignIdeListener listener)(Code)
Removes a listener from this DesignIde
Parameters:
  listener - The desired listener to remove



removeDesignProject
public boolean removeDesignProject(DesignProject project)(Code)

Removes an existing DesignProject from this IDE.


Parameters:
  project - The desired DesignProject to remove from the IDE true if the operation was successful,false if not



setIdeData
public void setIdeData(String key, Object data)(Code)

Sets a global name-value pair of data. This name-value pair will be stored in the associated user settings file (as text), so this data is retrievable in a future IDE session.

NOTE: The 'data' Object can be a simple String or a complex (non-String) Object. Either way, it will be stored as text in IDE state and will be associated with this IDE. When the IDE state is written to disk, any complex (non-String) objects will be converted to String using the 'toString()' method. If a component author wishes to store a complex (non-String) object, they must be sure to override the 'toString()' method on their object to serialize out enough information to be able to restore the object when a subsequent call to 'getGlobalData' returns a String. Though a complex object was stored via the 'setIdeData' method, a component author *may* get back a String from 'getIdeData' if the IDE has been closed and reopened since the previous call to 'setIdeData'. It is the responsibility of the component author to reconstruct the complex object from the String, and if desired, put it back into the context using the 'setIdeData' method passing the newly constructed object in. This way, all subsequent calls to 'getIdeData' with that key will return the complex object instance - until the IDE is closed and restored.


Parameters:
  key - The String key to store the data object under
Parameters:
  data - The data object to store - this may be a String or anycomplex object, but it will be stored as a string using the'toString()' method when the user settings are written to disk.
See Also:   DesignIde.getIdeData(String)



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