|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.main.WindowManager
public class WindowManager
Window Manager is responsible for creating, disposing, switching, in other words managing :) muCommander windows.
| Method Summary | |
|---|---|
void |
configurationChanged(ConfigurationEvent event)
Listens to certain configuration variables. |
static MainFrame |
createNewMainFrame()
Creates a new MainFrame and makes it visible on the screen, on top of any other frames. |
static MainFrame |
createNewMainFrame(AbstractFile folder1,
AbstractFile folder2)
Creates a new MainFrame and makes it visible on the screen, on top of any other frames. |
static MainFrame |
createNewMainFrame(java.lang.String folder1,
java.lang.String folder2)
Creates a new MainFrame and makes it visible on the screen, on top of any other frame. |
static MainFrame |
getCurrentMainFrame()
Returns the last MainFrame instance that was active. |
static java.awt.Rectangle |
getFullScreenBounds(java.awt.Window window)
Returns the maximum dimensions for a full-screen window. |
static WindowManager |
getInstance()
Returns the sole instance of WindowManager. |
static java.util.Vector |
getMainFrames()
Returns a Vector of all MainFrame instances the application has. |
static java.awt.Insets |
getScreenInsets(java.awt.Window window)
Computes the screen's insets for the specified window. |
static void |
installLookAndFeel(java.lang.String className)
|
static boolean |
isInsideUsableScreen(java.awt.Frame frame,
int x,
int y)
Checks whether the specified frame can be moved to the specified coordinates and still be fully visible. |
static void |
quit()
Disposes all opened windows, ending with the one that is currently active if there is one, or the last one which was activated. |
static void |
switchToNextWindow()
Switches to the next MainFrame, in the order of which they were created. |
static void |
switchToPreviousWindow()
Switches to previous MainFrame, in the order of which they were created. |
static void |
tryRefreshCurrentFolders()
Refreshes all panels in all frames in an asynchronous manner. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
windowClosed is synchronized so that it doesn't get called while quit() is executing. |
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WindowManager getInstance()
public static MainFrame getCurrentMainFrame()
public static java.util.Vector getMainFrames()
public static void tryRefreshCurrentFolders()
public static MainFrame createNewMainFrame()
The initial path of each frame will differ depending on whether this is the first mainframe
we create or not.
If it is, we'll use the user's default paths. If it's not, the current mainframe's paths will
be used.
public static MainFrame createNewMainFrame(java.lang.String folder1,
java.lang.String folder2)
folder1 - path on which the left frame will be opened.folder2 - path on which the right frame will be opened.
public static MainFrame createNewMainFrame(AbstractFile folder1,
AbstractFile folder2)
folder1 - initial path for the left frame.folder2 - initial path for the right frame.public static void quit()
public static void switchToNextWindow()
public static void switchToPreviousWindow()
public static void installLookAndFeel(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void configurationChanged(ConfigurationEvent event)
configurationChanged in interface ConfigurationListenerevent - describes the configuration modification.public static java.awt.Insets getScreenInsets(java.awt.Window window)
While this might seem strange, screen insets can change from one window to another. For example, on X11 windowing systems, there is no guarantee that a window will be displayed on the same screen, let alone computer, as the one the application is running on.
window - the window for which screen insets should be computed.
public static boolean isInsideUsableScreen(java.awt.Frame frame,
int x,
int y)
If x (resp. y) is null, this method won't test
whether the frame is within horizontal (resp. vertical) bounds.
frame - frame who's visibility should be tested.x - horizontal coordinate of the upper-leftmost corner of the area to check for.y - vertical coordinate of the upper-leftmost corner of the area to check for.
true if the frame can be moved at the specified location,
false otherwise.public static java.awt.Rectangle getFullScreenBounds(java.awt.Window window)
window - window who's full screen size should be computed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard