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

XuiEditor
public class XuiEditor extends JPanel implements CommandListener,ProjectListener,XPageListListener,ComponentSelectListener,StyleListener,EventHandlerEditor,ToolbarListener,EditorComponentListener,ChangeListener(Code)
The main editor class, responsible for constucting the editor, menus, toolbars etc...

Copyright (c) Xoetrope Ltd., 2002-2003

$Revision: 1.20 $

License: see license.txt



Field Summary
final static  StringhelpsetLabel
    
final static  StringhelpsetName
    
protected  XMessageAreamessageArea
    
protected  XPageHolderpageHolder
    
protected  JScrollPanepageScroller
    
protected  intpendingComponent
    
protected  XSourceEditorsourceEditor
    
protected  JTabbedPanetabbar
    
protected  XSourceEditorxmlEditorvalidationEditorstaticDataEditor
    

Constructor Summary
public  XuiEditor(JFrame frame)
    

Method Summary
public  voidaddPlugin()
    
public  voidaddPluginEditor(XEditorPlugin plugin)
    
public  voidaddPluginMenu(XEditorPlugin plugin)
    
public  voidaddPluginPanel(XEditorPlugin plugin)
    
public  voidaddPluginToolbar(XEditorPlugin plugin)
    
public  voidaddPropertiesListener(PropertiesListener listener)
    
protected  voidbundleProject()
     Bundle the current project into a jar file for distribution.
protected  voidcompileProject()
    
public  voidcomponentAdded()
    
public  voideditCopy()
    
public  voideditCut()
    
public  voideditDelete()
    
public  voideditPaste()
    
protected  voidexitProject(boolean allowCancel)
    
public  JFramegetFrame()
    
public  XGuidePanegetGuidePane()
    
public  XEditorMenugetMenu()
    
public  XMessageAreagetMessageArea()
    
public  DimensiongetMinimumSize()
    
public static  XPageHoldergetPageHolder()
    
public  XToolPalettegetToolPalette()
    
public  voidloadFrames(boolean showFrames)
    
public  voidloadPage(String pageName, String target, int pageWidth, int pageHeight)
    
public static  voidmain(String args)
    
protected  voidnewPage()
    
protected  voidnewProject()
    
public  voidopenProject(String fileName)
    
protected  voidopenProject()
    
public  voidpluginPanelActivated()
    
public  voidpluginPanelDeactivated()
    
public  voidprocessCommand(String command, ActionEvent evt, boolean selected)
    
public  voidprocessCommand(int command, ActionEvent evt, boolean selected)
    
public  voidprocessPluginCommand(int command, AWTEvent evt, boolean selected)
    
public  voidprojectLoaded(XEditorProject project)
     Respond to the project loading by updating the UI components - menus, toolbars etc...
public  voidprojectUpdated()
    
protected  voidregisterHelpers()
    
public  voidremovePlugin()
    
protected  voidremovePluginEditor()
    
public  booleanremovePluginMenu(XEditorPlugin plugin)
    
public  booleanremovePluginPanel(XEditorPlugin plugin)
    
public  voidremovePluginToolbar(XEditorPlugin plugin)
    
public  voidreparsePageXml()
     Reparse the page XML if it has changed.
protected  voidsaveProject()
    
public  voidsetNewComponent(Component c)
    
public  voidsetPendingComponentName(String name)
    
public  voidsetSelectedComponents(Vector selectedComponents)
    
protected  voidsetXml(int view)
    
protected  voidsetupGuiEditor()
    
protected  voidsetupProject(String projectPath)
    
protected  voidsetupTextEditor()
    
protected  voidsetupXmlEditor(int type)
    
public  voidshowEventHandler(XPageResource page, Component source, String methodName, long mask)
    
public  voidshowMessageArea(boolean forceDisplay)
     Show or hide the message area.
public  voidshowPageEventHandler(XPageResource page, String methodName)
    
public  voidstateChanged(ChangeEvent e)
    
public  voidstyleChanged(String name, XStyle style)
    
public  voidtoolbarClicked(String c)
    

Field Detail
helpsetLabel
final static String helpsetLabel(Code)



helpsetName
final static String helpsetName(Code)



messageArea
protected XMessageArea messageArea(Code)



pageHolder
protected XPageHolder pageHolder(Code)



pageScroller
protected JScrollPane pageScroller(Code)



pendingComponent
protected int pendingComponent(Code)



sourceEditor
protected XSourceEditor sourceEditor(Code)



tabbar
protected JTabbedPane tabbar(Code)



xmlEditorvalidationEditorstaticDataEditor
protected XSourceEditor xmlEditorvalidationEditorstaticDataEditor(Code)




Constructor Detail
XuiEditor
public XuiEditor(JFrame frame)(Code)




Method Detail
addPlugin
public void addPlugin()(Code)
Add a plugin and setup its components



addPluginEditor
public void addPluginEditor(XEditorPlugin plugin)(Code)



addPluginMenu
public void addPluginMenu(XEditorPlugin plugin)(Code)
Add the plugin menu



addPluginPanel
public void addPluginPanel(XEditorPlugin plugin)(Code)
Add a tab panel for the plugin
Parameters:
  plugin - the new plugin



addPluginToolbar
public void addPluginToolbar(XEditorPlugin plugin)(Code)
Add the plugin toolbar



addPropertiesListener
public void addPropertiesListener(PropertiesListener listener)(Code)



bundleProject
protected void bundleProject()(Code)
Bundle the current project into a jar file for distribution.



compileProject
protected void compileProject()(Code)



componentAdded
public void componentAdded()(Code)



editCopy
public void editCopy()(Code)



