Skip to main content

4. Window class

Introduction

When an action is bound with a user interface application, it creates an object of class Window for each component at the XML descriptor with a ref-as attribute. Those components have the following methods:

Methods

getText

returns string

Gets the text value of the component.

setText

text: string

Change the text value of a component.

click

 

Acts as if the user clicks on the component. It's suitable on button components.

setFocus

 

Move the focus to the component.