public abstract class WindowManagerEx extends WindowManager
Modifier and Type | Class and Description |
---|---|
static class |
WindowManagerEx.WindowShadowMode |
Constructor and Description |
---|
WindowManagerEx() |
Modifier and Type | Method and Description |
---|---|
abstract void |
adjustContainerWindow(java.awt.Component c,
java.awt.Dimension oldSize,
java.awt.Dimension newSize) |
abstract void |
dispatchComponentEvent(java.awt.event.ComponentEvent e)
This method is invoked by
IdeEventQueue to notify window manager that
some window activity happens. |
abstract IdeFrameEx |
findFirstVisibleFrameHelper()
GUI test only.
|
abstract IdeFrame |
findFrameFor(Project project) |
abstract IdeFrameEx |
findFrameHelper(Project project)
Find frame for project or if project is null, for a last focused window.
|
abstract java.awt.Component |
getFocusedComponent(Project project) |
abstract java.awt.Component |
getFocusedComponent(java.awt.Window window) |
abstract IdeFrameImpl |
getFrame(Project project) |
abstract ProjectFrameHelper |
getFrameHelper(Project project) |
static WindowManagerEx |
getInstanceEx() |
abstract DesktopLayout |
getLayout() |
abstract java.awt.Window |
getMostRecentFocusedWindow() |
abstract java.util.List<ProjectFrameHelper> |
getProjectFrameHelpers() |
abstract java.awt.Rectangle |
getScreenBounds() |
abstract java.awt.Rectangle |
getScreenBounds(Project project) |
abstract void |
hideDialog(javax.swing.JDialog dialog,
Project project)
Either dispose the dialog immediately if project's frame has focus or just hide and dispose when frame gets focus or closes.
|
abstract void |
releaseFrame(ProjectFrameHelper frameHelper) |
void |
requestUserAttention(IdeFrame frame,
boolean critical) |
abstract void |
resetWindow(java.awt.Window window) |
abstract void |
setLayout(DesktopLayout layout)
Copies
layout into internal default layout. |
abstract void |
setWindowMask(java.awt.Window window,
java.awt.Shape mask) |
abstract void |
setWindowShadow(java.awt.Window window,
WindowManagerEx.WindowShadowMode mode) |
addListener, doNotSuggestAsParent, findVisibleFrame, getAllProjectFrames, getIdeFrame, getInstance, getStatusBar, getStatusBar, isAlphaModeEnabled, isAlphaModeSupported, isFullScreenSupportedInCurrentOS, isInsideScreenBounds, removeListener, setAlphaModeEnabled, setAlphaModeRatio, suggestParentWindow
public static WindowManagerEx getInstanceEx()
public abstract IdeFrameImpl getFrame(Project project)
getFrame
in class WindowManager
public void requestUserAttention(IdeFrame frame, boolean critical)
requestUserAttention
in class WindowManager
public abstract java.awt.Component getFocusedComponent(java.awt.Window window)
java.lang.IllegalArgumentException
- if window
is null
.public abstract java.awt.Component getFocusedComponent(Project project)
project
- may be null
when no project is opened.null
.public abstract java.awt.Window getMostRecentFocusedWindow()
public abstract DesktopLayout getLayout()
public abstract void setLayout(DesktopLayout layout)
layout
into internal default layout.public abstract void dispatchComponentEvent(java.awt.event.ComponentEvent e)
IdeEventQueue
to notify window manager that
some window activity happens. Do not invoke it in other places!!!public abstract java.awt.Rectangle getScreenBounds()
x
and/or y
coordinates can be negative. It depends on physical configuration of graphics devices.
For example, the left monitor has negative coordinates on Win32 platform with dual monitor support
(right monitor is the primer one) .public abstract java.awt.Rectangle getScreenBounds(Project project)
public abstract void setWindowMask(java.awt.Window window, java.awt.Shape mask)
public abstract void setWindowShadow(java.awt.Window window, WindowManagerEx.WindowShadowMode mode)
public abstract void resetWindow(java.awt.Window window)
public abstract void hideDialog(javax.swing.JDialog dialog, Project project)
dialog
- to hide and dispose laterproject
- the dialog has been shown forpublic abstract void adjustContainerWindow(java.awt.Component c, java.awt.Dimension oldSize, java.awt.Dimension newSize)
public abstract ProjectFrameHelper getFrameHelper(Project project)
public abstract IdeFrameEx findFrameHelper(Project project)
public abstract IdeFrameEx findFirstVisibleFrameHelper()
public abstract void releaseFrame(ProjectFrameHelper frameHelper)
public abstract java.util.List<ProjectFrameHelper> getProjectFrameHelpers()