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


java.lang.Object
   net.xoetrope.xui.XProject
      net.xoetrope.builder.editor.XEditorProject

XEditorProject
public class XEditorProject extends XProject implements Runnable(Code)
Maintains project information

Copyright: Copyright (c) Xoetrope Ltd., 1998-2003

$Revision: 1.19 $ License: license.txt


Field Summary
final public static  intDEVELOPER_MODE
    
final public static  intEXPERT_MODE
    
final public static  intNOVICE_MODE
    

Constructor Summary
public  XEditorProject(XuiEditor editor)
    

Method Summary
public  voidaddPage(String name)
    
public  XPageResourceaddPage(String newPageName, String className)
    
public  voidaddProjectListener(ProjectListener listener)
    
public  voidaddPropertiesListener(PropertiesListener listener)
    
protected  voidbuildDirectories(String packagePath)
    
public  voidbundleProject()
    
protected  voidchangePropertiesFile(String width, String height, String initScreen, String appTitle, boolean useFrames, String newPackageName)
     Change the necessary values of the properties file.
public  voidcreateNewProject(String newPath, String newPackageName, String width, String height, String[] frameSizes, String initScreen, String appTitle, boolean useFrames, boolean isSwing, String[] frameNames)
    
public  voidcreateProjectFile()
     Called when the create button on the NewProject dialog is clicked.
public  voiddoCompile(XMessageArea msgArea)
    
public  voidfireProjectLoaded()
    
public  voidfireProjectUpdated()
    
public  StringgetClassPath()
    
public  XuiEditorgetEditor()
    
public  JFramegetFrame()
    
public  intgetMode()
     Gets the editor mode.
public  StringgetPackageName()
    
public  XPageResourcegetPageResource(String name)
    
public  HashtablegetPageResources()
    
public  StringgetPath()
    
public  XPluginManagergetPluginManager()
    
public  XResourceManagergetResourceManager()
     Gets an instance of the resource manager.
public  StringgetStartupFilePath()
    
public  XStyleFactorygetStyleFactory()
    
public  XStyleManagergetStyleManager()
     Get a reference to the XStyleManager.
public  XmlElementgetValidation(String validationName)
    
public  booleangetValidationExists(String validationName)
    
public  String[]getValidations()
    
public  booleanhasFrames()
    
public  booleanhasProject()
    
public  voidinitialise(String path)
    
public  booleanisSwingClient()
    
public  voidloadPageResources()
     Open the Project path and iterate the 'pages' folder.
public  voidopenProject(String newPath)
     Read the project file. Create a new EditorClassLoader and set the relevant project paths.
public  voidreloadPageResources()
    
public  voidremoveAllPages()
    
public  voidremovePage(String pageName)
    
public  voidreplacePage(String pageName, XPage updatedPage)
    
public  voidrun()
    
public  voidsave()
     Save the current project.
protected  voidsavePlugins()
    
protected  voidsaveStartupFiles()
    
public  voidsetFrameset(String framesSet)
    
public  voidsetJavaSource(String screenName, String src)
    
public  voidsetMode(int newMode)
     Sets the editor mode.
public  voidsetPath(String p)
    
public  voidsetStartupParam(String key, String value)
    
public  voidsetStartupProperty(String fieldName, String fieldValue)
    
public  voidshutDown()
     Shut down the project.

Field Detail
DEVELOPER_MODE
final public static int DEVELOPER_MODE(Code)



EXPERT_MODE
final public static int EXPERT_MODE(Code)



NOVICE_MODE
final public static int NOVICE_MODE(Code)




Constructor Detail
XEditorProject
public XEditorProject(XuiEditor editor)(Code)
Create a new projects
Parameters:
  editor - the main editor object




Method Detail
addPage
public void addPage(String name)(Code)
Add a new Screen to the Hashtable with the key of the name parameter
Parameters:
  name -



addPage
public XPageResource addPage(String newPageName, String className)(Code)
Add a new page to the project
Parameters:
  newPageName - the new page name
Parameters:
  className - the base class name or null if the default is to be used the new page



addProjectListener
public void addProjectListener(ProjectListener listener)(Code)



addPropertiesListener
public void addPropertiesListener(PropertiesListener listener)(Code)



buildDirectories
protected void buildDirectories(String packagePath)(Code)



bundleProject
public void bundleProject()(Code)



changePropertiesFile
protected void changePropertiesFile(String width, String height, String initScreen, String appTitle, boolean useFrames, String newPackageName)(Code)
Change the necessary values of the properties file.
Parameters:
  path - The path to the properties file.



createNewProject
public void createNewProject(String newPath, String newPackageName, String width, String height, String[] frameSizes, String initScreen, String appTitle, boolean useFrames, boolean isSwing, String[] frameNames)(Code)



createProjectFile
public void createProjectFile()(Code)
Called when the create button on the NewProject dialog is clicked. A file with the extension '.xui' is written to the project path.



doCompile
public void doCompile(XMessageArea msgArea)(Code)
Compile the project



fireProjectLoaded
public void fireProjectLoaded()(Code)



fireProjectUpdated
public void fireProjectUpdated()(Code)



getClassPath
public String getClassPath()(Code)
Get the path for compiled classes



getEditor
public XuiEditor getEditor()(Code)



getFrame
public JFrame getFrame()(Code)



getMode
public int getMode()(Code)
Gets the editor mode. The mode controls what features are available in the editor a constant value indicating the mode



getPackageName
public String getPackageName()(Code)
Get the default package name the package name



getPageResource
public XPageResource getPageResource(String name)(Code)
Gets the Screen object stored in the Hashtable under the 'name' parameter
Parameters:
  name - the name of the screen we're looking up the Screen associated with the 'name' parameter



getPageResources
public Hashtable getPageResources()(Code)
Get the pages Hashtable the pages Hashtable



getPath
public String getPath()(Code)
Get the Project path the Project path



getPluginManager
public XPluginManager getPluginManager()(Code)



getResourceManager
public XResourceManager getResourceManager()(Code)
Gets an instance of the resource manager. A new instance is created if required the XResourceManager instance



getStartupFilePath
public String getStartupFilePath()(Code)
Returns the path to the startup file so that plugins can set project info String containing the path to the project file



getStyleFactory
public XStyleFactory getStyleFactory()(Code)



getStyleManager
public XStyleManager getStyleManager()(Code)
Get a reference to the XStyleManager. A new instance is created if required the style manager
since:
   1.03



getValidation
public XmlElement getValidation(String validationName)(Code)



getValidationExists
public boolean getValidationExists(String validationName)(Code)



getValidations
public String[] getValidations()(Code)



hasFrames
public boolean hasFrames()(Code)
Has the project got a frameset true if frames are in use, otherwise returns false



hasProject
public boolean hasProject()(Code)



initialise
public void initialise(String path)(Code)
Setup the project
Parameters:
  path - the path to the new project's root directory



isSwingClient
public boolean isSwingClient()(Code)
Check if the application is swing application true if this is a swing application



loadPageResources
public void loadPageResources()(Code)
Open the Project path and iterate the 'pages' folder. Call the addScreen function for each file found. Then call the openSourceFile method to store the source content with the parameter false so as not to create the file if it doesn't already exist.



openProject
public void openProject(String newPath)(Code)
Read the project file. Create a new EditorClassLoader and set the relevant project paths. Set the XEditorResourceManager customClassLoader to the new ClassLoader. Call loadpages to refresh the Project pages.
Parameters:
  path - the path to the new project



reloadPageResources
public void reloadPageResources()(Code)
Reopen the loaded pages



removeAllPages
public void removeAllPages()(Code)
Remove all page resources from the project



removePage
public void removePage(String pageName)(Code)
Remove a page resource from the project
Parameters:
  pageName -



replacePage
public void replacePage(String pageName, XPage updatedPage)(Code)
Replace a page resource from the project with an updated version
Parameters:
  pageName - the page name
Parameters:
  updatedPage - the updated version of this page



run
public void run()(Code)



save
public void save()(Code)
Save the current project.



savePlugins
protected void savePlugins()(Code)



saveStartupFiles
protected void saveStartupFiles()(Code)



setFrameset
public void setFrameset(String framesSet)(Code)
Set the frameset name for the project
Parameters:
  framesSet -



setJavaSource
public void setJavaSource(String screenName, String src)(Code)



setMode
public void setMode(int newMode)(Code)
Sets the editor mode. The mode controls what features are available in the editor
Parameters:
  newMode - this can be one of the following values
  • NOVICE_MODE - for a minimal user interface and only simple operations
  • EXPERT_MODE - for a fulll user interface and all operations
  • DEVELOPER_MODE - for the expert interface plus experimental options and possibly unstable features



setPath
public void setPath(String p)(Code)
Set the path of the Project
Parameters:
  p - the path of the Project



setStartupParam
public void setStartupParam(String key, String value)(Code)
Change or add a startup property
Parameters:
  key - the object key
Parameters:
  value - the object value



setStartupProperty
public void setStartupProperty(String fieldName, String fieldValue)(Code)
Change the startup property, the associated properties file is saved on each change
Parameters:
  fieldName - the name or key of the property to change.
Parameters:
  fieldValue - the value to place in the file.



shutDown
public void shutDown()(Code)
Shut down the project. Notifies the plugins of the shutdown.



Fields inherited from net.xoetrope.xui.XProject
protected Vector bindingFactories(Code)(Java Doc)
protected Class defaultModelClass(Code)(Java Doc)
protected URL documentBase(Code)(Java Doc)
protected MessageHelper messageHelper(Code)(Java Doc)
protected XModel modelRoot(Code)(Java Doc)
protected XPageManager pageManager(Code)(Java Doc)
protected XResourceManager resourceManager(Code)(Java Doc)
protected Properties startSettings(Code)(Java Doc)
protected String startupFile(Code)(Java Doc)
protected XStyleManager styleManager(Code)(Java Doc)
protected XmlParserFactory xmlParserFactory(Code)(Java Doc)

Methods inherited from net.xoetrope.xui.XProject
public Vector getBindingsFactories()(Code)(Java Doc)
public MessageHelper getMessageHelper()(Code)(Java Doc)
public XModel getModel()(Code)(Java Doc)
public XPageManager getPageManager()(Code)(Java Doc)
public XResourceManager getResourceManager()(Code)(Java Doc)
public String getStartupParam(String name)(Code)(Java Doc)
public int getStartupParamAsInt(String name)(Code)(Java Doc)
public XStyleManager getStyleManager()(Code)(Java Doc)
public XmlParserFactory getXmlParserFactory()(Code)(Java Doc)
public void initialise(String startFile)(Code)(Java Doc)
public void registerBindingFactory(XDataBindingFactory fact)(Code)(Java Doc)
public void resetModel()(Code)(Java Doc)
public void resetResourceManager()(Code)(Java Doc)
public void resetStyleManager()(Code)(Java Doc)
public void setDefaultModel(String className)(Code)(Java Doc)
public void setResourceManager(XResourceManager rm)(Code)(Java Doc)
public void setStartupFile(String fileName)(Code)(Java Doc)
public void setStartupParam(String name, String value)(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.