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.AbstractRenderableModel
          extended by org.eclipse.actf.accservice.core.win32.msaa.MsaaGuiModel
              extended by org.eclipse.actf.accservice.core.win32.ia2.IA2GuiModel
All Implemented Interfaces:
IModel, IRenderableModel

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
MSAA_MODEL
 
Fields inherited from class org.eclipse.actf.model.AbstractRenderableModel
eventIdMap
 
Fields inherited from class org.eclipse.actf.model.AbstractModel
baseType, configuration, locator, nodeToTypeNameMap, runtimeContext, treeNodeWalker
 
Constructor Summary
IA2GuiModel()
          create a new IA2GuiModel
 
Method Summary
protected  Class getAccessibilityEventServiceType()
           
protected  Class getAccessibleElementType()
           
protected  void initEventIdMap()
          used to initialize the eventId map, which is keyed by eventId that corresponds to a ModelEventType instance.
 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. 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, Object[] params)
          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. Optional parameters can also be passed to facilitate additional side effects or for additional information about the context in which events are being fired. The only optional parameter is an int that specifies flags for MSAA event-processing.
 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, getNodeWalker, getPackageNames, getTypeName, invokeOnUIThread, isUIThread, registerModelEventListener, unregisterModelEventListener
 
Methods inherited from class org.eclipse.actf.model.AbstractRenderableModel
getBoundingRectangle, getModelEventType, highlight, initEventIdMap, registerModelEventListener
 
Methods inherited from class org.eclipse.actf.model.AbstractModel
addModelChangeListener, fireModelChangeEvent, getBaseType, getDefaultAliasPrefix, getName, getNodeId, getOrder, 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, 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()
Description copied from class: AbstractRenderableModel
used to initialize the eventId map, which is keyed by eventId that corresponds to a ModelEventType instance. Event ids are model-specific and typically defined as part of that model's definition.

Overrides:
initEventIdMap in class MsaaGuiModel
See Also:
ModelEventType, AbstractRenderableModel.registerModelEventListener(IModelEventListener, ModelEventType[])

isVisible

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

Specified by:
isVisible in interface IRenderableModel
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. default implementation merely checks that the component is not null.

Specified by:
isValid in interface IRenderableModel
Overrides:
isValid in class MsaaGuiModel
Parameters:
comp - - component to be tested
Returns:
true if this component is valid, false otherwise
See Also:
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 IRenderableModel
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,
                                       Object[] params)
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. Optional parameters can also be passed to facilitate additional side effects or for additional information about the context in which events are being fired. The only optional parameter is an int that specifies flags for MSAA event-processing. If such a flag (or combination of flags is not present, DEFAULT_CONTEXT_FLAG will be used.

Specified by:
registerModelEventListener in interface IRenderableModel
Overrides:
registerModelEventListener in class MsaaGuiModel
Parameters:
listener - listener to be notified when specified events occur
eventTypes - event types for which listener is being registered
params - - additional parameters (may be null)
See Also:
IRenderableModel.getModelEventType(Object), IRenderableModel.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 IRenderableModel
Overrides:
unregisterModelEventListener in class MsaaGuiModel
Parameters:
listener - listener to be unregistered
eventTypes - event types for which listener is to be unregistered
See Also:
IRenderableModel.registerModelEventListener(IModelEventListener, ModelEventType[]), ModelEventType