Java Doc for FacesModelSet.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » insync » models » 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 » org.netbeans.modules.visualweb.insync.models 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.insync.ModelSet
      org.netbeans.modules.visualweb.insync.models.FacesModelSet

FacesModelSet
public class FacesModelSet extends ModelSet implements FacesDesignProject(Code)
A specific concrete ModelSet class that knows all about JSF.
author:
   cquinn

Inner Class :protected static class OpenProjectsListener implements PropertyChangeListener

Field Summary
final public static  booleanLOG_SYNC_ALLS
    
final protected static  StringPROJECTDATA_ELEMENT_KEY_PREFIX
    
final protected static  StringPROJECTDATA_ELEMENT_NAMESPACE
    
 intcounter
    
 FacesConfigModelfacesConfigModel
    
final protected  ArrayListlisteners
    
protected static  IdentityHashMapopenProjects
    
 PropertyChangeSupportpropertyChangeSupport
    
 longstartTime
    
 HashMapuserData
    

Constructor Summary
public  FacesModelSet(Project project)
    

Method Summary
public  voidaddDesignProjectListener(DesignProjectListener listener)
    
public  voidaddPropertyChangeListener(PropertyChangeListener propChangeListener)
     Add a property change listener to the design project so that it could fire events such as classloader changed.
public  URIaddResource(URL sourceUrl, URI targetUri)
     Copies a resource into this project, and converts the external URL into a local URI (resource identifier string).
public  voidclassPathChanged()
     Respond to changes in the project class path by updating the models.
public  DesignContextcreateDesignContext(String className, Class baseClass, Map contextData)
     Creates a new DesignContext (backing file) in this project.
public  voiddestroy()
    
protected  CollectionevalOrderModels(Collection modelsToOrder)
    
public  DesignContextfindDesignContext(String beanName)
    
public  DesignContextfindDesignContext(ManagedBean mb, boolean ignorePage)
    
public  DesignContext[]findDesignContexts(String[] scopes)
    
protected  voidfireContextClosed(DesignContext context)
    
protected  voidfireContextOpened(DesignContext context)
    
protected  voidflushProjectData()
    
public  CollectiongetBeanNamesToXRef(ManagedBean.Scope scope, FacesModel facesModel)
    
public  ClassLoadergetContextClassLoader()
    
public  StringgetDescription()
    
public  DesignContext[]getDesignContexts()
    
public  DesignProjectListener[]getDesignProjectListeners()
    
public  StringgetDisplayName()
    
public  FileObjectgetDocumentDirectory()
    
public  FacesConfigModelgetFacesConfigModel()
    
public  FacesContainergetFacesContainer()
    
public  FacesModelgetFacesModel(FileObject file)
     Get the FacesModel for a given FileObject iff the file is modeled.
public  FacesModelgetFacesModel(String beanName)
     Get the FacesModel for a given FileObject iff the file is modeled.
public static  FacesModelgetFacesModelIfAvailable(FileObject fileObject)
    
public  FacesModel[]getFacesModels()
    
public  ObjectgetGlobalData(String key)
    
public  StringgetHelpKey()
    
public static  FacesModelSetgetInstance(FileObject file)
    
public static  FacesModelSetgetInstance(Project project)
    
public  FileObjectgetJavaFolderFor(FileObject other, boolean tryHard)
     Other can be a file in my web or java folder tree.
public  FileObjectgetJavaRootFolder()
    
public  ImagegetLargeIcon()
    
public  ModelgetModel(FileObject file)
    
public  FileObjectgetPageJavaRootFolder()
    
public  FileObjectgetPageJspRootFolder()
    
public  ObjectgetProjectData(String key)
    
public  FileObjectgetProjectDirectory()
    
protected  URIgetProjectDirectoryUri()
    
public  FilegetResourceFile(URI resourceUri)
     Returns a File object containing the specified resource.
public  URI[]getResources(URI folderUri, boolean recurseFolders)
    

Returns the set of top-level resources in this project as an array of local resource identifiers.

public  ImagegetSmallIcon()
    
public  booleanhasDesignProjectListeners()
     A small hack to prevent the creation of contexts objects if there are no listeners, such as project open time.
public  URIrelativize(FileObject file)
    
public  URIrelativize(FileObject file, FileObject relativeTo)
     Return a URI which provides a path to get to file, from relativeTo.
public  voidremoveBeanElReferences(String oldname)
    
