|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface representing JREX Window manager It is also represents a listener interface for receiving window events.
WindowEvent
Field Summary | |
static int |
FORCED_TAB_MODE
A window mode representing tabbed browser window. |
static int |
INTERNAL_PANE_MODE
A window mode representing JInternalPane browser window. |
static int |
SINGLE_WINDOW_MODE
A window mode representing single browser window. |
static int |
TAB_MODE
A window mode representing tabbed browser window. |
static int |
WINDOW_MODE
A window mode representing normal browser window. |
Method Summary | |
void |
addJRexWindowListener(WindowListener wl)
Invoked to add JRex WindowListener, which helps in hooking up for window create/destroy request. |
void |
addWindow(JRexCanvas browser,
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 browserPeer)
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. |
Field Detail |
public static final int WINDOW_MODE
public static final int SINGLE_WINDOW_MODE
public static final int TAB_MODE
public static final int FORCED_TAB_MODE
public static final int INTERNAL_PANE_MODE
Method Detail |
public void create(int mode)
mode
- The mode which the window manager should use.
Throws
- java.lang.IllegalArgumentException if mode is not valid.public void init(JComponent parentComponent)
parentComponent
- 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 int createWindow(WindowEvent event)
public void setModal(WindowEvent event)
public void setSize(WindowEvent event)
public void setTitle(WindowEvent event)
public void setChromeFlags(WindowEvent event)
public void setRealized(WindowEvent event)
public void destroyWindow(WindowEvent event)
public void openNewWindow(int parentPeer, String uri, int loadFlags)
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)
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 destroyTab(int browserPeer)
browserPeer
- the peer browser ID for the tab.public void addWindow(JRexCanvas browser, Container parent, Container rootParent, Window window, long chromeFlags)
browser
- 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)
peerWindow
- the peer window ID for the window.public JRexCanvas getBrowser(int peerWindow)
public Iterator getBrowserForWindow(Window window)
public Iterator getBrowserForRootParent(Container rootParent)
public JRexCanvas getBrowserForParent(Container parent)
public Container getBrowserParent(int peerWindow)
public Container getBrowserRootParent(int peerWindow)
public Window getBrowserWindow(int peerWindow)
public JRexBrowserData getBrowserData(int peerWindow)
public void addJRexWindowListener(WindowListener wl)
public void removeJRexWindowListener()
public void dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |