Java Doc for XPageManager.java in  » XML-UI » XUI » net » xoetrope » xui » 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 » XML UI » XUI » net.xoetrope.xui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.xoetrope.xui.XPageManager

All known Subclasses:   net.xoetrope.builder.editor.XEditorPageManager,
XPageManager
public class XPageManager (Code)
A class for loading and displaying XPages. This class manages access to individual pages and coordinates update of the dispaly area. Pages can also be displayed as part of a frameset. The page manager caches the pages to improve performance and maintain state.

Copyright (c) Xoetrope Ltd., 2002-2003

License: see license.txt

$Revision: 1.26 $


Field Summary
protected  StringpackageName
    
protected  XPageDisplaypageDisplay
    
protected  StackpageHistory
    
protected  Hashtablepages
    
protected  XPageLoadersecondaryLoader
    

Constructor Summary
public  XPageManager()
    

Method Summary
public  voidaddHistory(String className)
    
public  XPagegetCurrentPage(String target)
    
public  XPageManagergetInstance()
     Return the instance.
public  intgetNumTargets()
    
public  XPagegetPage(String className)
    
public  XPagegetPreviousPage()
    
public  ContainergetTarget(String name)
    
public  ContainergetTarget(int idx)
    
public  voidloadFrames(String frameSetName)
     Loads a frameset.
public  XPageloadPage(String className)
     Load a page.
public  XPageloadPage(String className, boolean cache)
     Load a page.
public  voidreset()
     Reset the page history and dump any loaded pages.
public  voidsetPackageName(String pkgName)
     Set the package name.
public  voidsetPageDisplay(XPageDisplay pgDisplay)
     Set the interface to invoke when a page has been displayed. Reads the startup parameters Frames and UsesFrames to control loading of the frame set.
public  voidsetSecondaryLoader(XPageLoader pl)
     Set the page loader class.
public  XPageshowPage(String className)
     Load and show a page.
public  XPageshowPage(String className, String target)
     Load and show a page.
public  XPageshowPrevious()
     Show the previously displayed page.

Field Detail
packageName
protected String packageName(Code)



pageDisplay
protected XPageDisplay pageDisplay(Code)



pageHistory
protected Stack pageHistory(Code)



pages
protected Hashtable pages(Code)



secondaryLoader
protected XPageLoader secondaryLoader(Code)




Constructor Detail
XPageManager
public XPageManager()(Code)
Constructor which creates a hastable to store the pages




Method Detail
addHistory
public void addHistory(String className)(Code)



getCurrentPage
public XPage getCurrentPage(String target)(Code)
Get the page currently displayed by a particular target container
Parameters:
  target - the target container name the page or else null if the page hasn't been loaded yet.



getInstance
public XPageManager getInstance()(Code)
Return the instance. This class now delegates to the project manager.



getNumTargets
public int getNumTargets()(Code)
Get the number of frame/target from the current frameset the number of target frames



getPage
public XPage getPage(String className)(Code)
Get a page
Parameters:
  className - the page name the page or else null if the page hasn't been loaded yet.



getPreviousPage
public XPage getPreviousPage()(Code)
Get the page previously displayed by the 'content' target container the page or else null if there wasn't a previous page



getTarget
public Container getTarget(String name)(Code)
Get a named frame/target from the current frameset
Parameters:
  name - the name of the frame the target frame



getTarget
public Container getTarget(int idx)(Code)
Get the target for a page display request
Parameters:
  idx - the target area the container to be updated



loadFrames
public void loadFrames(String frameSetName)(Code)
Loads a frameset. Check first to see if we have it in the Hashtable
Parameters:
  frameSetName - the name of the frameSet we want to load.



loadPage
public XPage loadPage(String className)(Code)
Load a page. Check first to see if we have it in the Hashtable
Parameters:
  className - the name of the class we want to load.



loadPage
public XPage loadPage(String className, boolean cache)(Code)
Load a page. Check first to see if we have it in the Hashtable when the cache flag is set to true.
Parameters:
  className - the name of the class we want to load.
Parameters:
  cache - whether or not to cache the page or check the cache the cached page or the newly created page.



reset
public void reset()(Code)
Reset the page history and dump any loaded pages.



setPackageName
public void setPackageName(String pkgName)(Code)
Set the package name.
Parameters:
  pkgName - the name of the package we're running from.



setPageDisplay
public void setPageDisplay(XPageDisplay pgDisplay)(Code)
Set the interface to invoke when a page has been displayed. Reads the startup parameters Frames and UsesFrames to control loading of the frame set. If Frames is not specified it defaults to "frames", and if UsesFrames is not specified it defaults to "true".
Parameters:
  pgDisplay - The XPageDisplay interface



setSecondaryLoader
public void setSecondaryLoader(XPageLoader pl)(Code)
Set the page loader class. XuiBuilder is an example of a secondary page loader that loads pages from an XML description.
Parameters:
  pl - the page loader instance



showPage
public XPage showPage(String className)(Code)
Load and show a page.
Parameters:
  className - the page being displayed



showPage
public XPage showPage(String className, String target)(Code)
Load and show a page.
Parameters:
  className -
Parameters:
  target - the area to update the page being displayed



showPrevious
public XPage showPrevious()(Code)
Show the previously displayed page.



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.