public  booleanremoveDesignContext(DesignContext context)
     Removes an existing DesignContext (backing file) from this project.
public  voidremoveDesignProjectListener(DesignProjectListener listener)
    
public  voidremoveModel(Model model)
    
public  voidremovePropertyChangeListener(PropertyChangeListener propChangeListener)
     Remove property change listener.
public  booleanremoveResource(URI resourceUri)
     Removes a resource from the project directory.
protected  booleanremoveUnits(SourceUnit[] units)
    
protected  FileObjectresolveToFileObject(URI uri)
    
protected  FileObjectresolveToFileObject(URL url)
    
protected  URIresolveToUri(URI uri)
    
protected  URLresolveToUrl(URI uri)
    
public  voidsetGlobalData(String key, Object data)
    
public  voidsetProjectData(String key, Object data)
    
public static  FacesModelSetstartModeling(FileObject file)
    
public static  FacesModelSetstartModeling(Project project)
    
protected  voidsyncAll()
    
public  voidupdateBeanElReferences(String oldname, String newname)
    

Field Detail
LOG_SYNC_ALLS
final public static boolean LOG_SYNC_ALLS(Code)



PROJECTDATA_ELEMENT_KEY_PREFIX
final protected static String PROJECTDATA_ELEMENT_KEY_PREFIX(Code)



PROJECTDATA_ELEMENT_NAMESPACE
final protected static String PROJECTDATA_ELEMENT_NAMESPACE(Code)



counter
int counter(Code)



facesConfigModel
FacesConfigModel facesConfigModel(Code)



listeners
final protected ArrayList listeners(Code)



openProjects
protected static IdentityHashMap openProjects(Code)



propertyChangeSupport
PropertyChangeSupport propertyChangeSupport(Code)



startTime
long startTime(Code)



userData
HashMap userData(Code)




Constructor Detail
FacesModelSet
public FacesModelSet(Project project)(Code)

Parameters:
  project -




Method Detail
addDesignProjectListener
public void addDesignProjectListener(DesignProjectListener listener)(Code)



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener propChangeListener)(Code)
Add a property change listener to the design project so that it could fire events such as classloader changed.



addResource
public URI addResource(URL sourceUrl, URI targetUri) throws IOException(Code)
Copies a resource into this project, and converts the external URL into a local URI (resource identifier string).
Parameters:
  sourceUrl - A URL pointing to the desired external resource
Parameters:
  targetUri - The desired resource URI (path) within the project directory The resulting project relative resource uri (resourceUri)
throws:
  IOException - if the resource cannot be copied



classPathChanged
public void classPathChanged()(Code)
Respond to changes in the project class path by updating the models.
See Also:   com.sun.rave.project.model.ProjectContentChangeListener.classPathChanged(com.sun.rave.project.model.ProjectContentChangeEvent)
See Also:   PROJECTTODO2: I dont get this event anymore



createDesignContext
public DesignContext createDesignContext(String className, Class baseClass, Map contextData)(Code)
Creates a new DesignContext (backing file) in this project.
Parameters:
  className - The desired fully-qualified class name for the file
Parameters:
  baseClass - The desired base class for the file
Parameters:
  contextData - A Map of context data to apply to the newly created context file The newly created DesignContext, or null if the operation was unsuccessful



destroy
public void destroy()(Code)



evalOrderModels
protected Collection evalOrderModels(Collection modelsToOrder)(Code)



findDesignContext
public DesignContext findDesignContext(String beanName)(Code)



findDesignContext
public DesignContext findDesignContext(ManagedBean mb, boolean ignorePage)(Code)



findDesignContexts
public DesignContext[] findDesignContexts(String[] scopes)(Code)



fireContextClosed
protected void fireContextClosed(DesignContext context)(Code)

Parameters:
  context -



fireContextOpened
protected void fireContextOpened(DesignContext context)(Code)

Parameters:
  context -



flushProjectData
protected void flushProjectData()(Code)



getBeanNamesToXRef
public Collection getBeanNamesToXRef(ManagedBean.Scope scope, FacesModel facesModel)(Code)



getContextClassLoader
public ClassLoader getContextClassLoader()(Code)



getDescription
public String getDescription()(Code)



getDesignContexts
public DesignContext[] getDesignContexts()(Code)



getDesignProjectListeners
public DesignProjectListener[] getDesignProjectListeners()(Code)



