|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.model.AbstractModel
org.eclipse.actf.model.AbstractGuiModel
org.eclipse.actf.accservice.core.win32.msaa.MsaaGuiModel
public class MsaaGuiModel
a model implementation for a hierarchy of IAccessible components used by the Microsoft Active Accessibility (MSAA) model
Field Summary | |
---|---|
static int |
CONTEXT_FLAG
|
static String |
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 | |
---|---|
|
MsaaGuiModel()
create a new MsaaModel |
protected |
MsaaGuiModel(String extendedAttrib)
|
Method Summary | |
---|---|
void |
asyncInvokeOnUIThread(Runnable runnable)
will be invoked on the current thread |
protected Class |
getAccessibilityEventServiceType()
|
protected Class |
getAccessibleElementType()
|
ModelEventType[] |
getModelEventTypes(Class sourceType)
get the model event types for the given source type. |
INodeLocator |
getNodeLocator()
retrieves a locator for finding and identifying nodes in the model. |
String |
getNodeName(Object element)
return the short name of this element. The id for an element is model-specific. For example, it may be the tag name of an element of a model representing a structure that conforms to W3the C DOM specification or the simple class name of the object. returns the qualified class name (i.e. without the package name) of the given element returns the accessibleRole of this element if it is of type MsaaAccessible |
protected void |
initEventIdMap()
|
protected void |
initEventIdMap(Class accType,
Class serviceClass,
String fieldPrefix)
|
void |
invokeOnUIThread(Runnable runnable)
will be invoked on the current thread |
boolean |
isTopDown()
|
boolean |
isUIThread()
returns whether or not the currently executing thread is the UI thread. |
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. |
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. |
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 |
---|
public static final String MSAA_MODEL
public static final int CONTEXT_FLAG
Constructor Detail |
---|
public MsaaGuiModel()
protected MsaaGuiModel(String extendedAttrib)
Method Detail |
---|
public String getNodeName(Object element)
MsaaAccessible
getNodeName
in interface IModel
getNodeName
in class AbstractModel
element
- - element for which name is desired
null
if not availableprotected Class getAccessibleElementType()
protected Class getAccessibilityEventServiceType()
protected void initEventIdMap()
initEventIdMap
in class AbstractGuiModel
protected void initEventIdMap(Class accType, Class serviceClass, String fieldPrefix)
public ModelEventType[] getModelEventTypes(Class sourceType)
ModelEventType
object
describes the types of events that can be fired within the context of this runtime model. If the sourceType is null
,
then all of the event types of which this model is aware will be returned else only events that can be fired by the given sourceType
will be returned.
getModelEventTypes
in interface IGuiModel
getModelEventTypes
in class AbstractGuiModel
sourceType
- type to be queried for events
org.eclipse.actf.core.model.event.ModelEventType
public void registerModelEventListener(IModelEventListener listener, ModelEventType[] eventTypes)
getModelEventTypes
methods.
registerModelEventListener
in interface IGuiModel
registerModelEventListener
in class AbstractGuiModel
listener
- listener to be notified when specified events occureventTypes
- event types for which listener is being registeredIGuiModel.getModelEventType(Object)
,
IGuiModel.getModelEventTypes(Class)
public void unregisterModelEventListener(IModelEventListener listener, ModelEventType[] eventTypes)
getModelEventTypes
methods.
unregisterModelEventListener
in interface IGuiModel
unregisterModelEventListener
in class AbstractGuiModel
listener
- listener to be unregisteredeventTypes
- event types for which listener is to be unregisteredIGuiModel.registerModelEventListener(IModelEventListener, ModelEventType[])
,
org.eclipse.actf.core.model.event.ModelEventType#getId()
public boolean isVisible(Object comp)
isVisible
in interface IGuiModel
isVisible
in class AbstractGuiModel
comp
- - component to be tested
public boolean isValid(Object comp)
null
.
isValid
in interface IGuiModel
isValid
in class AbstractGuiModel
comp
- - component to be tested
true
if this component is valid, false
otherwiseorg.eclipse.actf.core.model.InvalidComponentException
public boolean requestFocusFor(Object comp)
requestFocusFor
in interface IGuiModel
requestFocusFor
in class AbstractGuiModel
comp
- - component for which focus is desired
true
if focus is successful, false
otherwisepublic void asyncInvokeOnUIThread(Runnable runnable)
runnable
- - Runnable to be invoked in UI threadIGuiModel.invokeOnUIThread(Runnable)
public void invokeOnUIThread(Runnable runnable)
runnable
- - Runnable to be invoked in UI threadIGuiModel.isUIThread()
public boolean isUIThread()
IGuiModel
false
, the client will typically need to invoke the invokeOnUIThread
method in order to effect the GUI.
true
if the current thread is the UI thread, false
otherwiseIGuiModel.invokeOnUIThread(Runnable)
public boolean isTopDown()
public INodeLocator getNodeLocator()
AbstractModel
getNodeLocator
in interface IModel
getNodeLocator
in class AbstractModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |