|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.scope.AbstractService
com.opera.core.systems.scope.services.ums.DesktopWindowManager
public class DesktopWindowManager
| Field Summary |
|---|
| Fields inherited from class com.opera.core.systems.scope.AbstractService |
|---|
services |
| Constructor Summary | |
|---|---|
DesktopWindowManager(IDesktopUtils desktopUtils,
SystemInputManager inputManager,
ScopeServices services,
java.lang.String version)
|
|
| Method Summary | |
|---|---|
int |
getActiveQuickWindowId()
Gets id of active window. |
java.util.List<DesktopWmProtos.DesktopWindowInfo> |
getDesktopWindowInfoList()
|
int |
getOpenQuickWindowCount()
Gets number of open windows. |
QuickMenu |
getQuickMenu(java.lang.String menuName)
Gets the menu with name name. |
QuickMenu |
getQuickMenu(java.lang.String menuName,
int windowId)
|
QuickMenuItem |
getQuickMenuItemByAccKey(java.lang.String key,
java.lang.String menuName)
Gets the menu item with the given accelerator key in the menu with name menuName. |
QuickMenuItem |
getQuickMenuItemByAction(java.lang.String action)
Gets the menu with the action specified, if any. |
QuickMenuItem |
getQuickMenuItemByName(java.lang.String name)
|
QuickMenuItem |
getQuickMenuItemByName(java.lang.String name,
int window_id)
|
QuickMenuItem |
getQuickMenuItemByPosition(int row,
java.lang.String menuName)
Gets the menu item with the given position in the menu with name menuName. |
QuickMenuItem |
getQuickMenuItemByShortcut(java.lang.String shortcut)
Gets the Menu item with the given shortcut. |
QuickMenuItem |
getQuickMenuItemBySubmenu(java.lang.String submenu)
Gets the menu item that opens the sub-menu. |
QuickMenuItem |
getQuickMenuItemByText(java.lang.String text)
Gets the menu with the text specified, if any. |
java.util.List<QuickMenuItem> |
getQuickMenuItemList()
|
java.util.List<QuickMenu> |
getQuickMenuList()
|
QuickWidget |
getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
java.lang.String value)
Gets a QuickWidget based on a specific property. |
QuickWidget |
getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
java.lang.String value,
java.lang.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,
java.lang.String parentName)
Gets the quick widget based on its position and its parent widgets name. |
java.util.List<QuickWidget> |
getQuickWidgetList(int windowId)
Gets list of all QuickWidgets in the window. |
QuickWindow |
getQuickWindow(DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
java.lang.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(java.lang.String name)
Gets the window with name name. |
int |
getQuickWindowID(java.lang.String name)
Gets window id of window with the given name. |
java.util.List<QuickWindow> |
getQuickWindowList()
Gets a list of all open windows. |
java.lang.String |
getQuickWindowName(int windowId)
Gets the name of the window with windowId. |
void |
init()
Does initialization necessary to set up the service. |
void |
pressQuickMenuItem(java.lang.String menuItemText,
boolean popMenu)
|
| Methods inherited from class com.opera.core.systems.scope.AbstractService |
|---|
buildPayload, executeCommand, executeCommand, getVersion, isVersionInRange, sleep, xpathIterator, xpathPointer, xpathQuery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DesktopWindowManager(IDesktopUtils desktopUtils,
SystemInputManager inputManager,
ScopeServices services,
java.lang.String version)
| Method Detail |
|---|
public void init()
IDesktopWindowManager
init in interface IDesktopWindowManagerpublic int getActiveQuickWindowId()
IDesktopWindowManager
getActiveQuickWindowId in interface IDesktopWindowManagerpublic int getOpenQuickWindowCount()
IDesktopWindowManager
getOpenQuickWindowCount in interface IDesktopWindowManager
public QuickWindow getQuickWindow(DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
java.lang.String value)
IDesktopWindowManager
getQuickWindow in interface IDesktopWindowManagerproperty - - property to search byvalue - - value of property given
public java.util.List<QuickWindow> getQuickWindowList()
IDesktopWindowManager
getQuickWindowList in interface IDesktopWindowManagerpublic java.util.List<DesktopWmProtos.DesktopWindowInfo> getDesktopWindowInfoList()
public int getQuickWindowID(java.lang.String name)
IDesktopWindowManager
getQuickWindowID in interface IDesktopWindowManagername - window name
public QuickWindow getQuickWindowByName(java.lang.String name)
IDesktopWindowManager
getQuickWindowByName in interface IDesktopWindowManagername - window name
public QuickWindow getQuickWindowById(int windowId)
IDesktopWindowManager
getQuickWindowById in interface IDesktopWindowManagerwindowId - id of the window
public java.lang.String getQuickWindowName(int windowId)
IDesktopWindowManager
getQuickWindowName in interface IDesktopWindowManagerwindowId - id of window
public QuickWidget getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
java.lang.String value)
IDesktopWindowManager
getQuickWidget in interface IDesktopWindowManagertype - what typewindowId - window id of the window containing the widgetproperty - property specified for the searchvalue - value of property given
public QuickWidget getQuickWidget(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType property,
java.lang.String value,
java.lang.String parentName)
IDesktopWindowManager
getQuickWidget in interface IDesktopWindowManagertype - what typewindowId - window id of the window containing the widgetproperty - property specified for the searchvalue - value of property givenparentName - Name of the widgets parent widget
public QuickWidget getQuickWidgetByPos(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int id,
int row,
int column)
IDesktopWindowManager
getQuickWidgetByPos in interface IDesktopWindowManagertype - what typeid - window id of the window containing the widgetrow - row of the widgetcolumn - column of the widget
public QuickWidget getQuickWidgetByPos(DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type,
int windowId,
int row,
int column,
java.lang.String parentName)
IDesktopWindowManager
getQuickWidgetByPos in interface IDesktopWindowManagertype - what typewindowId - window id of the window containing the widgetrow - row of the widgetcolumn - column of the widgetparentName - Name of the widgets parent widget
public java.util.List<QuickWidget> getQuickWidgetList(int windowId)
IDesktopWindowManager
getQuickWidgetList in interface IDesktopWindowManagerwindowId - id of window
public QuickMenu getQuickMenu(java.lang.String menuName)
IDesktopWindowManager
getQuickMenu in interface IDesktopWindowManagermenuName - the menu's name
public java.util.List<QuickMenu> getQuickMenuList()
getQuickMenuList in interface IDesktopWindowManagerpublic java.util.List<QuickMenuItem> getQuickMenuItemList()
getQuickMenuItemList in interface IDesktopWindowManager
public void pressQuickMenuItem(java.lang.String menuItemText,
boolean popMenu)
pressQuickMenuItem in interface IDesktopWindowManagerpublic QuickMenuItem getQuickMenuItemByAction(java.lang.String action)
IDesktopWindowManager
getQuickMenuItemByAction in interface IDesktopWindowManageraction - of the menu item to search for
public QuickMenuItem getQuickMenuItemBySubmenu(java.lang.String submenu)
IDesktopWindowManager
getQuickMenuItemBySubmenu in interface IDesktopWindowManagersubmenu - the name of the sub-menu the menu item opens when its selected/clicked
public QuickMenuItem getQuickMenuItemByText(java.lang.String text)
IDesktopWindowManager
getQuickMenuItemByText in interface IDesktopWindowManagertext - of the menu item to search for
public QuickMenuItem getQuickMenuItemByAccKey(java.lang.String key,
java.lang.String menuName)
IDesktopWindowManager
getQuickMenuItemByAccKey in interface IDesktopWindowManagerkey - 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 item
public QuickMenuItem getQuickMenuItemByShortcut(java.lang.String shortcut)
IDesktopWindowManager
getQuickMenuItemByShortcut in interface IDesktopWindowManagershortcut - string representation of the shortcut of the menuitem (i.e. "Ctrl+O")
public QuickMenuItem getQuickMenuItemByPosition(int row,
java.lang.String menuName)
IDesktopWindowManager
getQuickMenuItemByPosition in interface IDesktopWindowManagerrow - 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 in
public QuickMenuItem getQuickMenuItemByName(java.lang.String name)
getQuickMenuItemByName in interface IDesktopWindowManagername - 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 separators
public QuickMenu getQuickMenu(java.lang.String menuName,
int windowId)
getQuickMenu in interface IDesktopWindowManagermenuName - 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(java.lang.String name,
int window_id)
getQuickMenuItemByName in interface IDesktopWindowManagername - Name of the menuItemwindow_id - windowId of the window the menu of the item is in (note: only makes sense for
menu bar items)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||