Focus gained or lost is detected
Title: Focus gained or lost is detected
Number: 130
Specification reference: (Section 6.4.4 Stack Events page 17)
“Applications can obtain a ResourceServer from an OcapScene, through which they can register a ResourceStatusEventListener. This listener will provide notification when the HScene is "in front" or has lost its front most position in the z-ordered stack of HScenes.
Alternatively, the rules that tie AWT focus to the top HScene on the stack allow an application to more deterministically use the FOCUS_GAINED and FOCUS_LOST events to determine both when the application loses focus and when its HScene is no longer on the top of the stack."
Assertions:
1. The application obtains a ResourceServer or uses FOCUS_GAINED and FOCUS_LOST events
Test Procedures:
1. Manually inspect the source code.
2. Use Java reflection API or other tools to inspect the application .class files
Expected result
1. The invocations are found within the application


community