~jan-meskens/uiml.net/uiml.net-jan-tp

« back to all changes in this revision

Viewing changes to Uiml/Executing/Condition.cs

  • Committer: Jan
  • Date: 2007-09-10 16:22:56 UTC
  • Revision ID: jan@jan-desktop-20070910162256-22xzqwow1018aimp
First checkin of the template parameterization

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        using Uiml.Rendering;
33
33
 
34
34
        
35
 
        public class Condition : IExecutable, IUimlElement
 
35
        public class Condition : UimlElement, IExecutable
36
36
        {
37
37
                private string m_conditionType;
38
38
                private System.Object m_conditionObject;
54
54
                //for events:
55
55
                public delegate System.Object EventNotifier();
56
56
 
57
 
                public void Process(XmlNode n)
 
57
                public override void Process(XmlNode n)
58
58
                {
59
59
                        if(n.Name == CONDITION)
60
60
                        {
80
80
                        }
81
81
                }
82
82
 
 
83
                public Part PartTree{
 
84
                        get{
 
85
                                return m_partTree;
 
86
                        }
 
87
                        set{
 
88
                                m_partTree = value;
 
89
                                if(m_conditionObject is Op)
 
90
                                        ((Op)m_conditionObject).PartTree = value;
 
91
                                else if(m_conditionObject is Equal)
 
92
                                        ((Equal)m_conditionObject).PartTree = value;
 
93
                                
 
94
                        }
 
95
                }
 
96
 
83
97
 
84
98
                public System.Object Execute()
85
99
                {
152
166
                                ((Equal)m_conditionObject).GetEvents(l);
153
167
                }
154
168
 
155
 
                public ArrayList Children
 
169
                public override ArrayList Children
156
170
                {
157
171
                        get { return null; }
158
172
                }
159
173
 
 
174
                public override String Text{
 
175
                        get{
 
176
                                string tussentext = "";
 
177
                                if(m_conditionObject != null)
 
178
                                        tussentext = ((IUimlElement)m_conditionObject).Text;
 
179
                                return "<"+CONDITION+">\n"+tussentext+"\n</"+CONDITION+">";
 
180
                        }
 
181
                }
 
182
 
160
183
        public System.Object ConditionObject 
161
184
        {
162
185
            get { return m_conditionObject; }