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

java.lang.Object
  extended by org.eclipse.actf.accservice.core.win32.ia2.IA2AccessibleElement
      extended by org.eclipse.actf.accservice.core.win32.ia2.IA2AccessibleValue
All Implemented Interfaces:
IAccessibleValueElement

public class IA2AccessibleValue
extends IA2AccessibleElement
implements IAccessibleValueElement

implementation of IA2AccessibleValue /** The IA2AccessibleValue interface should be supported by any object that supports a numerical value (e.g., a scroll bar). This interface provides the standard mechanism for an assistive technology to determine and set the numerical value as well as get the minimum and maximum values.

Author:
Kavitha Teegala
See Also:
IA2Accessible, MsaaAccessible.getAccessibleValue()

Field Summary
 
Fields inherited from class org.eclipse.actf.accservice.core.win32.ia2.IA2AccessibleElement
errorCodeReturnMap, errString
 
Constructor Summary
IA2AccessibleValue(int val, IA2Accessible parent)
          Constructor used to create an accessible image object
 
Method Summary
 Object getCurrentValue()
          Get the value of this object as a Number.
 Object getMaximumValue()
          get the maximum accessible value (e.g. for a slider control)
 Object getMinimumValue()
          get the minimum accessible value (e.g. for a slider control)
protected  Object internalGetCurrentValue()
           
protected  Object internalGetValueMax()
           
protected  Object internalGetValueMin()
           
 int internalRef()
          used by native code only.
protected  boolean internalSetCurrentAccessibleValue(String o)
           
 void setCurrentValue(Object o)
          Set the value of this object as a Number.
 
Methods inherited from class org.eclipse.actf.accservice.core.win32.ia2.IA2AccessibleElement
errorCodeMap, putErrorCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IA2AccessibleValue

public IA2AccessibleValue(int val,
                          IA2Accessible parent)
Constructor used to create an accessible image object

Parameters:
val -
parent - IA2Accessible parent of this object
Method Detail

internalRef

public int internalRef()
used by native code only. Clients should not call directly.

Returns:
ptr address for native object

getCurrentValue

public Object getCurrentValue()
                       throws InvalidComponentException
Get the value of this object as a Number. If the value has not been set, the return value will be null.

Specified by:
getCurrentValue in interface IAccessibleValueElement
Returns:
value of the object
Throws:
InvalidComponentException

internalGetCurrentValue

protected Object internalGetCurrentValue()

setCurrentValue

public void setCurrentValue(Object o)
                     throws InvalidComponentException
Set the value of this object as a Number.

Specified by:
setCurrentValue in interface IAccessibleValueElement
Parameters:
o - - new value
Throws:
InvalidComponentException

internalSetCurrentAccessibleValue

protected boolean internalSetCurrentAccessibleValue(String o)

getMinimumValue

public Object getMinimumValue()
                       throws InvalidComponentException
get the minimum accessible value (e.g. for a slider control)

Specified by:
getMinimumValue in interface IAccessibleValueElement
Returns:
minimum value or null if no value is provided
Throws:
InvalidComponentException
InvalidComponentException

internalGetValueMax

protected Object internalGetValueMax()

getMaximumValue

public Object getMaximumValue()
                       throws InvalidComponentException
get the maximum accessible value (e.g. for a slider control)

Specified by:
getMaximumValue in interface IAccessibleValueElement
Returns:
maximum value or null if no value is provided
Throws:
InvalidComponentException
InvalidComponentException

internalGetValueMin

protected Object internalGetValueMin()