getDisplayName
public String getDisplayName()(Code)



getDocumentDirectory
public FileObject getDocumentDirectory()(Code)



getFacesConfigModel
public FacesConfigModel getFacesConfigModel()(Code)



getFacesContainer
public FacesContainer getFacesContainer()(Code)



getFacesModel
public FacesModel getFacesModel(FileObject file)(Code)
Get the FacesModel for a given FileObject iff the file is modeled. Allow for either file to be passed to look up a paired file model.
Parameters:
  file - object the FacesModel for a given FileObject



getFacesModel
public FacesModel getFacesModel(String beanName)(Code)
Get the FacesModel for a given FileObject iff the file is modeled. Allow for either file to be passed to look up a paired file model.
Parameters:
  file - object the FacesModel for a given FileObject



getFacesModelIfAvailable
public static FacesModel getFacesModelIfAvailable(FileObject fileObject)(Code)



getFacesModels
public FacesModel[] getFacesModels()(Code)



getGlobalData
public Object getGlobalData(String key)(Code)



getHelpKey
public String getHelpKey()(Code)



getInstance
public static FacesModelSet getInstance(FileObject file)(Code)



getInstance
public static FacesModelSet getInstance(Project project)(Code)

Parameters:
  project -



getJavaFolderFor
public FileObject getJavaFolderFor(FileObject other, boolean tryHard)(Code)
Other can be a file in my web or java folder tree. Either way I return the appropriate java one. If in neither tree, return null.
Parameters:
  other -



getJavaRootFolder
public FileObject getJavaRootFolder()(Code)



getLargeIcon
public Image getLargeIcon()(Code)



getModel
public Model getModel(FileObject file)(Code)



getPageJavaRootFolder
public FileObject getPageJavaRootFolder()(Code)



getPageJspRootFolder
public FileObject getPageJspRootFolder()(Code)



getProjectData
public Object getProjectData(String key)(Code)



getProjectDirectory
public FileObject getProjectDirectory()(Code)



getProjectDirectoryUri
protected URI getProjectDirectoryUri()(Code)



getResourceFile
public File getResourceFile(URI resourceUri)(Code)
Returns a File object containing the specified resource.
Parameters:
  resourceUri - The desired project relative resource uri to fetch a file object A File object containing the project resource



getResources
public URI[] getResources(URI folderUri, boolean recurseFolders)(Code)

Returns the set of top-level resources in this project as an array of local resource identifiers. The URIs are paths from the project root, including folder hiearchy within the project. Use getResourceFile(URI) to retrieve a File object for a particular resource in the project.


Parameters:
  rootPath - The root path to fetch resources underneath. Passing null willstart at the root of the project.
Parameters:
  recurseFolders - true to include the sub-resources inside of any folders A URI[] representing all the resource files under the specified root path



getSmallIcon
public Image getSmallIcon()(Code)



hasDesignProjectListeners
public boolean hasDesignProjectListeners()(Code)
A small hack to prevent the creation of contexts objects if there are no listeners, such as project open time.



relativize
public URI relativize(FileObject file)(Code)



relativize
public URI relativize(FileObject file, FileObject relativeTo)(Code)
Return a URI which provides a path to get to file, from relativeTo.
Parameters:
  file -
Parameters:
  relativeTo -



removeBeanElReferences
public void removeBeanElReferences(String oldname)(Code)

Parameters:
  oldname -



removeDesignContext
public boolean removeDesignContext(DesignContext context)(Code)
Removes an existing DesignContext (backing file) from this project.
Parameters:
  context - The desired DesignContext to remove from the project true if the operation was successful, false if not



removeDesignProjectListener
public void removeDesignProjectListener(DesignProjectListener listener)(Code)



removeModel
public void removeModel(Model model)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener propChangeListener)(Code)
Remove property change listener.



removeResource
public boolean removeResource(URI resourceUri)(Code)
Removes a resource from the project directory.
Parameters:
  resourceUri - The desired resource to remove from the project boolean true if the resource was successfully removed,false if not



removeUnits
protected boolean removeUnits(SourceUnit[] units)(Code)



resolveToFileObject
protected FileObject resolveToFileObject(URI uri)(Code)



resolveToFileObject
protected FileObject resolveToFileObject(URL url)(Code)



resolveToUri
protected URI resolveToUri(URI uri)(Code)



resolveToUrl
protected URL resolveToUrl(URI uri) throws IllegalArgumentException(Code)



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



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



startModeling
public static FacesModelSet startModeling(FileObject file)(Code)



startModeling
public static FacesModelSet startModeling(Project project)(Code)



syncAll
protected void syncAll()(Code)



updateBeanElReferences
public void updateBeanElReferences(String oldname, String newname)(Code)

Parameters:
  oldname -
Parameters:
  newname -



Fields inherited from org.netbeans.modules.visualweb.insync.ModelSet
protected URLClassLoader classLoader(Code)(Java Doc)
protected ClassPath classPath(Code)(Java Doc)
protected ClassPathListener classPathListener(Code)(Java Doc)
protected Model configModel(Code)(Java Doc)
protected FileSystem fileSystem(Code)(Java Doc)
final protected IdentityHashMap modelSetListeners(Code)(Java Doc)
protected static ArrayList modelSetsListeners(Code)(Java Doc)
final protected IdentityHashMap models(Code)(Java Doc)
final protected ClassLoader parentClassLoader(Code)(Java Doc)
final protected Project project(Code)(Java Doc)
protected static IdentityHashMap sets(Code)(Java Doc)

Methods inherited from org.netbeans.modules.visualweb.insync.ModelSet
protected void addModel(FileObject file, Model m)(Code)(Java Doc)
public void addModelSetListener(ModelSetListener listener)(Code)(Java Doc)
public static void addModelSetsListener(ModelSetsListener listener)(Code)(Java Doc)
public void classPathChanged()(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
protected Collection evalOrderModels(Collection modelsToOrder)(Code)(Java Doc)
public void fileAttributeChanged(FileAttributeEvent fe)(Code)(Java Doc)
public void fileChanged(FileEvent fe)(Code)(Java Doc)
public void fileDataCreated(FileEvent fe)(Code)(Java Doc)
public void fileDeleted(FileEvent event)(Code)(Java Doc)
public void fileFolderCreated(FileEvent fe)(Code)(Java Doc)
public void fileRenamed(FileRenameEvent event)(Code)(Java Doc)
protected void fireModelAdded(Model model)(Code)(Java Doc)
protected void fireModelChanged(Model model)(Code)(Java Doc)
protected void fireModelProjectChanged()(Code)(Java Doc)
protected void fireModelRemoved(Model model)(Code)(Java Doc)
protected static void fireModelSetAdded(ModelSet modelSet)(Code)(Java Doc)
protected static void fireModelSetRemoved(ModelSet modelSet)(Code)(Java Doc)
protected void flushAll()(Code)(Java Doc)
public Model getConfigModel()(Code)(Java Doc)
protected static java.util.Collection getFactories()(Code)(Java Doc)
protected static ModelSet getInstance(FileObject file, Class ofType)(Code)(Java Doc)
protected static synchronized ModelSet getInstance(Project project, Class ofType)(Code)(Java Doc)
protected FileObject getLocalFileObject(FileObject fileObject)(Code)(Java Doc)
public Model getModel(FileObject file)(Code)(Java Doc)
protected static ModelSet getModelSet(FileObject file)(Code)(Java Doc)
protected static ModelSet getModelSet(Project project)(Code)(Java Doc)
public Model[] getModels()(Code)(Java Doc)
protected Map getModelsMap()(Code)(Java Doc)
public Project getProject()(Code)(Java Doc)
public URLClassLoader getProjectClassLoader()(Code)(Java Doc)
protected List getSourceRoots()(Code)(Java Doc)
public static boolean hasActiveLockFileSigns(FileObject fileObject)(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public void processFileDataCreated(FileObject fileObject)(Code)(Java Doc)
protected void releaseProjectClassLoader()(Code)(Java Doc)
public void removeFromModelsToSync(Model model)(Code)(Java Doc)
public void removeModel(Model model)(Code)(Java Doc)
public void removeModelSetListener(ModelSetListener listener)(Code)(Java Doc)
public static void removeModelSetsListener(ModelSetsListener listener)(Code)(Java Doc)
protected void saveAll()(Code)(Java Doc)
public void setConfigModel(Model configModel)(Code)(Java Doc)
public void setInitialized()(Code)(Java Doc)
protected void showSyncErrors(ArrayList errors, boolean printPreface)(Code)(Java Doc)
protected static ModelSet startModeling(Project project, Class ofType)(Code)(Java Doc)
protected void syncAll()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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