To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=71895
Issue #|71895
Summary|AWT: FocusChangeReason cannnot be queried
Component|api
Version|680m193
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|cd
Reported by|bc
------- Additional comments from [EMAIL PROTECTED] Thu Nov 23 07:04:20 -0800
2006 -------
If you add a com.sun.star.awt.XFocusListener to a control you are supposed to
query the FocusChangeReason from the member "FocusFlags" of the eventObject.
A code example would be:
public void focusLost(FocusEvent _focusEvent) {
short nFocusFlags = _focusEvent.FocusFlags;
int nFocusChangeReason = nFocusFlags & FocusChangeReason.TAB;
if (nFocusChangeReason == FocusChangeReason.TAB){
XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
_focusEvent.NextFocus);
//....
}
This example does not work because the value of the focusFlags is always 0;
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]