Java Doc for PageFlowController.java in  » IDE-Netbeans » web.core » org » netbeans » modules » web » jsf » navigation » 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 » web.core » org.netbeans.modules.web.jsf.navigation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.web.jsf.navigation.PageFlowController

PageFlowController
public class PageFlowController (Code)

author:
   joelle lam

Inner Class :static class TestAccessor

Field Summary
public  java.util.Stack<String>PageFlowCreationStack
    
public  java.util.Stack<String>PageFlowDestroyStack
    

Constructor Summary
public  PageFlowController(JSFConfigEditorContext context, PageFlowView view)
    

Method Summary
final public  booleanaddWebFile(FileObject fileObj)
    
public  voidchangeToAbstractNode(Page oldNode, String displayName)
    
protected  voidclearPageName2Page()
     Clears the pageName 2 Page mapping.
final public  booleancontainsWebFile(FileObject fileObj)
    
protected  voidcreateEdge(NavigationCaseEdge caseNode)
     Creates and edge in the scene, this method does not add an reference in the faces configuration.
public  NavigationCasecreateLink(Page source, Page target, Pin pinNode)
    
public  PagecreatePage(Node node)
     Create a Page from a node This method does not actually add the pages to the scene.
public  PagecreatePage(String pageName)
    
public  voiddestroy()
    
 voidflushGraphIfDirty()
    
public  DataObjectgetConfigDataObject()
    
 FileChangeListenergetFCL()
    
final public  NavigationCaseEdgegetNavCase2NavCaseEdge(NavigationCase navCase)
    
final public static  Collection<? extends PageContentModelProvider>getPageContentModelProviders()
     Moved this out of Page.java so that WebFolderListener also has an opportunity to access the providers so that it can listen and decide wether or not to update contents should be updated given a page.
protected  PagegetPageName2Page(String displayName)
     Get a page in the map given it's key.
public  PageFlowViewgetView()
    
public  FileObjectgetWebFolder()
     Gets the WebFolder which contains the jsp pages.
protected  voidifNecessaryShowNoWebFolderDialog()
    
public  booleanisCurrentScope(Scope scope)
    
final public  booleanisKnownFile(FileObject file)
     Check if the file type in known.
Parameters:
  file - the fileobject type to check.
final public  booleanisKnownFolder(FileObject folder)
    
public  booleanisNavCaseInFacesConfig(NavigationCaseEdge navEdge)
    
public  booleanisPageInAnyFacesConfig(String name)
    
final public  booleanisShowNoWebFolderDialog()
    
public  voidopenNavigationCase(NavigationCaseEdge navCaseEdge)
    
final public  voidputNavCase2NavCaseEdge(NavigationCase navCase, NavigationCaseEdge navCaseEdge)
    
final public  StringputNavRule2String(NavigationRule navRule, String navRuleName)
    
protected  voidputPageName2Page(String displayName, Page page)
     Associate a page with a given string name for future reference.
public  voidregisterListeners()
    
protected  voidreleaseGraphInfo()
    
public  voidremoveModelNavigationCase(NavigationCase navCase)
    
final public  NavigationCaseEdgeremoveNavCase2NavCaseEdge(NavigationCase navCase)
    
final public  StringremoveNavRule2String(NavigationRule navRule)
    
public  voidremovePageInModel(String displayName)
     Remove all rules and cases with this pagename.
public  PageremovePageName2Page(Page page, boolean permDestroy)
     Remove the page from the hashtable of string (or pages names ) to actual pages.
public  PageremovePageName2Page(String pageName, boolean permDestroy)
    
public  voidremoveSceneNodeEdges(Page pageNode)
     Remove page from the scene.
final public  booleanremoveWebFile(FileObject fileObj)
    
public  voidrenamePageInModel(String oldName, String newName)
     Rename all references to a given page int eh faces config file.
public  booleanreplacePageName2Page(Page page, String newName, String oldName)
     Replace page name in PageName2Node HasMap.
public  voidsaveLocation(String oldDisplayName, String newDisplayName)
    
public  voidserializeNodeLocations()
    
protected  voidsetFilesDirty()
    
