|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jrex.window.JRexWindowManagerImpl
Class implementing JRexWindowManager interface.
JRexWindowManager
Field Summary |
Fields inherited from interface org.mozilla.jrex.window.JRexWindowManager |
FORCED_TAB_MODE, INTERNAL_PANE_MODE, SINGLE_WINDOW_MODE, TAB_MODE, WINDOW_MODE |
Constructor Summary | |
JRexWindowManagerImpl()
Don't use this function to create a windomanager instance use JRexFactory. |
Method Summary | |
void |
addJRexWindowListener(WindowListener wl)
Invoked to add JRex WindowListener, which helps in hooking up for window create/destroy request. |
void |
addWindow(JRexCanvas browserComp,
Container parent,
Container rootParent,
Window window,
long chromeFlags)
Used to add a window into window manger list of created windows. |
void |
create(int mode)
Window manager creation function. |
void |
createWindow(WindowEvent event)
Invoked when an window create request is received. |
void |
destroyTab(int peerWindow)
Invoked to remove a tab. |
void |
destroyWindow(WindowEvent event)
Invoked when an window destroy request is received. |
void |
dispose()
Invoked to dispose the window manager with all its child windows. |
JRexCanvas |
getBrowser(int peerWindow)
Finds and returns the JRexCanvas assocciated with given peer window. |
JRexBrowserData |
getBrowserData(int peerWindow)
Finds and returns the JRexBrowserData assocciated with given peer window. |
Container |
getBrowserParent(int peerWindow)
Finds and returns the Container assocciated with given peer window. |
Window |
getBrowserWindow(int peerWindow)
Finds and returns the Window assocciated with given peer window. |
void |
init(JComponent comp)
Window manager intialization function, window manager should be created before calling initialize function. |
void |
openNewTab(int parentPeer,
String uri,
int loadFlags)
Invoked when an open new tab request is received. |
void |
openNewWindow(int parentPeer,
String uri,
int loadFlags)
Invoked when an open new window request is received. |
void |
removeJRexWindowListener()
Invoked to remove JRex WindowListener. |
void |
removeWindow(int peerWindow)
Used to remove a window from window manger list of created windows. |
void |
setChromeFlags(WindowEvent event)
Invoked when an chrome flags for a window needs to be changed. |
void |
setModal(WindowEvent event)
Invoked when an dialog needs to be made modal. |
void |
setRealized(WindowEvent event)
Invoked when jrex native implementation realizes the browser window. |
void |
setSize(WindowEvent event)
Invoked when an window size needs to be changed. |
void |
setTitle(WindowEvent event)
Invoked when an window title needs to be changed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JRexWindowManagerImpl()
JRexFactory
Method Detail |
public void create(int mode)
JRexWindowManager
create
in interface JRexWindowManager
mode
- The mode which the window manager should use.public void init(JComponent comp)
JRexWindowManager
init
in interface JRexWindowManager
comp
- The parent component where the jrex browser will be attached.
If null a new JFrame window will be created.public void openNewWindow(int parentPeer, String uri, int loadFlags)
JRexWindowManager
openNewWindow
in interface JRexWindowManager
parentPeer
- the parent peer window ID which invoked this function,
Usage depends on window manager modeuri
- the URI to open.loadFlags
- the load flags to use for loading the URI.WebNavigationConstants
public void openNewTab(int parentPeer, String uri, int loadFlags)
JRexWindowManager
openNewTab
in interface JRexWindowManager
parentPeer
- the parent peer window ID which invoked this function,
Usage depends on window manager modeuri
- the URI to open.loadFlags
- the load flags to use for loading the URI.WebNavigationConstants
public void createWindow(WindowEvent event)
JRexWindowManager
createWindow
in interface JRexWindowManager
public void addWindow(JRexCanvas browserComp, Container parent, Container rootParent, Window window, long chromeFlags)
JRexWindowManager
addWindow
in interface JRexWindowManager
browserComp
- the browser component associated window.parent
- the Container containing the browser component.rootParent
- the rootContainer containing the browser component,
like the content pane of JFrame or can be parent itself orwindow
- the window containing the browser component.chromeFlags
- the Chrome Flags for the window.public void removeWindow(int peerWindow)
JRexWindowManager
removeWindow
in interface JRexWindowManager
peerWindow
- the peer window ID for the window.public void setModal(WindowEvent event)
JRexWindowManager
setModal
in interface JRexWindowManager
public void setSize(WindowEvent event)
JRexWindowManager
setSize
in interface JRexWindowManager
public void setTitle(WindowEvent event)
JRexWindowManager
setTitle
in interface JRexWindowManager
public void setChromeFlags(WindowEvent event)
JRexWindowManager
setChromeFlags
in interface JRexWindowManager
public void setRealized(WindowEvent event)
JRexWindowManager
setRealized
in interface JRexWindowManager
public void destroyWindow(WindowEvent event)
JRexWindowManager
destroyWindow
in interface JRexWindowManager
public void destroyTab(int peerWindow)
JRexWindowManager
destroyTab
in interface JRexWindowManager
peerWindow
- the peer browser ID for the tab.public JRexCanvas getBrowser(int peerWindow)
JRexWindowManager
getBrowser
in interface JRexWindowManager
public Container getBrowserParent(int peerWindow)
JRexWindowManager
getBrowserParent
in interface JRexWindowManager
public Window getBrowserWindow(int peerWindow)
JRexWindowManager
getBrowserWindow
in interface JRexWindowManager
public JRexBrowserData getBrowserData(int peerWindow)
JRexWindowManager
getBrowserData
in interface JRexWindowManager
public void addJRexWindowListener(WindowListener wl)
JRexWindowManager
addJRexWindowListener
in interface JRexWindowManager
public void removeJRexWindowListener()
JRexWindowManager
removeJRexWindowListener
in interface JRexWindowManager
public void dispose()
JRexWindowManager
dispose
in interface JRexWindowManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |