示例#1
0
		protected override void InitializeTypeDescriptor (ScriptTypeDescriptor typeDescriptor)
		{
			base.InitializeTypeDescriptor (typeDescriptor);

			/* XXX should make this use Hover/Unhover, but Owner == null is causing exceptions */
			typeDescriptor.AddEvent (new ScriptEventDescriptor ("hover", true));
			typeDescriptor.AddEvent (new ScriptEventDescriptor ("unhover", true));

			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("hoverElement", ScriptType.Object, false, ""));
			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("unhoverDelay", ScriptType.Number, false, "UnhoverDelay"));
		}
示例#2
0
        protected override void InitializeTypeDescriptor(ScriptTypeDescriptor typeDescriptor)
        {
            base.InitializeTypeDescriptor(typeDescriptor);

            /* XXX should make this use Hover/Unhover, but Owner == null is causing exceptions */
            typeDescriptor.AddEvent(new ScriptEventDescriptor("hover", true));
            typeDescriptor.AddEvent(new ScriptEventDescriptor("unhover", true));

            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("hoverElement", ScriptType.Object, false, ""));
            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("unhoverDelay", ScriptType.Number, false, "UnhoverDelay"));
        }
示例#3
0
        public void IsTypeDescriptorClosed()
        {
            Binding b = new Binding();
            ScriptTypeDescriptor desc = ((IScriptObject)b).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#4
0
        public void IsTypeDescriptorClosed()
        {
            HoverBehavior        a    = new HoverBehavior();
            ScriptTypeDescriptor desc = ((IScriptObject)a).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#5
0
        public void IsTypeDescriptorClosed()
        {
            DraggableListItem    a    = new DraggableListItem();
            ScriptTypeDescriptor desc = ((IScriptObject)a).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#6
0
        public void IsTypeDescriptorClosed()
        {
            ListView             l    = new ListView();
            ScriptTypeDescriptor desc = ((IScriptObject)l).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#7
0
        public void IsTypeDescriptorClosed()
        {
            TextBox t = new TextBox();
            ScriptTypeDescriptor desc = ((IScriptObject)t).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#8
0
		protected override void InitializeTypeDescriptor (ScriptTypeDescriptor typeDescriptor)
		{
			base.InitializeTypeDescriptor (typeDescriptor);

			/* XXX should make this use Click, but Owner == null is causing exceptions */
			typeDescriptor.AddEvent (new ScriptEventDescriptor ("click", true));
		}
示例#9
0
        public void IsTypeDescriptorClosed()
        {
            ActionPoker          a    = new ActionPoker();
            ScriptTypeDescriptor desc = ((IScriptObject)a).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#10
0
        public void IsTypeDescriptorClosed()
        {
            SetPropertyAction    a    = new SetPropertyAction();
            ScriptTypeDescriptor desc = ((IScriptObject)a).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#11
0
        public void IsTypeDescriptorClosed()
        {
            InvokeMethodAction   a    = new InvokeMethodAction();
            ScriptTypeDescriptor desc = ((IScriptObject)a).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#12
0
        public void IsTypeDescriptorClosed()
        {
            DataSourceDropTarget a    = new DataSourceDropTarget();
            ScriptTypeDescriptor desc = ((IScriptObject)a).GetTypeDescriptor();

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
示例#13
0
        protected override void InitializeTypeDescriptor(ScriptTypeDescriptor typeDescriptor)
        {
            base.InitializeTypeDescriptor(typeDescriptor);

            /* XXX should make this use Click, but Owner == null is causing exceptions */
            typeDescriptor.AddEvent(new ScriptEventDescriptor("click", true));
        }
示例#14
0
        public void AddAfterClose()
        {
            ActionPoker          a  = new ActionPoker();
            ScriptTypeDescriptor td = new ScriptTypeDescriptor(a);

            td.Close();

            td.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }