Java Doc for DesignEvent.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » modules » vmd » api » model » 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 » vmd.analyzer » org.netbeans.modules.vmd.api.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.vmd.api.model.DesignEvent

DesignEvent
final public class DesignEvent (Code)
The class represents a document change event. There is an only one event type for document changes. The class tracks all types of changes. Types of changes are: Any change of a property value, components hierarchy, or selection.

The event also contains all values of property values. These old values are one that were store at the begining of the transaction. When a property is overriden many times, only the newest value is stored in the document and the oldest value is stored in the event.

When a component hierarchy is changed, the event remembers which components were affected during the transaction. The newest hierarchy is stored in the document. There is no way how to resolve state before the transaction. Also when a component is removed from and then added back to structure, so hierarchy is the same as before, an event is fired anyway and the component and its parent are marked as hierarchy-modified.

When a component is created, the event remembers all those components that were created during the transaction.
author:
   David Kaspar




Constructor Summary
 DesignEvent(long eventID, Set<DesignComponent> fullyComponents, Set<DesignComponent> partlyComponents, Set<DesignComponent> fullyHierarchies, Set<DesignComponent> partlyHierarchies, Set<DesignComponent> descriptorChangedComponents, Set<DesignComponent> createdComponents, HashMap<DesignComponent, HashMap<String, PropertyValue>> oldPropertyValues, boolean selectionChanged)
    

Method Summary
public  Set<DesignComponent>getCreatedComponents()
     Returns a set of all components that were created during a transaction.
public  Set<DesignComponent>getDescriptorChangedComponents()
     Returns a set of all components whose component descriptor is changed during a transaction because of component-descriptor-registry update.
public  longgetEventID()
     Returns an event id.
public  Set<DesignComponent>getFullyAffectedComponents()
     Returns a set of all components that have at least one property changed during a transaction.
public  Set<DesignComponent>getFullyAffectedHierarchies()
     Returns a set of all components that have changed their placement in components-hierarchy during a transaction.

An affected component is the one that is added to or removed from a parent component.

public  PropertyValuegetOldPropertyValue(DesignComponent component, String propertyName)
     Returns an old value of a property of a component.
public  Set<DesignComponent>getPartlyAffectedComponents()
     Returns a set of all components where they or one of their sub-components have at least one property changed during a transaction.
public  Set<DesignComponent>getPartlyAffectedHierarchies()
     Returns a set of all components where they or one of their sub-components have changed their placement in components-hierarchy during a transaction.

An affected component is the one that is added to or removed from a parent component.

public  booleanisComponentPropertyChanged(DesignComponent component, String propertyName)
     Returns whether a property of a component is changed.
public  booleanisSelectionChanged()
     Returns whether a selection is changed.
public  booleanisStructureChanged()
     Returns whether a document structure is changed.


Constructor Detail
DesignEvent
DesignEvent(long eventID, Set<DesignComponent> fullyComponents, Set<DesignComponent> partlyComponents, Set<DesignComponent> fullyHierarchies, Set<DesignComponent> partlyHierarchies, Set<DesignComponent> descriptorChangedComponents, Set<DesignComponent> createdComponents, HashMap<DesignComponent, HashMap<String, PropertyValue>> oldPropertyValues, boolean selectionChanged)(Code)




Method Detail
getCreatedComponents
public Set<DesignComponent> getCreatedComponents()(Code)
Returns a set of all components that were created during a transaction. the set of created components



getDescriptorChangedComponents
public Set<DesignComponent> getDescriptorChangedComponents()(Code)
Returns a set of all components whose component descriptor is changed during a transaction because of component-descriptor-registry update. the set of components with changed descriptor



getEventID
public long getEventID()(Code)
Returns an event id. The id is increasing non-negative number. the event id



getFullyAffectedComponents
public Set<DesignComponent> getFullyAffectedComponents()(Code)
Returns a set of all components that have at least one property changed during a transaction. the set of fully property-affected components



getFullyAffectedHierarchies
public Set<DesignComponent> getFullyAffectedHierarchies()(Code)
Returns a set of all components that have changed their placement in components-hierarchy during a transaction.

An affected component is the one that is added to or removed from a parent component. The parent component is an affected component too. the set of fully hierarchy-affected components




getOldPropertyValue
public PropertyValue getOldPropertyValue(DesignComponent component, String propertyName)(Code)
Returns an old value of a property of a component.
Parameters:
  component - the component
Parameters:
  propertyName - the property name the old value, null if a property is not changed



getPartlyAffectedComponents
public Set<DesignComponent> getPartlyAffectedComponents()(Code)
Returns a set of all components where they or one of their sub-components have at least one property changed during a transaction. the set of partly property-affected components



getPartlyAffectedHierarchies
public Set<DesignComponent> getPartlyAffectedHierarchies()(Code)
Returns a set of all components where they or one of their sub-components have changed their placement in components-hierarchy during a transaction.

An affected component is the one that is added to or removed from a parent component. The parent component is an affected component too. the set of partly hierarchy-affected components




isComponentPropertyChanged
public boolean isComponentPropertyChanged(DesignComponent component, String propertyName)(Code)
Returns whether a property of a component is changed.
Parameters:
  component - the component
Parameters:
  propertyName - the property name true, if a property is changed



isSelectionChanged
public boolean isSelectionChanged()(Code)
Returns whether a selection is changed. The actual selection is store in a document. true if changed.



isStructureChanged
public boolean isStructureChanged()(Code)
Returns whether a document structure is changed. It means a property, hierarchy, or a descriptor is changed. true if a structure is changed



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.