Package org.fest.swing.monitor
Class Windows
java.lang.Object
org.fest.swing.monitor.Windows
Understands the information collected by the monitors in this package.
-
Field Summary
FieldsModifier and TypeFieldDescriptionHave sent aevent.WINDOW_CLOSEDNot visible.private final ObjectConsidered to be ready to use.is true but are not yet ready for input.isShowing(package private) static intprivate final Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddWindowTo(Window w, Map<Window, Boolean> map) (package private) voidCreates a newand attaches it to the givenWindowVisibilityMonitor.Window(package private) booleanReturnstrueif the given component is a closed window.(package private) booleanReturnstrueif the given window is hidden.(package private) booleanReturnstrueif the given window is ready to receive OS-level event input.(package private) booleanReturnstrueif the given window is showing but not ready to receive OS-level event input.(package private) voidMarks the given window as "closed."(package private) voidMarks the given window as "hidden."(package private) voidMarks the given window as "ready to receive OS-level event input."(package private) voidMarks the given window as "showing."(package private) voidMarks the given window as "ready to use" and if not showing, as "hidden."private voidremoveWindowFrom(Window w, Map<?, ?>... maps)
-
Field Details
-
WINDOW_READY_DELAY
static int WINDOW_READY_DELAY -
pending
is true but are not yet ready for input.isShowing -
open
Considered to be ready to use. -
closed
Have sent aevent.WINDOW_CLOSED -
windowReadyTimer
-
lock
-
-
Constructor Details
-
Windows
Windows()
-
-
Method Details
-
attachNewWindowVisibilityMonitor
Creates a newand attaches it to the givenWindowVisibilityMonitor.Window- Parameters:
target- theWindowto attach the new monitor to.
-
markExisting
Marks the given window as "ready to use" and if not showing, as "hidden."- Parameters:
w- the given window.
-
markAsHidden
Marks the given window as "hidden."- Parameters:
w- the given window.
-
markAsShowing
Marks the given window as "showing."- Parameters:
w- the given window.
-
markAsReady
Marks the given window as "ready to receive OS-level event input."- Parameters:
w- the given window.
-
markAsClosed
Marks the given window as "closed."- Parameters:
w- the given window.
-
addWindowTo
-
removeWindowFrom
-
isClosed
Returnstrueif the given component is a closed window.- Parameters:
c- the given component.- Returns:
trueif the given component is a closed window,falseotherwise.
-
isReady
Returnstrueif the given window is ready to receive OS-level event input.- Parameters:
w- the given window.- Returns:
trueif the given window is ready to receive OS-level event input,falseotherwise.
-
isHidden
Returnstrueif the given window is hidden.- Parameters:
w- the given window.- Returns:
trueif the given window is hidden,falseotherwise.
-
isShowingButNotReady
Returnstrueif the given window is showing but not ready to receive OS-level event input.- Parameters:
w- the given window.- Returns:
trueif the given window is showing but not not ready to receive OS-level event input,falseotherwise.
-