Source Code Cross Referenced for XPDLElementChangeInfo.java in  » Workflow-Engines » JaWE » org » enhydra » jawe » 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 » Workflow Engines » JaWE » org.enhydra.jawe 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package org.enhydra.jawe;
02:
03:        import java.util.HashMap;
04:        import java.util.Map;
05:        import java.util.Observer;
06:
07:        import org.enhydra.shark.xpdl.XMLElementChangeInfo;
08:
09:        /**
10:         * Structure representing info for the change of some XPDL Element.
11:         *
12:         * @author Sasa Bojanic
13:         */
14:        public class XPDLElementChangeInfo extends XMLElementChangeInfo {
15:            public static final int SELECTED = 8;
16:            public static final int REFERENCES = 9;
17:            public static final int VALIDATION_ERRORS = 10;
18:            public static final int UNDOABLE_ACTION_STARTED = 13;
19:            public static final int ADJUST_UNDOABLE_ACTION = 14;
20:            public static final int UNDOABLE_ACTION_ENDED = 15;
21:            public static final int UNDO = 16;
22:            public static final int REDO = 17;
23:            public static final int COPY = 18;
24:            public static final int CUT = 19;
25:            public static final int SEARCH_RESULT = 20;
26:
27:            private static Map actionToNameMap = new HashMap();
28:            static {
29:                actionToNameMap
30:                        .put(new Integer(XPDLElementChangeInfo.SELECTED),
31:                                "SELECTED");
32:                actionToNameMap.put(new Integer(
33:                        XPDLElementChangeInfo.REFERENCES), "REFERENCES");
34:                actionToNameMap.put(new Integer(
35:                        XPDLElementChangeInfo.VALIDATION_ERRORS),
36:                        "VALIDATION_ERRORS");
37:                actionToNameMap.put(new Integer(
38:                        XPDLElementChangeInfo.UNDOABLE_ACTION_STARTED),
39:                        "UNDOABLE_ACTION_STARTED");
40:                actionToNameMap.put(new Integer(
41:                        XPDLElementChangeInfo.ADJUST_UNDOABLE_ACTION),
42:                        "ADJUST_UNDOABLE_ACTION");
43:                actionToNameMap.put(new Integer(
44:                        XPDLElementChangeInfo.UNDOABLE_ACTION_ENDED),
45:                        "UNDOABLE_ACTION_ENDED");
46:                actionToNameMap.put(new Integer(XPDLElementChangeInfo.UNDO),
47:                        "UNDO");
48:                actionToNameMap.put(new Integer(XPDLElementChangeInfo.REDO),
49:                        "REDO");
50:                actionToNameMap.put(new Integer(XPDLElementChangeInfo.COPY),
51:                        "COPY");
52:                actionToNameMap.put(new Integer(XPDLElementChangeInfo.CUT),
53:                        "CUT");
54:            }
55:
56:            protected Observer source;
57:
58:            public XPDLElementChangeInfo() {
59:            }
60:
61:            public XPDLElementChangeInfo(Observer source,
62:                    XMLElementChangeInfo info) {
63:                this .setAction(info.getAction());
64:                this .setChangedElement(info.getChangedElement());
65:                this .setChangedSubElements(info.getChangedSubElements());
66:                this .setNewValue(info.getNewValue());
67:                this .setOldValue(info.getOldValue());
68:                this .setSource(source);
69:            }
70:
71:            public void setSource(Observer source) {
72:                this .source = source;
73:            }
74:
75:            public Observer getSource() {
76:                return source;
77:            }
78:
79:            public String getActionName() {
80:                String ret = super .getActionName();
81:                if (ret == null) {
82:                    ret = (String) actionToNameMap.get(new Integer(action));
83:                }
84:                return ret;
85:            }
86:
87:            public String toString() {
88:
89:                String ret = "Source="
90:                        + (source != null ? source.getClass().getName() : "")
91:                        + ", " + " oldVal = " + getOldValue() + ", "
92:                        + " newVal = " + getNewValue() + ", "
93:                        + super.toString();
94:                return ret;
95:            }
96:
97:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.