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

XPageHolder
public class XPageHolder extends JPanel implements XPageDisplay,ActionListener,ItemListener,KeyListener,MouseListener,MouseMotionListener,SizerListener,ProjectListener,MenuListener,ComponentListener(Code)

Description:

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

$Revision: 1.20 $

Inner Class :class NavigateAction extends AbstractAction

Field Summary
protected  XPageResourcecurrentPage
    
protected  JPanelpageContainer
    

Constructor Summary
public  XPageHolder(XComponentTree tree)
    

Method Summary
public  voidactionPerformed(ActionEvent e)
    
public  voidaddComponentSelectionListener(ComponentSelectListener listener)
    
public  voidaddListeners(Container page, XEditorEventHandler eventHandler)
    
public  ComponentaddNewComponent(Component comp, Point pt)
    
public  voidaddTarget(String name, Object constraint, int preferredWidth, int preferredHeight)
    
public  voidaddTarget(XTarget frame, Object constraint)
    
public  voidalignSelectedComponents(int command)
    
public  voidclearSelectedComponents()
    
public  voidcomponentHidden(ComponentEvent e)
    
public  voidcomponentMoved(ComponentEvent e)
    
public  voidcomponentResized(ComponentEvent e)
    
public  voidcomponentShown(ComponentEvent e)
    
public  voidcomponentSized()
    
public  voidcopy()
     Add all of the selected components to the componentClipboard Vector.
public  voidcut()
     Call copy which adds all of the selected components to the componentClipboard Vector.
public  voiddeleteSelection()
    
public  XPagedisplayPage(XPage page)
    
public  XPagedisplayPage(XPage page, String target)
    
public  XPageResourcefindPageResource(String screenName)
    
protected  ContainerfindTarget(Container container, String target)
    
public  ContainerfindTarget(String target)
    
public  voidfocusGained(FocusEvent e)
    
public  voidfocusLost(FocusEvent e)
    
public  XPageResourcegetContentPage()
    
public  voidgetContextMenu(JPopupMenu popupMenu, AWTEvent evt)
    
public  XPageResourcegetCurrentPage()
    
public  XGuidePanegetGuidePane()
    
public  intgetNumTargets()
    
public  XPageResourcegetPageResource(Component comp)
    
 VectorgetSelectedComponents()
    
public  ContainergetTarget(int idx)
    
public  booleanhasFrames()
    
public  booleanhasGuides()
    
public  booleanhasPageBorders()
    
public  booleanhasPasteContent()
    
public  booleanisAddingComponent()
    
public  voiditemStateChanged(ItemEvent e)
    
public  voidkeyPressed(KeyEvent e)
    
public  voidkeyReleased(KeyEvent e)
    
public  voidkeyTyped(KeyEvent e)
    
public  voidloadFrames(boolean showFrames)
    
public  XPageResourceloadPage(String pageName, String target, int pageWidth, int pageHeight)
    
public  voidmenuCanceled(MenuEvent e)
    
public  voidmenuDeselected(MenuEvent e)
    
public  voidmenuSelected(MenuEvent e)
    
public  voidmouseClicked(MouseEvent evt)
    
public  voidmouseDragged(MouseEvent evt)
    
public  voidmouseEntered(MouseEvent evt)
    
public  voidmouseExited(MouseEvent evt)
    
public  voidmouseMoved(MouseEvent evt)
    
public  voidmousePressed(MouseEvent evt)
    
public  voidmouseReleased(MouseEvent evt)
    
public  voidpaste()
     first check that the componentClipboard is not null and then effectively clone each component found in it.
public  voidprojectLoaded(XEditorProject project)
    
public  voidprojectUpdated()
    
protected  voidremoveEventListeners(XPageResource pageResource, XEditorEventHandler handler, Container cont)
     Adds the event handlers.
public  voidremoveListeners(Container page, XEventHandler eventHandler)
    
 voidresetListeners()
    
public  voidresetStyles()
    
public  voidselectComponent(Component selection, boolean init)
    
public  voidsetEditorComponentListener(EditorComponentListener listener)
    
public  voidsetEventHandlerEditor(EventHandlerEditor ehe)
    
