Java Doc for ServerComponentUpdate.java in  » Ajax » NextApp-Echo2 » nextapp » echo2 » app » update » 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 » Ajax » NextApp Echo2 » nextapp.echo2.app.update 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   nextapp.echo2.app.update.ServerComponentUpdate

ServerComponentUpdate
public class ServerComponentUpdate implements Serializable(Code)
A description of a server-side update to a single component, i.e., an update which has occurred on the server and must be propagated to the client. Describes the addition and removal of children to the component. Describes modifications to properties of the component. Describes modifications to the LayoutData states of children of the component.



Constructor Summary
public  ServerComponentUpdate(Component parent)
     Creates a new ServerComponentUpdate representing the given parent Component.

Method Summary
public  voidaddChild(Component child)
     Adds a description of an added child to the ServerComponentUpdate.
public  voidappendRemovedDescendants(ServerComponentUpdate update)
     Appends the removed child and descendant components of the given ServerComponentUpdate to this ServerComponentUpdate's list of removed descendants. This method is invoked by the ServerUpdateManager when a component is removed that is an ancestor of a component that has been updated.
public  voidcancelUpdateProperty(String propertyName)
     Cancels an update to a property.
public  Component[]getAddedChildren()
     Returns the child components which have been added to the parent.
public  ComponentgetParent()
     Returns the parent component being updated.
public  Component[]getRemovedChildren()
     Returns the child components which have been removed from the parent.
public  Component[]getRemovedDescendants()
     Returns all descendants of the child components which have been removed from the parent.
public  Component[]getUpdatedLayoutDataChildren()
     Returns the child components whose LayoutData properties have been updated.
public  PropertyUpdategetUpdatedProperty(String name)
     Returns a PropertyUpdate describing an update to the property with the given name.
public  String[]getUpdatedPropertyNames()
     Returns the names of all properties being updated in this update.
public  booleanhasAddedChild(Component component)
     Determines if the specified component has been added as a child in this update.
public  booleanhasAddedChildren()
     Determines if the update is adding any children to the parent component.
public  booleanhasRemovedChild(Component component)
     Determines if the specified child was removed from the parent component.
public  booleanhasRemovedChildren()
     Determines if the update is removing children from the parent component.
public  booleanhasRemovedDescendants()
     Determines if the update is removing children from the parent that have descendants. Having removed descendants implies having removed children.
public  booleanhasUpdatedLayoutDataChildren()
     Determines if the update has child components whose LayoutData states have changed.
public  booleanhasUpdatedProperties()
     Determines if the update is updating properties of the parent component.
public  voidremoveChild(Component child)
     Adds a description of a removed child to the ServerComponentUpdate.
public  voidremoveDescendant(Component descendant)
     Recursive method to add descriptions of descendants which were removed.
public  StringtoString()
     Display debug representation.
public  voidupdateLayoutData(Component child)
     Adds a description of an update to a child component's LayoutData information to the ServerComponentUpdate.
public  voidupdateProperty(String propertyName, Object oldValue, Object newValue)
     Adds a description of an update to a property of the parent component to the ServerComponentUpdate.


Constructor Detail
ServerComponentUpdate
public ServerComponentUpdate(Component parent)(Code)
Creates a new ServerComponentUpdate representing the given parent Component.




Method Detail
addChild
public void addChild(Component child)(Code)
Adds a description of an added child to the ServerComponentUpdate.
Parameters:
  child - the child being added



appendRemovedDescendants
public void appendRemovedDescendants(ServerComponentUpdate update)(Code)
Appends the removed child and descendant components of the given ServerComponentUpdate to this ServerComponentUpdate's list of removed descendants. This method is invoked by the ServerUpdateManager when a component is removed that is an ancestor of a component that has been updated. In such a case, the descendant ServerComponentUpdate is destroyed, and thus its removed descendant components must be stored in the ancestor ServerComponentUpdate.
Parameters:
  update - the ServerComponentUpdate whose removeddescendants are to be appended



