Class InternalManagedWindow

All Implemented Interfaces:
ComponentPaintCache.Cacheable, ManagedWindow, ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
ImageViewWindow, SlotWindow

public class InternalManagedWindow extends InternalWindow implements ManagedWindow
An InternalWindow that implements ManagedWindow. Intended for the various on screen windows.
See Also:
Serialized Form
  • Constructor Details

    • InternalManagedWindow

      public InternalManagedWindow(String handle, String title)
      Create an InternalManagedWindow.
      Parameters:
      handle - identifier for the window manager
      title - window title
  • Method Details

    • moveTo

      public boolean moveTo(int x, int y)
      Description copied from interface: ManagedWindow
      Move to a location. This may be subject to internal representation, and should only use what was passed from getX() and getY().
      Specified by:
      moveTo in interface ManagedWindow
      Parameters:
      x - The X coordinate;
      y - The Y coordinate;
      Returns:
      true if the move was allowed.
    • setMinimized

      public void setMinimized(boolean minimized)
      Description copied from class: InternalWindow
      Set the minimization status of the window.
      Specified by:
      setMinimized in interface ManagedWindow
      Overrides:
      setMinimized in class InternalWindow
      Parameters:
      minimized - true to minimize the window, false to restore it
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class JComponent
    • setMovable

      public void setMovable(boolean movable)
      Make the window movable or unmovable by the user. Even unmovable users obey window locations from the window manager.
      Parameters:
      movable -
    • center

      protected void center()
      Center the window within the parent component.
    • addWindowDragListener

      public void addWindowDragListener(InternalManagedWindow.WindowDragListener listener)
      Add a window drag listener. Added listeners will be notified if this window is dragged by the user.
      Parameters:
      listener - added listener