Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

util
Class UITools

java.lang.Object
  |
  +--util.UITools

public class UITools
extends Object


Constructor Summary
UITools(XMultiServiceFactory msf, XModel xModel)
           
UITools(XMultiServiceFactory msf, XWindow xWindow)
           
 
Method Summary
 boolean activateToggleButton(String buttonName)
          Activates toggle button via Accessibility
 void clickButton(String buttonName)
          Helper method: gets button via accessibility and 'click' it
 boolean deactivateToggleButton(String buttonName)
          Deactivates toggle button via Accessibility
 XWindow getActiveTopWindow()
           
 Integer getCheckBoxValue(String CheckBoxName)
          returns the value of the named check box
 XInterface getGraphic(String GraphicName)
           
 String[] getListBoxItems(String ListBoxName)
          Helper method: returns the entries of a List-Box
 Double getNumericFieldNumericValue(String NumericFieldName)
          returns the numeric value of a numeric filed.
 String getNumericFieldValue(String NumericFieldName)
          returns the value of a numeric field
 Integer getRadioButtonValue(String buttonName)
          returns the value of named radio button
 XAccessible getRoot()
           
 String getTextBoxText(String TextFieldName)
          returns the content of an TextBox
 void printAccessibleTree(PrintWriter log)
           
 void selectListboxItem(String ListBoxName, int nChildIndex)
          select an item in nanmed listbox
 void setCheckBoxValue(String CheckBoxName, Integer Value)
          set the value to the named check box
 void setNumericFieldValue(String NumericFieldName, String cValue)
          set some Text into an Text Field
 void setRadioButtonValue(String buttonName, int iValue)
           
 void setTextEditFiledText(String textfiledName, String stringToSet)
          Helper mathod: set a text into AccessibleEdit field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UITools

public UITools(XMultiServiceFactory msf,
               XModel xModel)

UITools

public UITools(XMultiServiceFactory msf,
               XWindow xWindow)
Method Detail

getRoot

public XAccessible getRoot()

setTextEditFiledText

public void setTextEditFiledText(String textfiledName,
                                 String stringToSet)
                          throws Exception
Helper mathod: set a text into AccessibleEdit field

clickButton

public void clickButton(String buttonName)
                 throws Exception
Helper method: gets button via accessibility and 'click' it

deactivateToggleButton

public boolean deactivateToggleButton(String buttonName)
Deactivates toggle button via Accessibility
Parameters:
buttonName - The name of the button in the Accessibility tree
Returns:
true if the button could be set to deactivated

activateToggleButton

public boolean activateToggleButton(String buttonName)
Activates toggle button via Accessibility
Parameters:
buttonName - The name of the button in the Accessibility tree
Returns:
true if the button could be set to activated

getRadioButtonValue

public Integer getRadioButtonValue(String buttonName)
                            throws Exception
returns the value of named radio button

getGraphic

public XInterface getGraphic(String GraphicName)
                      throws Exception

setRadioButtonValue

public void setRadioButtonValue(String buttonName,
                                int iValue)
                         throws Exception

selectListboxItem

public void selectListboxItem(String ListBoxName,
                              int nChildIndex)
                       throws Exception
select an item in nanmed listbox

getListBoxItems

public String[] getListBoxItems(String ListBoxName)
                         throws Exception
Helper method: returns the entries of a List-Box

setNumericFieldValue

public void setNumericFieldValue(String NumericFieldName,
                                 String cValue)
                          throws Exception
set some Text into an Text Field

getNumericFieldValue

public String getNumericFieldValue(String NumericFieldName)
                            throws Exception
returns the value of a numeric field

getNumericFieldNumericValue

public Double getNumericFieldNumericValue(String NumericFieldName)
                                   throws Exception
returns the numeric value of a numeric filed. This is needed ie. for fileds include the moneytary unit.

getTextBoxText

public String getTextBoxText(String TextFieldName)
                      throws Exception
returns the content of an TextBox

setCheckBoxValue

public void setCheckBoxValue(String CheckBoxName,
                             Integer Value)
                      throws Exception
set the value to the named check box

getCheckBoxValue

public Integer getCheckBoxValue(String CheckBoxName)
                         throws Exception
returns the value of the named check box

getActiveTopWindow

public XWindow getActiveTopWindow()
                           throws Exception

printAccessibleTree

public void printAccessibleTree(PrintWriter log)

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.