net.sf.jameleon.plugin.jiffie.util
Interface BrowserCache

All Known Implementing Classes:
IEActionPointGenerator, IESessionTag

public interface BrowserCache

This interface defines methods for dealing with multiple open browser windows. It enables to manage the storage of multiple browser windows (InternetExplorer instances). todo Implement access to a browser window by it's window title (instead of index only)


Method Summary
 void addBrowser(InternetExplorer ie)
          Add a browser instance to the cache.
 InternetExplorer getBrowserAt(int i)
          Get the i-th browser window from the cache.
 Vector getBrowserCache()
           
 InternetExplorer getBrowserWithTitle(String title)
          Get the browser window from the cache with the matching title.
 InternetExplorer getFirstBrowser()
          Get the first browser window from the cache.
 void removeBrowser(InternetExplorer ie)
          Remove a browser instance from the cache.
 

Method Detail

getBrowserCache

Vector getBrowserCache()

addBrowser

void addBrowser(InternetExplorer ie)
Add a browser instance to the cache. Usually newly opened browser windows should be added to the cache.

Parameters:
ie - The browser window that should be added to the cache.

removeBrowser

void removeBrowser(InternetExplorer ie)
Remove a browser instance from the cache. This should usually happen on quit of the browser window.

Parameters:
ie - The browser window that should be removed from the cache.

getFirstBrowser

InternetExplorer getFirstBrowser()
Get the first browser window from the cache. The first instance is usually the "root" of all subsequently opened browser windows.

Returns:
The first browse window that is in the cache.

getBrowserAt

InternetExplorer getBrowserAt(int i)
Get the i-th browser window from the cache. If all opened browser windows are added to the cache, it returns the i-th browser window that has been opened.

Parameters:
i - The index of the browser window in the cache. This is usually the i-th browser window opened.
Returns:
The i-th browser window.

getBrowserWithTitle

InternetExplorer getBrowserWithTitle(String title)
Get the browser window from the cache with the matching title.

Parameters:
title - The title of the browser window in the cache.
Returns:
The matching browser window.


Copyright © 2004-2008 Christian Hargraves. All Rights Reserved.