Exemplo n.º 1
0
 public IConnectable GetListItemEventRealization(ProviderEventType eventType,
                                                 ListItemProvider prov)
 {
     if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
     {
         return(new PartListItemAutomationHasKeyboardFocusPropertyEvent(
                    prov, this));
     }
     return(null);
 }
Exemplo n.º 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
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 5
0
 public virtual IConnectable GetListItemEventRealization(ProviderEventType eventType,
                                                         ListItemProvider prov)
 {
     return(null);
 }
Exemplo n.º 6
0
		public IConnectable GetListItemEventRealization (ProviderEventType eventType, 
		                                                 ListItemProvider prov)
		{
			if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty)
				return new ListItemAutomationHasKeyboardFocusPropertyEvent (prov);
			else
				return null;
		}
Exemplo n.º 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 ();
			}
		}
Exemplo n.º 8
0
		public virtual IConnectable GetListItemEventRealization (ProviderEventType eventType, 
		                                                         ListItemProvider prov)
		{
			return null;
		}
Exemplo n.º 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;
		}
Exemplo n.º 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);
		}
Exemplo n.º 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);
		}
Exemplo n.º 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
			}