Java Doc for XPageResource.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) 


javax.swing.JPanel
   net.xoetrope.builder.editor.XPageResource

XPageResource
public class XPageResource extends JPanel (Code)
A holder for a page's resources on behalf of the editor.

Copyright (c) Xoetrope Ltd., 1998-2003

$Revision: 1.19 $ License: see license.txt



Constructor Summary
public  XPageResource(String name, String path, String pagePackageName)
    

Method Summary
public  voidaddCtlEvent(Component c, long eventMask, String methodName)
     Store the name of an event in the ctlEvents Hashtable.
public  voidaddDataBinding(Component c, XDataBinding binding)
    
public  voidchangeClassName()
     When a template file is created we need to change the class name and the ctor.
public  StringgetBaseClassName()
    
public  StringgetCtlEvent(Component c, long eventMask)
    
public  XDataBindinggetDataBinding(Component c)
    
public  XEditorEventHandlergetEditorEventHandler()
    
public  booleangetIsModified()
    
public  StringgetJavaSource()
     Get the Java source for this screen.
public  FilegetJavaSourceFile()
    
public  StringgetJavaSourceFileName()
    
public  StringgetName()
    
public  StringgetPackageName()
    
public  XPagegetPage()
     Get the current page.
public  StringgetPageAttribute(String attribName)
    
public  StringgetStyleName(Component comp)
    
public  StringopenSourceFile(boolean create)
     Open the Java source file for the screen specified by pageName and return it's contents.
public  voidreloadPage()
    
public  voidremoveCtlEvent(Component c, long eventMask)
     Remove the components event handler.
public  voidresetStyles()
     Iterate through all the componet-style references and refresh the components so that the reflect the current set of styles.
public  voidsave(XEditorProject currentProject, String path)
     Saves the XML which defines a screen and any associated source files.
protected  voidsaveSource()
     Save the Java source associated with the screen.
public  voidsetBaseClassName(String className)
    
public  voidsetEditorEventHandler(XEditorEventHandler eh)
     Set/store the editor event handler.
public  voidsetIsModified()
    
public  voidsetJavaSource(String src)
     Sets the Java source for this screen.
public  voidsetPage(XPage newPage)
    
public  voidsetPageAttribute(String attribName, String value)
    
public  voidsetStyleName(Component comp, String styleName)
    
protected  booleansourceFileExists()
    


Constructor Detail
XPageResource
public XPageResource(String name, String path, String pagePackageName)(Code)




Method Detail
addCtlEvent
public void addCtlEvent(Component c, long eventMask, String methodName)(Code)
Store the name of an event in the ctlEvents Hashtable. The entry itself is another Hashtable as controls will potentially have multiple event. The key into the main Hashtable is the component while the key into the second one is a Long constructed from the event mask we are interested in.
Parameters:
  c - the component we are adding the event reference for. Used as thelookup for the main Hashtable
Parameters:
  eventMask - the event mask which is being dealt with. Used as thelookup for the sub Hashtable
Parameters:
  methodName - the name of the method which is called when the event istriggered



addDataBinding
public void addDataBinding(Component c, XDataBinding binding)(Code)



changeClassName
public void changeClassName()(Code)
When a template file is created we need to change the class name and the ctor. These are specified in the source by 'NEW_CLASS_NAME', 'PROJECT_PACKAGE_NAME'



getBaseClassName
public String getBaseClassName()(Code)



getCtlEvent
public String getCtlEvent(Component c, long eventMask)(Code)
Get the name of the event associated with the component parameter with the eventmask corresponding to the eventMask parameter
Parameters:
  c - the component we are looking up
Parameters:
  eventMask - the event mask for the component null if none found otherwise the name of the method which is to becalled when the event is triggered.



getDataBinding
public XDataBinding getDataBinding(Component c)(Code)



getEditorEventHandler
public XEditorEventHandler getEditorEventHandler()(Code)
Get the editor's event handler for this page the handler



getIsModified
public boolean getIsModified()(Code)
Returns the modification state of this page true if the page has been modified



getJavaSource
public String getJavaSource()(Code)
Get the Java source for this screen. the source for the file



getJavaSourceFile
public File getJavaSourceFile()(Code)



getJavaSourceFileName
public String getJavaSourceFileName()(Code)



getName
public String getName()(Code)
Get the name of the managed page



getPackageName
public String getPackageName()(Code)
Get the package to which the page belongs the package name, usingthe '.' notation



getPage
public XPage getPage()(Code)
Get the current page. the page or null if it hasn't been loaded yet



getPageAttribute
public String getPageAttribute(String attribName)(Code)
Get an attribute of the page
Parameters:
  attribName - the attribute name the attribute value or null if it is not present



getStyleName
public String getStyleName(Component comp)(Code)



openSourceFile
public String openSourceFile(boolean create)(Code)
Open the Java source file for the screen specified by pageName and return it's contents. If the source file doesn't currently exist and the create flag is true then create a template file.
Parameters:
  create - Create a template file if it doesn't already exist the contents of the file



reloadPage
public void reloadPage()(Code)



removeCtlEvent
public void removeCtlEvent(Component c, long eventMask)(Code)
Remove the components event handler. This is for the situation where a handler exists for a component and the user sets it to blank in the property editor.
Parameters:
  c - the component we are adding the event reference for. Used as thelookup for the main Hashtable
Parameters:
  eventMask - the event mask which is being dealt with. Used as thelookup for the sub Hashtable



resetStyles
public void resetStyles()(Code)
Iterate through all the componet-style references and refresh the components so that the reflect the current set of styles.



save
public void save(XEditorProject currentProject, String path)(Code)
Saves the XML which defines a screen and any associated source files.
Parameters:
  path - the file path to use in saving
Parameters:
  packageName - the package to which this page belongs



saveSource
protected void saveSource()(Code)
Save the Java source associated with the screen.



setBaseClassName
public void setBaseClassName(String className)(Code)



setEditorEventHandler
public void setEditorEventHandler(XEditorEventHandler eh)(Code)
Set/store the editor event handler. The handler is swapped by preview mode
Parameters:
  eh - the handler



setIsModified
public void setIsModified()(Code)
Marks this page as being modified



setJavaSource
public void setJavaSource(String src)(Code)
Sets the Java source for this screen.
Parameters:
  src - the source for the file



setPage
public void setPage(XPage newPage)(Code)
Set the current page
Parameters:
  newPage - the page



setPageAttribute
public void setPageAttribute(String attribName, String value)(Code)
Set an attribute of the page
Parameters:
  attribName - the attribute name
Parameters:
  value - the new value



setStyleName
public void setStyleName(Component comp, String styleName)(Code)



sourceFileExists
protected boolean sourceFileExists()(Code)
Check to see if the Java source file exists for the specified screen
Parameters:
  packagePath - the path to the source files true if it exists otherwise false.



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(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.