event.childID = osToChildID(v.lVal); event.result = osHelp; for (int i = 0; i < accessibleListenersSize(); i++) {
event.childID = osToChildID(v.lVal); event.result = osDefaultAction; for (int i = 0; i < accessibleControlListenersSize(); i++) {
event.childID = osToChildID(v.lVal); event.result = osKeyboardShortcut;
event.childID = osToChildID(v.lVal); event.result = osName;
event.childID = osToChildID(v.lVal); event.result = osDescription;
int get_accRole(int /*long*/ varChild, int /*long*/ pvarRole) { if (control != null && control.isDisposed()) return COM.CO_E_OBJNOTCONNECTED; VARIANT v = getVARIANT(varChild); if (v.vt != COM.VT_I4) return COM.E_INVALIDARG; int osRole = COM.ROLE_SYSTEM_CLIENT; if (iaccessible != null) { /* Get the default role from the OS. */ int code = iaccessible.get_accRole(varChild, pvarRole); if (code == COM.S_OK) { VARIANT v2 = getVARIANT(pvarRole); if (v2.vt == COM.VT_I4) osRole = v2.lVal; } } AccessibleControlEvent event = new AccessibleControlEvent(this); event.childID = osToChildID(v.lVal); event.detail = osToRole(osRole); // TEMPORARY CODE /* Currently our checkbox table and tree are emulated using state mask images, * so we need to specify 'checkbox' role for the items. */ if (control instanceof Tree || control instanceof Table) { if (v.lVal != COM.CHILDID_SELF && (control.getStyle() & SWT.CHECK) != 0) event.detail = ACC.ROLE_CHECKBUTTON; } for (int i = 0; i < accessibleControlListenersSize(); i++) { AccessibleControlListener listener = accessibleControlListeners.get(i); listener.getRole(event); } if (DEBUG) print(this + ".IAccessible::get_accRole(" + v.lVal + ") returning " + getRoleString(roleToOs(event.detail)) + hresult(COM.S_OK)); setIntVARIANT(pvarRole, COM.VT_I4, roleToOs(event.detail)); return COM.S_OK; }
event.childID = osToChildID(v.lVal); event.result = osValue;
event.childID = osToChildID(v.lVal); event.x = osLeft; event.y = osTop;
event.childID = osChild == ACC.CHILDID_NONE ? ACC.CHILDID_NONE : osToChildID(osChild);
return COM.S_OK; final int childID = osToChildID(v.lVal); int code = COM.S_FALSE; Accessible osAccessible = null;
event.childID = osChild == ACC.CHILDID_NONE ? ACC.CHILDID_NONE : osToChildID(osChild); for (int i = 0; i < accessibleControlListenersSize(); i++) { AccessibleControlListener listener = accessibleControlListeners.get(i);
VARIANT v = getVARIANT(pvarChildren); if (v.vt == COM.VT_I4) { osChild = osToChildID(v.lVal); } else if (v.vt == COM.VT_DISPATCH) {
event.childID = osToChildID(v.lVal); event.detail = osToState(osState);