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 java.lang.Object

OperaUIElement

Author:
Karianne Ekern (karie@opera.com)

Constructor Summary
OperaUIElement(SystemInputManager systemInputManager, IDesktopUtils desktopUtils)
           
 
Method Summary
 void click(SystemInputProtos.MouseInfo.MouseButton button, int numClicks, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
           
protected  java.awt.Point getCenterLocation()
           
protected  IDesktopUtils getDesktopUtils()
           
 java.awt.Point getLocation()
           
abstract  DesktopWmProtos.DesktopWindowRect getRect()
           
 java.awt.Dimension getSize()
           
protected  SystemInputManager getSystemInputManager()
           
abstract  java.lang.String getText()
           
 void hover()
          Hovers Element
 boolean isVisible()
           
abstract  java.lang.String toFullString()
           
 boolean verifyContainsText(java.lang.String stringId)
          Checks if widget text contains the text specified by the given string id
 boolean verifyText(java.lang.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 java.awt.Point getLocation()
Returns:
Point describing location of this element

isVisible

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

getSize

public java.awt.Dimension getSize()
Returns:
size of Element

toFullString

public abstract java.lang.String toFullString()

click

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

getCenterLocation

protected java.awt.Point getCenterLocation()

hover

public void hover()
Hovers Element


verifyText

public boolean verifyText(java.lang.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(java.lang.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 java.lang.String getText()


Copyright © 2011. All Rights Reserved.