Adaption to change of XAccessibleComponent and XAccessibleExtendedComponent interfaces.
This commit is contained in:
parent
1d9b77f663
commit
ec1e241046
3 changed files with 24 additions and 5 deletions
|
@ -43,7 +43,7 @@ public class AccessibilityWorkBench
|
|||
MessageInterface,
|
||||
XTerminateListener
|
||||
{
|
||||
public static final String msVersion = "v1.5";
|
||||
public static final String msVersion = "v1.6";
|
||||
public String msFileName;
|
||||
public String msOptionsFileName = ".AWBrc";
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class AccessibleComponentHandler
|
|||
public AccessibleComponentHandler (XAccessibleComponent xComponent)
|
||||
{
|
||||
if (xComponent != null)
|
||||
maChildList.setSize (4);
|
||||
maChildList.setSize (6);
|
||||
}
|
||||
|
||||
public AccessibleTreeNode createChild (AccessibleTreeNode aParent, int nIndex)
|
||||
|
@ -40,6 +40,7 @@ class AccessibleComponentHandler
|
|||
|
||||
if (xComponent != null)
|
||||
{
|
||||
int nColor;
|
||||
switch (nIndex)
|
||||
{
|
||||
case 0:
|
||||
|
@ -67,6 +68,24 @@ class AccessibleComponentHandler
|
|||
+ aBBox.Width + ", " + aBBox.Height,
|
||||
aParent);
|
||||
break;
|
||||
case 4:
|
||||
nColor = xComponent.getForeground();
|
||||
aChild = new StringNode ("Foreground color: R"
|
||||
+ (nColor>>16&0xff)
|
||||
+ "G" + (nColor>>8&0xff)
|
||||
+ "B" + (nColor>>0&0xff)
|
||||
+ "A" + (nColor>>24&0xff),
|
||||
aParent);
|
||||
break;
|
||||
case 5:
|
||||
nColor = xComponent.getBackground();
|
||||
aChild = new StringNode ("Background color: R"
|
||||
+ (nColor>>16&0xff)
|
||||
+ "G" + (nColor>>8&0xff)
|
||||
+ "B" + (nColor>>0&0xff)
|
||||
+ "A" + (nColor>>24&0xff),
|
||||
aParent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ class AccessibleExtendedComponentHandler
|
|||
public AccessibleExtendedComponentHandler (XAccessibleExtendedComponent xEComponent)
|
||||
{
|
||||
if (xEComponent != null)
|
||||
maChildList.setSize (2);
|
||||
maChildList.setSize (0);
|
||||
}
|
||||
|
||||
private static XAccessibleExtendedComponent getComponent (AccTreeNode aNode)
|
||||
|
@ -49,7 +49,7 @@ class AccessibleExtendedComponentHandler
|
|||
{
|
||||
case 0:
|
||||
nColor = xEComponent.getForeground();
|
||||
aChild = new StringNode ("Foreground color: R"
|
||||
aChild = new StringNode ("Depricated Foreground color: R"
|
||||
+ (nColor>>16&0xff)
|
||||
+ "G" + (nColor>>8&0xff)
|
||||
+ "B" + (nColor>>0&0xff)
|
||||
|
@ -58,7 +58,7 @@ class AccessibleExtendedComponentHandler
|
|||
break;
|
||||
case 1:
|
||||
nColor = xEComponent.getBackground();
|
||||
aChild = new StringNode ("Background color: R"
|
||||
aChild = new StringNode ("Depricated Background color: R"
|
||||
+ (nColor>>16&0xff)
|
||||
+ "G" + (nColor>>8&0xff)
|
||||
+ "B" + (nColor>>0&0xff)
|
||||
|
|
Loading…
Reference in a new issue