Exemplo n.º 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"));
		}
Exemplo n.º 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"));
        }
Exemplo n.º 3
0
        public void IsTypeDescriptorClosed()
        {
            Binding b = new Binding();
            ScriptTypeDescriptor desc = ((IScriptObject)b).GetTypeDescriptor();

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

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

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

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

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
Exemplo n.º 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));
		}
Exemplo n.º 9
0
        public void IsTypeDescriptorClosed()
        {
            ActionPoker          a    = new ActionPoker();
            ScriptTypeDescriptor desc = ((IScriptObject)a).GetTypeDescriptor();

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

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

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

            desc.AddEvent(new ScriptEventDescriptor("testEvent", true));
        }
Exemplo n.º 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));
        }
Exemplo n.º 14
0
        public void AddAfterClose()
        {
            ActionPoker          a  = new ActionPoker();
            ScriptTypeDescriptor td = new ScriptTypeDescriptor(a);

            td.Close();

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