public class ScopeDesktopWindowManager extends AbstractService implements DesktopWindowManager
servicesSERVICE_NAME| Constructor and Description |
|---|
ScopeDesktopWindowManager(ScopeServices services) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveQuickWindowId()
Gets id of active window.
|
List<DesktopWmProtos.DesktopWindowInfo> |
getDesktopWindowInfoList() |
int |
getOpenQuickWindowCount()
Gets number of open windows.
|
QuickMenu |
getQuickMenu(String menuName)
Gets the menu with name name.
|
QuickMenu |
getQuickMenu(String menuName,
int windowId) |
QuickMenuItem |
getQuickMenuItemByAccKey(String key,
String menuName)
Gets the menu item with the given accelerator key in the menu with name menuName.
|
QuickMenuItem |
getQuickMenuItemByAction(String action)
Gets the menu with the action specified, if any.
|
QuickMenuItem |
getQuickMenuItemByName(String name) |
QuickMenuItem |
getQuickMenuItemByName(String name,
int window_id) |
QuickMenuItem |
getQuickMenuItemByPosition(int row,
String menuName)
Gets the menu item with the given position in the menu with name menuName.
|
QuickMenuItem |
getQuickMenuItemByShortcut(String shortcut)
Gets the Menu item with the given shortcut.
|
QuickMenuItem |
getQuickMenuItemBySubmenu(String submenu)
Gets the menu item that opens the sub-menu.
|
QuickMenuItem |
getQuickMenuItemByText(String text)
Gets the menu with the text specified, if any.
|
List<QuickMenuItem> |
getQuickMenuItemList() |
List<QuickMenu> |
getQuickMenuList() |
QuickWidget |
getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
String value)
Gets a QuickWidget based on a specific property.
|
QuickWidget |
getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
String value,
String parentName)
Gets the quick widget in a specified window based on a specific property and its parent widgets
name.
|
QuickWidget |
getQuickWidgetByPos(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int id,
int row,
int column)
Gets the quick widget based on its position.
|
QuickWidget |
getQuickWidgetByPos(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
int row,
int column,
String parentName)
Gets the quick widget based on its position and its parent widgets name.
|
List<QuickWidget> |
getQuickWidgetList(int windowId)
Gets list of all QuickWidgets in the window.
|
QuickWindow |
getQuickWindow(DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
String value)
Gets the quick window based on a specific property.
|
QuickWindow |
getQuickWindowById(int windowId)
Gets the quick window with the given window id.
|
QuickWindow |
getQuickWindowByName(String name)
Gets the window with name name.
|
int |
getQuickWindowID(String name)
Gets window id of window with the given name.
|
List<QuickWindow> |
getQuickWindowList()
Gets a list of all open windows.
|
String |
getQuickWindowName(int windowId)
Gets the name of the window with windowId.
|
void |
init()
Does initialization necessary to set up the service.
|
void |
pressQuickMenuItem(String menuItemText,
boolean popMenu) |
buildPayload, executeMessage, executeMessage, executeMessage, getServiceName, getServiceVersion, isVersionInRange, sleep, toString, xpathIterator, xpathPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetServiceName, getServiceVersionpublic ScopeDesktopWindowManager(ScopeServices services)
public void init()
DesktopWindowManagerinit in interface Serviceinit in interface DesktopWindowManagerpublic int getActiveQuickWindowId()
DesktopWindowManagergetActiveQuickWindowId in interface DesktopWindowManagerpublic int getOpenQuickWindowCount()
DesktopWindowManagergetOpenQuickWindowCount in interface DesktopWindowManagerpublic QuickWindow getQuickWindow(DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property, String value)
DesktopWindowManagergetQuickWindow in interface DesktopWindowManagerproperty - - property to search byvalue - - value of property givenpublic List<QuickWindow> getQuickWindowList()
DesktopWindowManagergetQuickWindowList in interface DesktopWindowManagerpublic List<DesktopWmProtos.DesktopWindowInfo> getDesktopWindowInfoList()
public int getQuickWindowID(String name)
DesktopWindowManagergetQuickWindowID in interface DesktopWindowManagername - window namepublic QuickWindow getQuickWindowByName(String name)
DesktopWindowManagergetQuickWindowByName in interface DesktopWindowManagername - window namepublic QuickWindow getQuickWindowById(int windowId)
DesktopWindowManagergetQuickWindowById in interface DesktopWindowManagerwindowId - id of the windowpublic String getQuickWindowName(int windowId)
DesktopWindowManagergetQuickWindowName in interface DesktopWindowManagerwindowId - id of windowpublic QuickWidget getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type, int windowId, DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property, String value)
DesktopWindowManagergetQuickWidget in interface DesktopWindowManagertype - what typewindowId - window id of the window containing the widgetproperty - property specified for the searchvalue - value of property givenpublic QuickWidget getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type, int windowId, DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property, String value, String parentName)
DesktopWindowManagergetQuickWidget in interface DesktopWindowManagertype - what typewindowId - window id of the window containing the widgetproperty - property specified for the searchvalue - value of property givenparentName - Name of the widgets parent widgetpublic QuickWidget getQuickWidgetByPos(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type, int id, int row, int column)
DesktopWindowManagergetQuickWidgetByPos in interface DesktopWindowManagertype - what typeid - window id of the window containing the widgetrow - row of the widgetcolumn - column of the widgetpublic QuickWidget getQuickWidgetByPos(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type, int windowId, int row, int column, String parentName)
DesktopWindowManagergetQuickWidgetByPos in interface DesktopWindowManagertype - what typewindowId - window id of the window containing the widgetrow - row of the widgetcolumn - column of the widgetparentName - Name of the widgets parent widgetpublic List<QuickWidget> getQuickWidgetList(int windowId)
DesktopWindowManagergetQuickWidgetList in interface DesktopWindowManagerwindowId - id of windowpublic QuickMenu getQuickMenu(String menuName)
DesktopWindowManagergetQuickMenu in interface DesktopWindowManagermenuName - the menu's namepublic List<QuickMenu> getQuickMenuList()
getQuickMenuList in interface DesktopWindowManagerpublic List<QuickMenuItem> getQuickMenuItemList()
getQuickMenuItemList in interface DesktopWindowManagerpublic void pressQuickMenuItem(String menuItemText, boolean popMenu)
pressQuickMenuItem in interface DesktopWindowManagerpublic QuickMenuItem getQuickMenuItemByAction(String action)
DesktopWindowManagergetQuickMenuItemByAction in interface DesktopWindowManageraction - of the menu item to search forpublic QuickMenuItem getQuickMenuItemBySubmenu(String submenu)
DesktopWindowManagergetQuickMenuItemBySubmenu in interface DesktopWindowManagersubmenu - the name of the sub-menu the menu item opens when its selected/clickedpublic QuickMenuItem getQuickMenuItemByText(String text)
DesktopWindowManagergetQuickMenuItemByText in interface DesktopWindowManagertext - of the menu item to search forpublic QuickMenuItem getQuickMenuItemByAccKey(String key, String menuName)
DesktopWindowManagergetQuickMenuItemByAccKey in interface DesktopWindowManagerkey - the shortcut key of the menu item to search for (the character that's
underlined/marked in the menu item text)menuName - name of the menu of the menu itempublic QuickMenuItem getQuickMenuItemByShortcut(String shortcut)
DesktopWindowManagergetQuickMenuItemByShortcut in interface DesktopWindowManagershortcut - string representation of the shortcut of the menuitem (i.e. "Ctrl+O")public QuickMenuItem getQuickMenuItemByPosition(int row, String menuName)
DesktopWindowManagergetQuickMenuItemByPosition in interface DesktopWindowManagerrow - the row of the item, counting from zero, and including both normal items and
menu separatorsmenuName - name of the menu to lookup the menu item inpublic QuickMenuItem getQuickMenuItemByName(String name)
getQuickMenuItemByName in interface DesktopWindowManagername - name of the item. This is either the name of the action the item executes when
selected The name of the sub-menu the item opens when selected "Separator" for
items that are separatorspublic QuickMenu getQuickMenu(String menuName, int windowId)
getQuickMenu in interface DesktopWindowManagermenuName - name of the menu (as specified in standard_menu.ini)windowId - id of the window the menu is attached to (note: only makes sense for menu bar)public QuickMenuItem getQuickMenuItemByName(String name, int window_id)
getQuickMenuItemByName in interface DesktopWindowManagername - Name of the menuItemwindow_id - windowId of the window the menu of the item is in (note: only makes sense for
menu bar items)Copyright © 2013. All Rights Reserved.