Java Doc for DomSynchronizer.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » designer » jsf » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.designer.jsf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.designer.jsf.DomSynchronizer

DomSynchronizer
class DomSynchronizer implements Runnable,org.w3c.dom.events.EventListener,FacesDndSupport.UpdateSuspender(Code)
XXX Moved from designer.

This class is responsible for updating the HTML DOM when changes in the master JSP DOM, or associated properties in Java files or JavaScript event occur.


author:
   Tor Norbye



Constructor Summary
public  DomSynchronizer(JsfForm jsfForm)
    

Method Summary
public  voidbeanChanged(DesignBean designBean)
    
public  voidbeanContextActivated(DesignBean designBean)
    
public  voidbeanContextDeactivated(DesignBean designBean)
    
public  voidbeanCreated(DesignBean designBean)
    
public  voidbeanDeleted(DesignBean designBean)
    
public  voidbeanMoved(DesignBean designBean, DesignBean oldParent, Position pos)
    
public  voidcontextActivated(DesignContext context)
    
public  voidcontextChanged(DesignContext context)
    
public  voidcontextDeactivated(DesignContext context)
    
public  DocumentFragmentcreateSourceFragment(MarkupDesignBean bean)
     Given a bean in the DOM, duplicate its associated node tree and return this in a new DocumentFragment.
public  voideventChanged(DesignEvent event)
    
public  DesignBeangetCommonAncestor(DesignBean a, DesignBean b)
     Given two DesignBeans known to not be different and known to not be ancestors or descendants of each other, return a common ancestor DesignBean parent to both beans.
public  voidhandleEvent(org.w3c.dom.events.Event e)
    
public  voidinstanceNameChanged(DesignBean designBean, String oldInstanceName)
    
public  booleanisBelow(DesignBean child, DesignBean parent)
     Check whether the given child is below the given parent.
public  booleanisUpdatePending()
    
public  voidpropertyChanged(DesignProperty prop, Object oldValue)
    
public  voidrequestChange(MarkupDesignBean bean)
    

Plan to change the given bean.

public  voidrequestDelete(MarkupDesignBean bean)
    

Plan to remove the given bean.

public  voidrequestInsert(MarkupDesignBean bean)
    

Plan to insert the given bean.

public  voidrequestRefresh()
     Schedule a request to refresh the whole HTML DOM - this needs to be done after a synch() for example.
public  voidrequestTextUpdate(MarkupDesignBean bean)
    

The given bean has either had text inserted as a child, or has had its existing text changed.

public  voidrun()
    
public  voidsetSuspended(MarkupDesignBean markupDesignBean, boolean suspend)
     Impl UpdateSuspender.
public  voidsetUpdatesSuspended(MarkupDesignBean bean, boolean suspend)
    

Add the ability to turn off updates for a while.

public  voidunregisterDomListeners()
    
public  voidupdateDomListeners()
     The underlying DOM which manages the document content has changed.


Constructor Detail
DomSynchronizer
public DomSynchronizer(JsfForm jsfForm)(Code)
Create a new DomSynchronizer for the given webform




Method Detail
beanChanged
public void beanChanged(DesignBean designBean)(Code)



beanContextActivated
public void beanContextActivated(DesignBean designBean)(Code)



beanContextDeactivated
public void beanContextDeactivated(DesignBean designBean)(Code)



beanCreated
public void beanCreated(DesignBean designBean)(Code)



beanDeleted
public void beanDeleted(DesignBean designBean)(Code)



beanMoved
public void beanMoved(DesignBean designBean, DesignBean oldParent, Position pos)(Code)



contextActivated
public void contextActivated(DesignContext context)(Code)



contextChanged
public void contextChanged(DesignContext context)(Code)



contextDeactivated
public void contextDeactivated(DesignContext context)(Code)



createSourceFragment
public DocumentFragment createSourceFragment(MarkupDesignBean bean)(Code)
Given a bean in the DOM, duplicate its associated node tree and return this in a new DocumentFragment. Additionally, the returned fragment will be marked as the source nodes for the render fragment.



eventChanged
public void eventChanged(DesignEvent event)(Code)



getCommonAncestor
public DesignBean getCommonAncestor(DesignBean a, DesignBean b)(Code)
Given two DesignBeans known to not be different and known to not be ancestors or descendants of each other, return a common ancestor DesignBean parent to both beans.
Parameters:
  a - A DesignBean to locate a common ancestor with b for
Parameters:
  b - A DesignBean to locate a common ancestor with a for A common ancestor of a and b



handleEvent
public void handleEvent(org.w3c.dom.events.Event e)(Code)



instanceNameChanged
public void instanceNameChanged(DesignBean designBean, String oldInstanceName)(Code)



isBelow
public boolean isBelow(DesignBean child, DesignBean parent)(Code)
Check whether the given child is below the given parent.
Parameters:
  child - The assumed child
Parameters:
  parent - The assumed parent true iff child is the same as parent or a descendant of the parent



isUpdatePending
public boolean isUpdatePending()(Code)
Return true iff any type of change is pending



propertyChanged
public void propertyChanged(DesignProperty prop, Object oldValue)(Code)



requestChange
public void requestChange(MarkupDesignBean bean)(Code)

Plan to change the given bean. This schedules a request to change this bean, unless one is already pending; if it is, and the pending request includes the given bean position do nothing, if it does not but this request would cover the pending one, change the request, and if they are independent, leave both requests in place.

NOTE: This method must be run on the event dispatch thread!




requestDelete
public void requestDelete(MarkupDesignBean bean)(Code)

Plan to remove the given bean. This schedules a request to remove this bean.

NOTE: This method must be run on the event dispatch thread!




requestInsert
public void requestInsert(MarkupDesignBean bean)(Code)

Plan to insert the given bean. This schedules a request to insert this bean, unless this needs to be coalesced with an existing pending event.

NOTE: This method must be run on the event dispatch thread!




requestRefresh
public void requestRefresh()(Code)
Schedule a request to refresh the whole HTML DOM - this needs to be done after a synch() for example. This will coalesce existing events if necessary.



requestTextUpdate
public void requestTextUpdate(MarkupDesignBean bean)(Code)

The given bean has either had text inserted as a child, or has had its existing text changed. Either way the text needs to be reflown. This should be called when we listen for the JSP DOM and see a change in nodes of the types Node.TEXT_NODE, Node.CDATA_SECTION_NODE or Node.ENTITY_REFERENCE_NODE.


Parameters:
  bean - The bean whose text child has been modified



run
public void run()(Code)
Process pending changes



setSuspended
public void setSuspended(MarkupDesignBean markupDesignBean, boolean suspend)(Code)
Impl UpdateSuspender.



setUpdatesSuspended
public void setUpdatesSuspended(MarkupDesignBean bean, boolean suspend)(Code)

Add the ability to turn off updates for a while. When the suspend parameter is true, suspend all updates to the DOM until the method is called again turning off the suspend.

NOTE:: While updates are suspended, modifying any non-markup beans will NOT cause a global refresh (which is usually the case since we don't know how a non-markup bean will markup beans since there's no association map). When updates are suspended we're assuming that any non-markup beans we are notified of are associated with the markup bean whose updates are suspended.

NOTE:: Calls to the batch facility CANNOT be nested!




unregisterDomListeners
public void unregisterDomListeners()(Code)



updateDomListeners
public void updateDomListeners()(Code)
The underlying DOM which manages the document content has changed. This might for example happen if the document source is edited and reparsed.



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.