com.opera.core.systems
Class OperaUIElement

java.lang.Object
  extended by com.opera.core.systems.OperaUIElement
Direct Known Subclasses:
QuickMenuItem, QuickWidget

public abstract class OperaUIElement
extends Object

OperaUIElement

Author:
Karianne Ekern

Constructor Summary
OperaUIElement(SystemInputManager systemInputManager, IDesktopUtils desktopUtils)
           
 
Method Summary
 void click(SystemInputProtos.MouseInfo.MouseButton button, int numClicks, List<SystemInputProtos.ModifierPressed> modifiers)
           
protected  Point getCenterLocation()
           
protected  IDesktopUtils getDesktopUtils()
           
 Point getLocation()
           
abstract  DesktopWmProtos.DesktopWindowRect getRect()
           
 Dimension getSize()
           
protected  SystemInputManager getSystemInputManager()
           
abstract  String getText()
           
 void hover()
          Hovers Element
 boolean isVisible()
           
abstract  String toFullString()
           
 boolean verifyContainsText(String stringId)
          Checks if widget text contains the text specified by the given string id
 boolean verifyText(String stringId)
          Checks if widget text equals the text specified by the given string id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperaUIElement

public OperaUIElement(SystemInputManager systemInputManager,
                      IDesktopUtils desktopUtils)
Method Detail

getSystemInputManager

protected SystemInputManager getSystemInputManager()

getDesktopUtils

protected IDesktopUtils getDesktopUtils()

getRect

public abstract DesktopWmProtos.DesktopWindowRect getRect()

getLocation

public Point getLocation()
Returns:
Point describing location of this element

isVisible

public boolean isVisible()
Returns:
true if widget is visible, else false

getSize

public Dimension getSize()
Returns:
size of Element

toFullString

public abstract String toFullString()

click

public void click(SystemInputProtos.MouseInfo.MouseButton button,
                  int numClicks,
                  List<SystemInputProtos.ModifierPressed> modifiers)

getCenterLocation

protected Point getCenterLocation()

hover

public void hover()
Hovers Element


verifyText

public boolean verifyText(String stringId)
Checks if widget text equals the text specified by the given string id

Returns:
true if text specified by stringId equals widget text

verifyContainsText

public boolean verifyContainsText(String stringId)
Checks if widget text contains the text specified by the given string id

Parameters:
stringId - String id of string
Returns:
true if text specified by stringId is contained in widget text

getText

public abstract String getText()


Copyright © 2012. All Rights Reserved.