org.lobobrowser.gui
Class DefaultWindowFactory

java.lang.Object
  extended by org.lobobrowser.gui.DefaultWindowFactory
All Implemented Interfaces:
WindowFactory

public class DefaultWindowFactory
extends java.lang.Object
implements WindowFactory

Browser windows are created by this factory by default.


Field Summary
 org.lobobrowser.util.EventDispatch evtWindowShown
           
 
Constructor Summary
protected DefaultWindowFactory()
           
 
Method Summary
 AbstractBrowserWindow createWindow(java.lang.String windowId, java.util.Properties properties, NavigatorWindow windowContext)
          Creates, sizes a browser window, and registeres listeners that allow the platform to persist window settings and shut itself down when all windows are closed.
 javax.swing.ImageIcon getDefaultImageIcon()
          Gets the default image icon for browser windows.
 AbstractBrowserWindow getExistingWindow(java.lang.String windowId)
          Gets an existing window given a windowId.
static DefaultWindowFactory getInstance()
           
 void overrideProperties(AbstractBrowserWindow window, java.util.Properties properties)
           
 void setExitWhenAllWindowsAreClosed(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

evtWindowShown

public final org.lobobrowser.util.EventDispatch evtWindowShown
Constructor Detail

DefaultWindowFactory

protected DefaultWindowFactory()
Method Detail

setExitWhenAllWindowsAreClosed

public void setExitWhenAllWindowsAreClosed(boolean flag)

getInstance

public static DefaultWindowFactory getInstance()

getDefaultImageIcon

public javax.swing.ImageIcon getDefaultImageIcon()
Gets the default image icon for browser windows.


getExistingWindow

public AbstractBrowserWindow getExistingWindow(java.lang.String windowId)
Description copied from interface: WindowFactory
Gets an existing window given a windowId.

Specified by:
getExistingWindow in interface WindowFactory

createWindow

public AbstractBrowserWindow createWindow(java.lang.String windowId,
                                          java.util.Properties properties,
                                          NavigatorWindow windowContext)
Creates, sizes a browser window, and registeres listeners that allow the platform to persist window settings and shut itself down when all windows are closed.

Specified by:
createWindow in interface WindowFactory
Parameters:
windowId - The window ID. It may be null.
properties - Window properties, following Window.open() conventions. In addition, properties title and icon should be supported.
See Also:
DefaultBrowserWindow

overrideProperties

public void overrideProperties(AbstractBrowserWindow window,
                               java.util.Properties properties)
Specified by:
overrideProperties in interface WindowFactory


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]