30package com.jogamp.opengl.test.junit.util;
54 if( (
null == lost || lost.focusLost() ) && (
null == gain || gain.focusGained() ) ) {
57 if(
null != waitAction ) {
79 for (wait=0; wait<
POLL_DIVIDER && !closingListener.isWindowClosing(); wait++) {
80 if(
null != waitAction ) {
87 for (wait=0; wait<
POLL_DIVIDER && !closingListener.isWindowClosed(); wait++) {
88 if(
null != waitAction ) {
static final int RETRY_NUMBER
static final int TIME_SLICE
static final int POLL_DIVIDER
static boolean waitForFocus(final FocusEventCountAdapter gain, final FocusEventCountAdapter lost, final Runnable waitAction)
static boolean waitUntilClosed(final boolean willClose, final TestUtil.WindowClosingListener closingListener, final Runnable waitAction)
Wait until the window is closing within TIME_OUT.
static final int TIME_OUT
int getWindowClosingCount()
boolean isWindowClosing()
int getWindowClosedCount()