org.icepdf.ri.viewer
Class WindowManager

java.lang.Object
  extended by org.icepdf.ri.viewer.WindowManager
All Implemented Interfaces:
WindowManagementCallback

public class WindowManager
extends java.lang.Object
implements WindowManagementCallback

An implementation of WindowManagementCallback to manage the viewer applications windows.

Since:
1.0

Constructor Summary
WindowManager(PropertiesManager properties)
           
WindowManager(PropertiesManager properties, java.util.ResourceBundle messageBundle)
           
 
Method Summary
 void bringAllWindowsToFront(SwingController frontMost)
           
 void bringWindowToFront(int index)
           
protected  SwingController commonWindowCreation()
           
 void disposeWindow(SwingController controller, javax.swing.JFrame viewer, java.util.Properties properties)
           
 long getNumberOfWindows()
           
 PropertiesManager getProperties()
           
 java.util.List getWindowDocumentOriginList(SwingController giveIndex)
          As long as no windows have openned or closed, then the indexes in the returned list should still be valid for doing operations on the respective Controller objects
 void minimiseAllWindows()
           
 void newWindow(java.lang.String location)
           
 void newWindow(java.net.URL location)
           
 void quit(SwingController controller, javax.swing.JFrame viewer, java.util.Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowManager

public WindowManager(PropertiesManager properties)

WindowManager

public WindowManager(PropertiesManager properties,
                     java.util.ResourceBundle messageBundle)
Method Detail

getProperties

public PropertiesManager getProperties()
Specified by:
getProperties in interface WindowManagementCallback

getNumberOfWindows

public long getNumberOfWindows()

newWindow

public void newWindow(java.lang.String location)
Specified by:
newWindow in interface WindowManagementCallback

newWindow

public void newWindow(java.net.URL location)
Specified by:
newWindow in interface WindowManagementCallback

commonWindowCreation

protected SwingController commonWindowCreation()

disposeWindow

public void disposeWindow(SwingController controller,
                          javax.swing.JFrame viewer,
                          java.util.Properties properties)
Specified by:
disposeWindow in interface WindowManagementCallback

quit

public void quit(SwingController controller,
                 javax.swing.JFrame viewer,
                 java.util.Properties properties)
Specified by:
quit in interface WindowManagementCallback

minimiseAllWindows

public void minimiseAllWindows()
Specified by:
minimiseAllWindows in interface WindowManagementCallback

bringAllWindowsToFront

public void bringAllWindowsToFront(SwingController frontMost)
Specified by:
bringAllWindowsToFront in interface WindowManagementCallback

bringWindowToFront

public void bringWindowToFront(int index)
Specified by:
bringWindowToFront in interface WindowManagementCallback

getWindowDocumentOriginList

public java.util.List getWindowDocumentOriginList(SwingController giveIndex)
As long as no windows have openned or closed, then the indexes in the returned list should still be valid for doing operations on the respective Controller objects

Specified by:
getWindowDocumentOriginList in interface WindowManagementCallback
Parameters:
giveIndex - Give this SwingControllers index in the list as an Integer appended to the List
Returns:
List of String objects, each representing an open Document's origin. The last element may be an Integer