cancelUpdateProperty
public void cancelUpdateProperty(String propertyName)(Code)
Cancels an update to a property. A cancellation of a property update is performed when the update manager discovers that the state of a property is already correct on the client.
Parameters:
  propertyName - the property update to cancel



getAddedChildren
public Component[] getAddedChildren()(Code)
Returns the child components which have been added to the parent. the added child components



getParent
public Component getParent()(Code)
Returns the parent component being updated. the parent component



getRemovedChildren
public Component[] getRemovedChildren()(Code)
Returns the child components which have been removed from the parent. These components may or may not have ever been rendered by the container, e.g., if a component was added and removed in a single synchronization it will show up as a removed component even though the container may have never rendered it. the removed child components
See Also:   ServerComponentUpdate.getRemovedDescendants()



getRemovedDescendants
public Component[] getRemovedDescendants()(Code)
Returns all descendants of the child components which have been removed from the parent. This returned array DOES NOT contain the children which were directly removed from the parent component. These components may or may not have ever been rendered by the container, e.g., if a component was added and removed in a single synchronization it will show up as a removed descendant even though the container may have never rendered it. the removed descendant components
See Also:   ServerComponentUpdate.getRemovedChildren()



getUpdatedLayoutDataChildren
public Component[] getUpdatedLayoutDataChildren()(Code)
Returns the child components whose LayoutData properties have been updated. the changed child components



getUpdatedProperty
public PropertyUpdate getUpdatedProperty(String name)(Code)
Returns a PropertyUpdate describing an update to the property with the given name.
Parameters:
  name - the name of the property being updated the PropertyUpdate, or null if none exists
See Also:   ServerComponentUpdate.getUpdatedPropertyNames()
See Also:   



getUpdatedPropertyNames
public String[] getUpdatedPropertyNames()(Code)
Returns the names of all properties being updated in this update. the names of all updated properties
See Also:   ServerComponentUpdate.getUpdatedPropertyNames()
See Also:   



hasAddedChild
public boolean hasAddedChild(Component component)(Code)
Determines if the specified component has been added as a child in this update.
Parameters:
  component - the component to test true if the component was added



hasAddedChildren
public boolean hasAddedChildren()(Code)
Determines if the update is adding any children to the parent component. true if children are being added



hasRemovedChild
public boolean hasRemovedChild(Component component)(Code)
Determines if the specified child was removed from the parent component.
Parameters:
  component - the potentially removed child true if the child was removed



hasRemovedChildren
public boolean hasRemovedChildren()(Code)
Determines if the update is removing children from the parent component. true if children are being removed



hasRemovedDescendants
public boolean hasRemovedDescendants()(Code)
Determines if the update is removing children from the parent that have descendants. Having removed descendants implies having removed children. If none of the children being removed have children, this method will return false. true if descendants are being removed



hasUpdatedLayoutDataChildren
public boolean hasUpdatedLayoutDataChildren()(Code)
Determines if the update has child components whose LayoutData states have changed. true if LayoutData properties are being updated



hasUpdatedProperties
public boolean hasUpdatedProperties()(Code)
Determines if the update is updating properties of the parent component. true if properties are being updated



removeChild
public void removeChild(Component child)(Code)
Adds a description of a removed child to the ServerComponentUpdate.
Parameters:
  child - the child being removed



removeDescendant
public void removeDescendant(Component descendant)(Code)
Recursive method to add descriptions of descendants which were removed.
Parameters:
  descendant - the removed descendant



toString
public String toString()(Code)
Display debug representation.
See Also:   java.lang.Object.toString



updateLayoutData
public void updateLayoutData(Component child)(Code)
Adds a description of an update to a child component's LayoutData information to the ServerComponentUpdate.
Parameters:
  child - the updated child



updateProperty
public void updateProperty(String propertyName, Object oldValue, Object newValue)(Code)
Adds a description of an update to a property of the parent component to the ServerComponentUpdate.
Parameters:
  propertyName - the name of the property
Parameters:
  oldValue - the previous value of the property
Parameters:
  newValue - the current value of the property



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.