int code = OS.CallNextEventHandler (nextHandler, theEvent); boolean osFocusedAttribute = false; int [] booleanRef = new int [1]; if (code == OS.noErr) { int status = OS.GetEventParameter (theEvent, OS.kEventParamAccessibleAttributeValue, OS.typeCFBooleanRef, null, 4, null, booleanRef); if (status == OS.noErr) { osFocusedAttribute = booleanRef [0] != 0; } }
int osChildID = getChildIDFromEvent(theEvent);
	int getFocusedAttribute (int nextHandler, int theEvent, int userData) {		int code = OS.CallNextEventHandler (nextHandler, theEvent);		boolean osFocusedAttribute = false;		int [] booleanRef = new int [1];		if (code == OS.noErr) {			int status = OS.GetEventParameter (theEvent, OS.kEventParamAccessibleAttributeValue, OS.typeCFBooleanRef, null, 4, null, booleanRef);			if (status == OS.noErr) {				osFocusedAttribute = booleanRef [0] != 0;			}		}		AccessibleControlEvent event = new AccessibleControlEvent(this);		event.childID = getChildIDFromEvent(theEvent);		for (int i = 0; i < accessibleControlListeners.size(); i++) {			AccessibleControlListener listener = (AccessibleControlListener) accessibleControlListeners.elementAt(i);			listener.getFocus(event);		}		return OS.noErr;	}