editCut
public void editCut()(Code)



editDelete
public void editDelete()(Code)



editPaste
public void editPaste()(Code)



exitProject
protected void exitProject(boolean allowCancel)(Code)
Shutdown the project
Parameters:
  allowCancel - on system exit there is no way to prevent the application window from disappearing, so cancel is inappropriate



getFrame
public JFrame getFrame()(Code)
Get a reference to the message area



getGuidePane
public XGuidePane getGuidePane()(Code)



getMenu
public XEditorMenu getMenu()(Code)



getMessageArea
public XMessageArea getMessageArea()(Code)
Get a reference to the message area



getMinimumSize
public Dimension getMinimumSize()(Code)



getPageHolder
public static XPageHolder getPageHolder()(Code)



getToolPalette
public XToolPalette getToolPalette()(Code)
Get the toolbar/palette a reference to th toolbar



loadFrames
public void loadFrames(boolean showFrames)(Code)
Load a frameset
Parameters:
  showFrames - true to show the frames



loadPage
public void loadPage(String pageName, String target, int pageWidth, int pageHeight)(Code)



main
public static void main(String args)(Code)
The main entry point to the editor
Parameters:
  args - the project takes no arguments so far and is not used



newPage
protected void newPage()(Code)
Create a new screen by popping up a dialog



newProject
protected void newProject()(Code)



openProject
public void openProject(String fileName)(Code)



openProject
protected void openProject()(Code)
Show the open dialog and open the selected project



pluginPanelActivated
public void pluginPanelActivated()(Code)
A tabbar belonging to a plugin has been activated



pluginPanelDeactivated
public void pluginPanelDeactivated()(Code)
The plugin pane has been deactivated



processCommand
public void processCommand(String command, ActionEvent evt, boolean selected)(Code)
Process menu and toolbar commands
Parameters:
  command - the command id
Parameters:
  evt - the original event
Parameters:
  selected - the selected state of the toolbar or menu item or false if no state exists



processCommand
public void processCommand(int command, ActionEvent evt, boolean selected)(Code)
Process menu and toolbar commands
Parameters:
  command - the command id
Parameters:
  evt - the original event
Parameters:
  selected - the selected state of the toolbar or menu item or false if no state exists



processPluginCommand
public void processPluginCommand(int command, AWTEvent evt, boolean selected)(Code)
Process a menu commands for a plugin
Parameters:
  command - the command id
Parameters:
  evt - the original event
Parameters:
  selected - the selected state of the toolbar or menu item or false if no state exists



projectLoaded
public void projectLoaded(XEditorProject project)(Code)
Respond to the project loading by updating the UI components - menus, toolbars etc...
Parameters:
  project -



projectUpdated
public void projectUpdated()(Code)
The project has been updated



registerHelpers
protected void registerHelpers()(Code)



removePlugin
public void removePlugin()(Code)
Remove a plugin and setup its components



removePluginEditor
protected void removePluginEditor()(Code)



removePluginMenu
public boolean removePluginMenu(XEditorPlugin plugin)(Code)
Remove the plugin's menu



removePluginPanel
public boolean removePluginPanel(XEditorPlugin plugin)(Code)



removePluginToolbar
public void removePluginToolbar(XEditorPlugin plugin)(Code)
Remove the plugin toolbar



reparsePageXml
public void reparsePageXml()(Code)
Reparse the page XML if it has changed.



saveProject
protected void saveProject()(Code)
Save the project



setNewComponent
public void setNewComponent(Component c)(Code)



setPendingComponentName
public void setPendingComponentName(String name)(Code)
Set the name of the component selected for addition
Parameters:
  name - the component name



setSelectedComponents
public void setSelectedComponents(Vector selectedComponents)(Code)
Coordinate the response to a component selection
Parameters:
  selectedComponents - the list of selected components



setXml
protected void setXml(int view)(Code)
Update the displayed XML
Parameters:
  view -
  • XEditorMenu.ID_MENU_VIEW_SOURCE to view the page xml
  • XEditorMenu.ID_MENU_VIEW_VALIDATIONS to view the validations xml
  • XEditorMenu.ID_MENU_VIEW_DATA to view the static data xml



setupGuiEditor
protected void setupGuiEditor()(Code)
Setup the RHS of the editor



setupProject
protected void setupProject(String projectPath)(Code)



setupTextEditor
protected void setupTextEditor()(Code)



setupXmlEditor
protected void setupXmlEditor(int type)(Code)
Add another tab for XML display
Parameters:
  type -
  • XEditorMenu.ID_MENU_VIEW_SOURCE to view the page xml
  • XEditorMenu.ID_MENU_VIEW_VALIDATIONS to view the validations xml
  • XEditorMenu.ID_MENU_VIEW_DATA to view the static data xml



showEventHandler
public void showEventHandler(XPageResource page, Component source, String methodName, long mask)(Code)
Show the Java source code at the point of the specified method
Parameters:
  page - the page resource that owns the method
Parameters:
  source - the component that initiates the event
Parameters:
  methodName - the response method name
Parameters:
  mask - the event mask



showMessageArea
public void showMessageArea(boolean forceDisplay)(Code)
Show or hide the message area.
Parameters:
  forceDisplay - true to force disply, false to toggle display on or off



showPageEventHandler
public void showPageEventHandler(XPageResource page, String methodName)(Code)



stateChanged
public void stateChanged(ChangeEvent e)(Code)
The tabbar selection has changed
Parameters:
  e - the change event



styleChanged
public void styleChanged(String name, XStyle style)(Code)



toolbarClicked
public void toolbarClicked(String c)(Code)



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.