com.opera.core.systems.scope.services.ums
Class WindowManager
java.lang.Object
com.opera.core.systems.scope.AbstractService
com.opera.core.systems.scope.services.ums.WindowManager
- All Implemented Interfaces:
- IWindowManager
public class WindowManager
- extends AbstractService
- implements IWindowManager
window-manager service implementation, handles events such as window-closed and updated and
tracks window being loaded
- Author:
- Deniz Turkoglu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowManager
public WindowManager(ScopeServices services,
String version)
getLastHttpResponseCode
public AtomicInteger getLastHttpResponseCode()
- Specified by:
getLastHttpResponseCode in interface IWindowManager
getOpenWindowCount
public int getOpenWindowCount()
- Specified by:
getOpenWindowCount in interface IWindowManager
setActiveWindowId
public void setActiveWindowId(Integer windowId)
- Description copied from interface:
IWindowManager
- Sets the active window if the window is of type 'normal' discards any other window such as
'dialog' or 'unknown'.
- Specified by:
setActiveWindowId in interface IWindowManager
getActiveWindowId
public int getActiveWindowId()
- Specified by:
getActiveWindowId in interface IWindowManager
addWindow
public void addWindow(WmProtos.WindowInfo info)
- Specified by:
addWindow in interface IWindowManager
removeWindow
public void removeWindow(Integer windowId)
- Specified by:
removeWindow in interface IWindowManager
init
public void init()
- Description copied from interface:
IWindowManager
- Get the list of all windows, then find a driver window (which needs to be 'normal' window)
after that set the active window to that window.
- Specified by:
init in interface IWindowManager
findDriverWindow
public void findDriverWindow()
- Description copied from interface:
IWindowManager
- Find a window suitable for driving, find the active window, if it is not a normal window, find
the first normal window via JXPath.
- Specified by:
findDriverWindow in interface IWindowManager
filterActiveWindow
public void filterActiveWindow()
- Filter only the active window so we don't get messages from other windows (like thread
messages)
- Specified by:
filterActiveWindow in interface IWindowManager
setActiveWindow
public void setActiveWindow(String title)
- Specified by:
setActiveWindow in interface IWindowManager
closeAllWindows
public void closeAllWindows()
- Specified by:
closeAllWindows in interface IWindowManager
getWindowHandles
public List<Integer> getWindowHandles()
- Specified by:
getWindowHandles in interface IWindowManager
resetWindowsList
public void resetWindowsList()
- Specified by:
resetWindowsList in interface IWindowManager
clearFilter
public void clearFilter()
- Specified by:
clearFilter in interface IWindowManager
filterWindow
public void filterWindow(Integer windowId)
- Specified by:
filterWindow in interface IWindowManager
getActiveWindowTitle
public String getActiveWindowTitle()
openUrl
public void openUrl(int windowId,
String url)
- Specified by:
openUrl in interface IWindowManager
closeWindow
public void closeWindow(int windowId)
- Specified by:
closeWindow in interface IWindowManager
Copyright © 2012. All Rights Reserved.