Пример #1
0
 public IConnectable GetListItemEventRealization(ProviderEventType eventType,
                                                 ListItemProvider prov)
 {
     if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
     {
         return(new PartListItemAutomationHasKeyboardFocusPropertyEvent(
                    prov, this));
     }
     return(null);
 }
Пример #2
0
 public override IConnectable GetListItemEventRealization(ProviderEventType eventType,
                                                          ListItemProvider prov)
 {
     if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty)
     {
         return(new ListItemAutomationIsOffscreenPropertyEvent(prov));
     }
     else
     {
         return(base.GetListItemEventRealization(eventType, prov));
     }
     //FIXME: Return AutomationIsKeyboardFocusablePropertyEvent
 }
Пример #3
0
        public void SetEvent(ProviderEventType type, IConnectable strategy)
        {
            IConnectable value;

            if (events.TryGetValue(type, out value) == true)
            {
                value.Disconnect();
                events.Remove(type);
            }

            if (strategy != null)
            {
                events [type] = strategy;
                strategy.Connect();
            }
        }
Пример #4
0
 public IConnectable GetListItemEventRealization(ProviderEventType eventType,
                                                 ListItemProvider provider)
 {
     if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
     {
         return(new DataItemAutomationHasKeyboardFocusPropertyEvent(provider));
     }
     else if (eventType == ProviderEventType.AutomationFocusChangedEvent)
     {
         return(new DataItemAutomationFocusChangedEvent(provider));
     }
     else if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty)
     {
         return(new DataItemAutomationIsOffscreenPropertyEvent(provider));
     }
     else
     {
         return(null);
     }
 }
Пример #5
0
 public virtual IConnectable GetListItemEventRealization(ProviderEventType eventType,
                                                         ListItemProvider prov)
 {
     return(null);
 }
Пример #6
0
		public IConnectable GetListItemEventRealization (ProviderEventType eventType, 
		                                                 ListItemProvider prov)
		{
			if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
				return new ListItemAutomationHasKeyboardFocusPropertyEvent (prov);
			else
				return null;
		}
Пример #7
0
		public void SetEvent (ProviderEventType type, IConnectable strategy)
		{
			IConnectable value;
			
			if (events.TryGetValue (type, out value) == true) {			
				value.Disconnect ();
				events.Remove (type);
			}

			if (strategy != null) {
				events [type] = strategy;
				strategy.Connect ();
			}
		}
Пример #8
0
		public virtual IConnectable GetListItemEventRealization (ProviderEventType eventType, 
		                                                         ListItemProvider prov)
		{
			return null;
		}
Пример #9
0
		public IConnectable GetListItemEventRealization (ProviderEventType eventType, 
		                                                 ListItemProvider provider)
		{
			if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
				return new DataItemAutomationHasKeyboardFocusPropertyEvent (provider);
			else if (eventType == ProviderEventType.AutomationFocusChangedEvent)
				return new DataItemAutomationFocusChangedEvent (provider);
			else if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty)
				return new DataItemAutomationIsOffscreenPropertyEvent (provider);
			else
				return null;
		}
Пример #10
0
		public override IConnectable GetListItemEventRealization (ProviderEventType eventType, 
		                                                          ListItemProvider provider)
		{
			if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
			    return new ListItemAutomationHasKeyboardFocusPropertyEvent (provider);
			else if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty)
			    return new ListItemAutomationIsOffscreenPropertyEvent (provider);
			// FIXME: ProviderEventType.AutomationElementBoundingRectangleProperty: 
			// When setting/unsetting image
			else
				return base.GetListItemEventRealization (eventType, provider);
		}
Пример #11
0
		public override IConnectable GetListItemEventRealization (ProviderEventType eventType, 
		                                                          ListItemProvider provider)
		{
			if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
			    return new ListItemAutomationHasKeyboardFocusPropertyEvent (provider);
			else if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
			    return new ListItemAutomationIsOffscreenPropertyEvent (provider);
			else if (eventType == ProviderEventType.AutomationElementNameProperty)
			    return new ListItemAutomationIsOffscreenPropertyEvent (provider);
			else
				return base.GetListItemEventRealization (eventType, provider);
		}
Пример #12
0
			public override IConnectable GetListItemEventRealization (ProviderEventType eventType, 
			                                                          ListItemProvider prov)
			{
				if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty)
				    return new ListItemAutomationIsOffscreenPropertyEvent (prov);
				else
					return base.GetListItemEventRealization (eventType, prov);
				//FIXME: Return AutomationIsKeyboardFocusablePropertyEvent
			}