protected  voidsetEventListeners(XPage page, XPageResource pageResource, Container cont)
     Adds the event handlers.
 voidsetLaf(Container cont, ButtonUI ui)
    
public  voidsetPage(XPage page)
    
public  voidshowGuides(boolean showGuides)
    
public  voidshowLaf(boolean showSystemLaf)
     Use the system look and feel.
public  voidshowPages(boolean showPages)
    
 voidsizeGuidePane()
    
public  voidtextValueChanged(TextEvent e)
    
protected  voidtogglePreview()
     Toggle the preview mode.
public  voidtoolbarClicked(String comp)
    

Field Detail
currentPage
protected XPageResource currentPage(Code)



pageContainer
protected JPanel pageContainer(Code)




Constructor Detail
XPageHolder
public XPageHolder(XComponentTree tree)(Code)




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Respond to events such as menu selections
Parameters:
  e -



addComponentSelectionListener
public void addComponentSelectionListener(ComponentSelectListener listener)(Code)



addListeners
public void addListeners(Container page, XEditorEventHandler eventHandler)(Code)



addNewComponent
public Component addNewComponent(Component comp, Point pt)(Code)



addTarget
public void addTarget(String name, Object constraint, int preferredWidth, int preferredHeight)(Code)
Add a new frame to a frameset
Parameters:
  name - the frame name
Parameters:
  constraint - the BorderlayoutConstraint
Parameters:
  preferredWidth - the preferred width
Parameters:
  preferredHeight - the preferred height



addTarget
public void addTarget(XTarget frame, Object constraint)(Code)
Adds a frame to the frameset
Parameters:
  frame - the new traget frame



alignSelectedComponents
public void alignSelectedComponents(int command)(Code)
Change the component alignment
Parameters:
  command - the menu id used to invoke the option



clearSelectedComponents
public void clearSelectedComponents()(Code)



componentHidden
public void componentHidden(ComponentEvent e)(Code)



componentMoved
public void componentMoved(ComponentEvent e)(Code)



componentResized
public void componentResized(ComponentEvent e)(Code)



componentShown
public void componentShown(ComponentEvent e)(Code)



componentSized
public void componentSized()(Code)
Update the state to reflect changes to the components



copy
public void copy()(Code)
Add all of the selected components to the componentClipboard Vector.



cut
public void cut()(Code)
Call copy which adds all of the selected components to the componentClipboard Vector. Then remove the selected components to the pageHolder.



deleteSelection
public void deleteSelection()(Code)
Delete the selected items



displayPage
public XPage displayPage(XPage page)(Code)
Called when a page has been added with the XPageManager
Parameters:
  page - The XPage which has been loaded.



displayPage
public XPage displayPage(XPage page, String target)(Code)
Called when a page has been added with the XPageManager
Parameters:
  page - The XPage which has been loaded.



findPageResource
public XPageResource findPageResource(String screenName)(Code)
Finds the target for a page
Parameters:
  screenName - the screen to locate the container holding the named page



findTarget
protected Container findTarget(Container container, String target)(Code)
Finds the target for a page display request
Parameters:
  container - the root container
Parameters:
  target - the target area the container to be updated



findTarget
public Container findTarget(String target)(Code)
Finds the target for a page display request
Parameters:
  target - the target area the container to be updated



focusGained
public void focusGained(FocusEvent e)(Code)



focusLost
public void focusLost(FocusEvent e)(Code)



getContentPage
public XPageResource getContentPage()(Code)
Get the name of the page in the content panel the content page name



getContextMenu
public void getContextMenu(JPopupMenu popupMenu, AWTEvent evt)(Code)



getCurrentPage
public XPageResource getCurrentPage()(Code)
Get the current page the page instance



getGuidePane
public XGuidePane getGuidePane()(Code)
Get the guide pane



getNumTargets
public int getNumTargets()(Code)
Get the number of targets in the container



getPageResource
public XPageResource getPageResource(Component comp)(Code)



getSelectedComponents
Vector getSelectedComponents()(Code)



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



hasFrames
public boolean hasFrames()(Code)



hasGuides
public boolean hasGuides()(Code)



hasPageBorders
public boolean hasPageBorders()(Code)



hasPasteContent
public boolean hasPasteContent()(Code)
Check that there are items to paste true if there are items to paste



isAddingComponent
public boolean isAddingComponent()(Code)



itemStateChanged
public void itemStateChanged(ItemEvent e)(Code)



keyPressed
public void keyPressed(KeyEvent e)(Code)



keyReleased
public void keyReleased(KeyEvent e)(Code)



keyTyped
public void keyTyped(KeyEvent e)(Code)



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



loadPage
public XPageResource loadPage(String pageName, String target, int pageWidth, int pageHeight)(Code)
Load a page into the named area
Parameters:
  pageName - the page name
Parameters:
  target - the name of the target area
Parameters:
  pageWidth - the page width
Parameters:
  pageHeight - the page height



menuCanceled
public void menuCanceled(MenuEvent e)(Code)



menuDeselected
public void menuDeselected(MenuEvent e)(Code)



menuSelected
public void menuSelected(MenuEvent e)(Code)



mouseClicked
public void mouseClicked(MouseEvent evt)(Code)



mouseDragged
public void mouseDragged(MouseEvent evt)(Code)



mouseEntered
public void mouseEntered(MouseEvent evt)(Code)



mouseExited
public void mouseExited(MouseEvent evt)(Code)



mouseMoved
public void mouseMoved(MouseEvent evt)(Code)



mousePressed
public void mousePressed(MouseEvent evt)(Code)



mouseReleased
public void mouseReleased(MouseEvent evt)(Code)



paste
public void paste()(Code)
first check that the componentClipboard is not null and then effectively clone each component found in it. This is done by creating the basic component using the styleFactory. This creates the new component with the basic properties after which the component helper is called to set component specific properties. Add the keyListener and mouseListener for selecting and moving the new component.



projectLoaded
public void projectLoaded(XEditorProject project)(Code)



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



removeEventListeners
protected void removeEventListeners(XPageResource pageResource, XEditorEventHandler handler, Container cont)(Code)
Adds the event handlers. Events are specified in the XML as having 'type' (e.g. MouseHandler, ActionHandler etc...), 'name' (the method name to be invoked) and 'target' (the name of the component to which the handler is attached) attributes
Parameters:
  page - The page that contains the response methods
Parameters:
  pageResource - the object holding the event names



removeListeners
public void removeListeners(Container page, XEventHandler eventHandler)(Code)



resetListeners
void resetListeners()(Code)
Reset the page listeners after a build



resetStyles
public void resetStyles()(Code)



selectComponent
public void selectComponent(Component selection, boolean init)(Code)



setEditorComponentListener
public void setEditorComponentListener(EditorComponentListener listener)(Code)



setEventHandlerEditor
public void setEventHandlerEditor(EventHandlerEditor ehe)(Code)



setEventListeners
protected void setEventListeners(XPage page, XPageResource pageResource, Container cont)(Code)
Adds the event handlers. Events are specified in the XML as having 'type' (e.g. MouseHandler, ActionHandler etc...), 'name' (the method name to be invoked) and 'target' (the name of the component to which the handler is attached) attributes
Parameters:
  page - The page that contains the response methods
Parameters:
  pageResource - the object holding the event names



setLaf
void setLaf(Container cont, ButtonUI ui)(Code)



setPage
public void setPage(XPage page)(Code)



showGuides
public void showGuides(boolean showGuides)(Code)



showLaf
public void showLaf(boolean showSystemLaf)(Code)
Use the system look and feel.
Parameters:
  showSystemLaf - true to use the system look and feel, otherwise use the Java look and feel



showPages
public void showPages(boolean showPages)(Code)



sizeGuidePane
void sizeGuidePane()(Code)
Change the size of the guide pane to match that of this window



textValueChanged
public void textValueChanged(TextEvent e)(Code)



togglePreview
protected void togglePreview()(Code)
Toggle the preview mode. In preview mode the application can be executed whereas in Edit mode the application can be modified.



toolbarClicked
public void toolbarClicked(String comp)(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.