fi.hut.tml.xsmiles
Class BrowserID
java.lang.Object
fi.hut.tml.xsmiles.BrowserID
- public class BrowserID
- extends java.lang.Object
The BrowserID class contains extended functionality, for handling with
issues arising from duplicate ids. If two browserWindows have the same ID,
the one which is "closer" is chosen, when a browser is requested.
The rules that define "closeness" are the following:
- All children of a browser are searched for id.
- Neighbours are checked.
- Author:
- juha
- See Also:
BrowserTable
|
Method Summary |
static BrowserWindow |
getClosestBrowser(java.util.Vector browserWindows,
BrowserID bid)
Find the closest browser, so that when accessing a
browser through ID, the "closest" browserWindow
instance will be used, instead of the random one used
before. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
number
protected java.lang.String number
children
protected int children
id
protected java.lang.String id
parent
protected BrowserWindow parent
BrowserID
public BrowserID()
getClosestBrowser
public static BrowserWindow getClosestBrowser(java.util.Vector browserWindows,
BrowserID bid)
- Find the closest browser, so that when accessing a
browser through ID, the "closest" browserWindow
instance will be used, instead of the random one used
before.
NOTICE!!! The getClosestBrowser is not working correctly
because of bad algorithm.
- Parameters:
bid - The BrowserID, who to refer against
- Returns:
- the browserWindow, whose ID is closest to the referring browserID
X-Smiles 1.2