|
|||||||||||
| 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. |
int |
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. |
JRexCanvas |
getBrowserForParent(Container parent)
Finds and returns the JRexCanvas assocciated with given parent. |
Iterator |
getBrowserForRootParent(Container rootParent)
Finds and returns the list of JRexCanvas assocciated with given rootParent. |
Iterator |
getBrowserForWindow(Window window)
Finds and returns the list of JRexCanvas assocciated with given window. |
Container |
getBrowserParent(int peerWindow)
Finds and returns the Container assocciated with given peer window. |
Container |
getBrowserRootParent(int peerWindow)
Finds and returns the Root Container assocciated with given peer window. |
Window |
getBrowserWindow(int peerWindow)
Finds and returns the Window assocciated with given peer window. |
void |
init(JComponent parentComponent)
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 JRexWindowManagermode - The mode which the window manager should use.public void init(JComponent parentComponent)
JRexWindowManager
init in interface JRexWindowManagerparentComponent - The parent component where the jrex browser will be attached.
The parentComponent should already have a parent window, ie, parentComponent should be added to a Frame/Dialog/Window before being passed to init function.
If null is passed a new JFrame window will be used.
public void openNewWindow(int parentPeer,
String uri,
int loadFlags)
JRexWindowManager
openNewWindow in interface JRexWindowManagerparentPeer - 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 JRexWindowManagerparentPeer - 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.WebNavigationConstantspublic int 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 JRexWindowManagerbrowserComp - 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 JRexWindowManagerpeerWindow - the peer window ID for the window.public void setModal(WindowEvent event)
JRexWindowManager
setModal in interface JRexWindowManagerpublic void setSize(WindowEvent event)
JRexWindowManager
setSize in interface JRexWindowManagerpublic void setTitle(WindowEvent event)
JRexWindowManager
setTitle in interface JRexWindowManagerpublic void setChromeFlags(WindowEvent event)
JRexWindowManager
setChromeFlags in interface JRexWindowManagerpublic void setRealized(WindowEvent event)
JRexWindowManager
setRealized in interface JRexWindowManagerpublic void destroyWindow(WindowEvent event)
JRexWindowManager
destroyWindow in interface JRexWindowManagerpublic void destroyTab(int peerWindow)
JRexWindowManager
destroyTab in interface JRexWindowManagerpeerWindow - the peer browser ID for the tab.public JRexCanvas getBrowser(int peerWindow)
JRexWindowManager
getBrowser in interface JRexWindowManagerpublic Iterator getBrowserForWindow(Window window)
JRexWindowManager
getBrowserForWindow in interface JRexWindowManagerpublic Iterator getBrowserForRootParent(Container rootParent)
JRexWindowManager
getBrowserForRootParent in interface JRexWindowManagerpublic JRexCanvas getBrowserForParent(Container parent)
JRexWindowManager
getBrowserForParent in interface JRexWindowManagerpublic Container getBrowserParent(int peerWindow)
JRexWindowManager
getBrowserParent in interface JRexWindowManagerpublic Container getBrowserRootParent(int peerWindow)
JRexWindowManager
getBrowserRootParent in interface JRexWindowManagerpublic Window getBrowserWindow(int peerWindow)
JRexWindowManager
getBrowserWindow in interface JRexWindowManagerpublic JRexBrowserData getBrowserData(int peerWindow)
JRexWindowManager
getBrowserData in interface JRexWindowManagerpublic void addJRexWindowListener(WindowListener wl)
JRexWindowManager
addJRexWindowListener in interface JRexWindowManagerpublic void removeJRexWindowListener()
JRexWindowManager
removeJRexWindowListener in interface JRexWindowManagerpublic void dispose()
JRexWindowManager
dispose in interface JRexWindowManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||