Class Windows

java.lang.Object
org.fest.swing.monitor.Windows

@ThreadSafe class Windows extends Object
Understands the information collected by the monitors in this package.
  • Field Details

  • Constructor Details

    • Windows

      Windows()
  • Method Details

    • attachNewWindowVisibilityMonitor

      void attachNewWindowVisibilityMonitor(Window target)
      Creates a new WindowVisibilityMonitor and attaches it to the given Window.
      Parameters:
      target - the Window to attach the new monitor to.
    • markExisting

      @RunsInCurrentThread void markExisting(Window w)
      Marks the given window as "ready to use" and if not showing, as "hidden."
      Parameters:
      w - the given window.
    • markAsHidden

      void markAsHidden(Window w)
      Marks the given window as "hidden."
      Parameters:
      w - the given window.
    • markAsShowing

      void markAsShowing(Window w)
      Marks the given window as "showing."
      Parameters:
      w - the given window.
    • markAsReady

      void markAsReady(Window w)
      Marks the given window as "ready to receive OS-level event input."
      Parameters:
      w - the given window.
    • markAsClosed

      void markAsClosed(Window w)
      Marks the given window as "closed."
      Parameters:
      w - the given window.
    • addWindowTo

      private void addWindowTo(Window w, Map<Window,Boolean> map)
    • removeWindowFrom

      private void removeWindowFrom(Window w, Map<?,?>... maps)
    • isClosed

      boolean isClosed(Component c)
      Returns true 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

      boolean isReady(Window w)
      Returns true 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

      boolean isHidden(Window w)
      Returns true if the given window is hidden.
      Parameters:
      w - the given window.
      Returns:
      true if the given window is hidden, false otherwise.
    • isShowingButNotReady

      boolean isShowingButNotReady(Window w)
      Returns true 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.