org.eclipse.actf.accservice.core.win32.ia2
Class IA2GuiModel

java.lang.Object
  extended by org.eclipse.actf.model.AbstractModel
      extended by org.eclipse.actf.model.AbstractGuiModel
          extended by org.eclipse.actf.accservice.core.win32.msaa.MsaaGuiModel
              extended by org.eclipse.actf.accservice.core.win32.ia2.IA2GuiModel
All Implemented Interfaces:
IGuiModel, IModel

public class IA2GuiModel
extends MsaaGuiModel


Field Summary
static String IA2_MODEL
          model type for IA2; value is 'ia2'
 
Fields inherited from class org.eclipse.actf.accservice.core.win32.msaa.MsaaGuiModel
CONTEXT_FLAG, MSAA_MODEL
 
Fields inherited from class org.eclipse.actf.model.AbstractGuiModel
eventIdMap
 
Fields inherited from class org.eclipse.actf.model.AbstractModel
baseType, configuration, locator, runtimeContext, treeNodeWalker
 
Constructor Summary
IA2GuiModel()
          create a new IA2GuiModel
 
Method Summary
protected  Class getAccessibilityEventServiceType()
           
protected  Class getAccessibleElementType()
           
protected  void initEventIdMap()
           
 boolean isTopDown()
           
 boolean isValid(Object comp)
          returns whether or not the specified component is valid for access. Components may be invalid because their underlying resources have been disposed, because the device that displays or renders them is destroyed, or for many other reasons. This default implementation merely checks that the component is not null.
 boolean isVisible(Object comp)
          returns whether or not the specified component is currently visible
 void registerModelEventListener(IModelEventListener listener, ModelEventType[] eventTypes)
          register a listener to receive notification when events with the given eventTypes are fired within this model. The eventTypes should be obtained from one of the getModelEventTypes methods.
 boolean requestFocusFor(Object comp)
          request the focus for the specified component. This method should be invoked, for example, just prior to validation for a report that reflects the state of the component while visible.
 void unregisterModelEventListener(IModelEventListener listener, ModelEventType[] eventTypes)
          unregister a previously registered listener. The eventTypes should be obtained from either of the getModelEventTypes methods.
 
Methods inherited from class org.eclipse.actf.accservice.core.win32.msaa.MsaaGuiModel
asyncInvokeOnUIThread, getModelEventTypes, getNodeLocator, getNodeName, initEventIdMap, invokeOnUIThread, isUIThread
 
Methods inherited from class org.eclipse.actf.model.AbstractGuiModel
getBoundingRectangle, getModelEventType, highlight
 
Methods inherited from class org.eclipse.actf.model.AbstractModel
addModelChangeListener, fireModelChangeEvent, getBaseType, getDefaultAliasPrefix, getName, getNodeId, getOrder, getPackageNames, getTreeWalker, removeModelChangeListener, setFilters, setModelType, setNodeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.actf.model.IModel
addModelChangeListener, getBaseType, getDefaultAliasPrefix, getName, getNodeId, getOrder, getPackageNames, getTreeWalker, removeModelChangeListener, setNodeID
 

Field Detail

IA2_MODEL

public static final String IA2_MODEL
model type for IA2; value is 'ia2'

See Also:
Constant Field Values
Constructor Detail

IA2GuiModel

public IA2GuiModel()
create a new IA2GuiModel

Method Detail

getAccessibleElementType

protected Class getAccessibleElementType()
Overrides:
getAccessibleElementType in class MsaaGuiModel

getAccessibilityEventServiceType

protected Class getAccessibilityEventServiceType()
Overrides:
getAccessibilityEventServiceType in class MsaaGuiModel

initEventIdMap

protected void initEventIdMap()
Overrides:
initEventIdMap in class MsaaGuiModel

isVisible

public boolean isVisible(Object comp)
returns whether or not the specified component is currently visible

Specified by:
isVisible in interface IGuiModel
Overrides:
isVisible in class MsaaGuiModel
Parameters:
comp - - component to be tested
Returns:
whether or not the component is currently visible or showing on the screen

isValid

public boolean isValid(Object comp)
returns whether or not the specified component is valid for access. Components may be invalid because their underlying resources have been disposed, because the device that displays or renders them is destroyed, or for many other reasons. This default implementation merely checks that the component is not null.

Specified by:
isValid in interface IGuiModel
Overrides:
isValid in class MsaaGuiModel
Parameters:
comp - - component to be tested
Returns:
true if this component is valid, false otherwise
See Also:
org.eclipse.actf.core.model.InvalidComponentException

requestFocusFor

public boolean requestFocusFor(Object comp)
request the focus for the specified component. This method should be invoked, for example, just prior to validation for a report that reflects the state of the component while visible.

Specified by:
requestFocusFor in interface IGuiModel
Overrides:
requestFocusFor in class MsaaGuiModel
Parameters:
comp - - component for which focus is desired
Returns:
true if focus is successful, false otherwise

isTopDown

public boolean isTopDown()
Overrides:
isTopDown in class MsaaGuiModel

registerModelEventListener

public void registerModelEventListener(IModelEventListener listener,
                                       ModelEventType[] eventTypes)
register a listener to receive notification when events with the given eventTypes are fired within this model. The eventTypes should be obtained from one of the getModelEventTypes methods.

Specified by:
registerModelEventListener in interface IGuiModel
Overrides:
registerModelEventListener in class MsaaGuiModel
Parameters:
listener - listener to be notified when specified events occur
eventTypes - event types for which listener is being registered
See Also:
IGuiModel.getModelEventType(Object), IGuiModel.getModelEventTypes(Class)

unregisterModelEventListener

public void unregisterModelEventListener(IModelEventListener listener,
                                         ModelEventType[] eventTypes)
unregister a previously registered listener. The eventTypes should be obtained from either of the getModelEventTypes methods.

Specified by:
unregisterModelEventListener in interface IGuiModel
Overrides:
unregisterModelEventListener in class MsaaGuiModel
Parameters:
listener - listener to be unregistered
eventTypes - event types for which listener is to be unregistered
See Also:
IGuiModel.registerModelEventListener(IModelEventListener, ModelEventType[]), org.eclipse.actf.core.model.event.ModelEventType#getId()