protected  voidsetGraphDirty()
    
protected  voidsetGraphDirtyWellFormed(boolean isWellFormed)
    
public  voidsetModelNavigationCaseName(NavigationCase navCase, String newName)
    
final public  voidsetShowNoWebFolderDialog(boolean show)
    
public  booleansetupGraph()
    
public  booleansetupGraphNoSaveData()
    
public  voidunregisterListeners()
     Unregister any listeners.
public  voidupdatePageItems(Page pageNode)
    

Field Detail
PageFlowCreationStack
public java.util.Stack<String> PageFlowCreationStack(Code)



PageFlowDestroyStack
public java.util.Stack<String> PageFlowDestroyStack(Code)




Constructor Detail
PageFlowController
public PageFlowController(JSFConfigEditorContext context, PageFlowView view)(Code)
Creates a new instance of PageFlowController
Parameters:
  context -
Parameters:
  view -




Method Detail
addWebFile
final public boolean addWebFile(FileObject fileObj)(Code)



changeToAbstractNode
public void changeToAbstractNode(Page oldNode, String displayName)(Code)



clearPageName2Page
protected void clearPageName2Page()(Code)
Clears the pageName 2 Page mapping. Generally you want do this when you are about to throw everything in the scene away. This keeps references from being kept.



containsWebFile
final public boolean containsWebFile(FileObject fileObj)(Code)



createEdge
protected void createEdge(NavigationCaseEdge caseNode)(Code)
Creates and edge in the scene, this method does not add an reference in the faces configuration. In general it is best to call createLink as that will call createEdge indirectly through the faces model listener.
Parameters:
  caseNode - a NavigationCaseEdge. If null, will throw NPE.



createLink
public NavigationCase createLink(Page source, Page target, Pin pinNode)(Code)
Creates a Link in the FacesConfiguration
Parameters:
  source - from page, if null an NPE will be thrown.
Parameters:
  target - to page, if null an NPE will be thrown.
Parameters:
  pinNode - if null then it was not conntect to a pin.



createPage
public Page createPage(Node node)(Code)
Create a Page from a node This method does not actually add the pages to the scene. It just creates the component. You will need to call scene.createNode(page) if you want.
Parameters:
  node - the node or dataobject node delegate of a given fileobject.Use dataObject.find(fileObject).getNodeDelegate for the givenpage. If no dataObject backing the page, call createPage(String) page the Page that was created.



createPage
public Page createPage(String pageName)(Code)



destroy
public void destroy()(Code)



flushGraphIfDirty
void flushGraphIfDirty()(Code)



getConfigDataObject
public DataObject getConfigDataObject()(Code)



getFCL
FileChangeListener getFCL()(Code)



getNavCase2NavCaseEdge
final public NavigationCaseEdge getNavCase2NavCaseEdge(NavigationCase navCase)(Code)



getPageContentModelProviders
final public static Collection<? extends PageContentModelProvider> getPageContentModelProviders()(Code)
Moved this out of Page.java so that WebFolderListener also has an opportunity to access the providers so that it can listen and decide wether or not to update contents should be updated given a page.



getPageName2Page
protected Page getPageName2Page(String displayName)(Code)
Get a page in the map given it's key. This is a basic lookup table.
Parameters:
  displayName - String or associated key. the Page that is associated with the given key.



getView
public PageFlowView getView()(Code)



getWebFolder
public FileObject getWebFolder()(Code)
Gets the WebFolder which contains the jsp pages. FileObject webfolder



ifNecessaryShowNoWebFolderDialog
protected void ifNecessaryShowNoWebFolderDialog()(Code)



isCurrentScope
public boolean isCurrentScope(Scope scope)(Code)



isKnownFile
final public boolean isKnownFile(FileObject file)(Code)
Check if the file type in known.
Parameters:
  file - the fileobject type to check. If null, throws NPE. if it is of type jsp, jspf, or html it will return true.



isKnownFolder
final public boolean isKnownFolder(FileObject folder)(Code)



isNavCaseInFacesConfig
public boolean isNavCaseInFacesConfig(NavigationCaseEdge navEdge)(Code)



isPageInAnyFacesConfig
public boolean isPageInAnyFacesConfig(String name)(Code)



isShowNoWebFolderDialog
final public boolean isShowNoWebFolderDialog()(Code)



openNavigationCase
public void openNavigationCase(NavigationCaseEdge navCaseEdge)(Code)



putNavCase2NavCaseEdge
final public void putNavCase2NavCaseEdge(NavigationCase navCase, NavigationCaseEdge navCaseEdge)(Code)



putNavRule2String
final public String putNavRule2String(NavigationRule navRule, String navRuleName)(Code)



putPageName2Page
protected void putPageName2Page(String displayName, Page page)(Code)
Associate a page with a given string name for future reference. In general this method is called by a Page object to add itself. Really no other classes should use this method.
Parameters:
  displayName - name of the page you would like to reference it with (key)displayName can not be an empty string.
Parameters:
  page - Page to be associated with the string. If null, NPE thrown.



registerListeners
public void registerListeners()(Code)



releaseGraphInfo
protected void releaseGraphInfo()(Code)



removeModelNavigationCase
public void removeModelNavigationCase(NavigationCase navCase) throws IOException(Code)



removeNavCase2NavCaseEdge
final public NavigationCaseEdge removeNavCase2NavCaseEdge(NavigationCase navCase)(Code)



removeNavRule2String
final public String removeNavRule2String(NavigationRule navRule)(Code)



removePageInModel
public void removePageInModel(String displayName)(Code)
Remove all rules and cases with this pagename.
Parameters:
  displayName -



removePageName2Page
public Page removePageName2Page(Page page, boolean permDestroy)(Code)
Remove the page from the hashtable of string (or pages names ) to actual pages. Use permDestroy value to destroy the page in the scene completely.
Parameters:
  page - that you want to remove.
Parameters:
  permDestroy - true - destroys the page in the scene (removing the page content model and the page content listeners). This does not actual destroy the dataobject or the backing file object.false - if you just want to remove it from the list with the associated name. page that was removed.



removePageName2Page
public Page removePageName2Page(String pageName, boolean permDestroy)(Code)
Refer to removePageName2Page(Page page, boolean permDestroy) for details
Parameters:
  pageName - the string value of the page name that you want removed.
Parameters:
  destroy -



removeSceneNodeEdges
public void removeSceneNodeEdges(Page pageNode)(Code)
Remove page from the scene.
Parameters:
  pageNode -



removeWebFile
final public boolean removeWebFile(FileObject fileObj)(Code)



renamePageInModel
public void renamePageInModel(String oldName, String newName)(Code)
Rename all references to a given page int eh faces config file.
Parameters:
  oldName - String old name, if null thrown npe.
Parameters:
  newName - String new name, if null thrown npe.



replacePageName2Page
public boolean replacePageName2Page(Page page, String newName, String oldName)(Code)
Replace page name in PageName2Node HasMap. This is general used in a page rename. In general this removes the old Page and add the new one with the given name.
Parameters:
  page - Page that should be added into the map. If null, NPE thrown and nothing removed from the map.
Parameters:
  String - newName String that you want to assign to the page.
Parameters:
  String - oldName String that was assigned to the page. true if page was found to replace, false is page was not found.



saveLocation
public void saveLocation(String oldDisplayName, String newDisplayName)(Code)



serializeNodeLocations
public void serializeNodeLocations()(Code)



setFilesDirty
protected void setFilesDirty()(Code)



setGraphDirty
protected void setGraphDirty()(Code)



setGraphDirtyWellFormed
protected void setGraphDirtyWellFormed(boolean isWellFormed)(Code)



setModelNavigationCaseName
public void setModelNavigationCaseName(NavigationCase navCase, String newName)(Code)



setShowNoWebFolderDialog
final public void setShowNoWebFolderDialog(boolean show)(Code)



setupGraph
public boolean setupGraph()(Code)
Setup The Graph Should only be called by init();



setupGraphNoSaveData
public boolean setupGraphNoSaveData()(Code)



unregisterListeners
public void unregisterListeners()(Code)
Unregister any listeners.



updatePageItems
public void updatePageItems(Page pageNode)(Code)



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.