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 a
event.WINDOW_CLOSED
Not visible.private final Object
Considered to be ready to use.
is true but are not yet ready for input.isShowing
(package private) static int
private final Timer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addWindowTo
(Window w, Map<Window, Boolean> map) (package private) void
Creates a new
and attaches it to the givenWindowVisibilityMonitor
.Window
(package private) boolean
Returnstrue
if the given component is a closed window.(package private) boolean
Returnstrue
if the given window is hidden.(package private) boolean
Returnstrue
if the given window is ready to receive OS-level event input.(package private) boolean
Returnstrue
if the given window is showing but not ready to receive OS-level event input.(package private) void
Marks the given window as "closed."(package private) void
Marks the given window as "hidden."(package private) void
Marks the given window as "ready to receive OS-level event input."(package private) void
Marks the given window as "showing."(package private) void
Marks the given window as "ready to use" and if not showing, as "hidden."private void
removeWindowFrom
(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 a
event.WINDOW_CLOSED
-
windowReadyTimer
-
lock
-
-
Constructor Details
-
Windows
Windows()
-
-
Method Details
-
attachNewWindowVisibilityMonitor
Creates a new
and attaches it to the givenWindowVisibilityMonitor
.Window
- Parameters:
target
- theWindow
to 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
Returnstrue
if the given component is a closed window.- Parameters:
c
- the given component.- Returns:
true
if the given component is a closed window,false
otherwise.
-
isReady
Returnstrue
if the given window is ready to receive OS-level event input.- Parameters:
w
- the given window.- Returns:
true
if the given window is ready to receive OS-level event input,false
otherwise.
-
isHidden
Returnstrue
if the given window is hidden.- Parameters:
w
- the given window.- Returns:
true
if the given window is hidden,false
otherwise.
-
isShowingButNotReady
Returnstrue
if the given window is showing but not ready to receive OS-level event input.- Parameters:
w
- the given window.- Returns:
true
if the given window is showing but not not ready to receive OS-level event input,false
otherwise.
-