# 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

<div id="bkmrk-gettext-returns-stri"><table class="confluenceTable"><colgroup><col></col><col></col><col></col></colgroup><tbody><tr><td class="confluenceTd">getText

</td><td class="confluenceTd">returns string

</td><td class="confluenceTd">Gets the text value of the component.

</td></tr><tr><td class="confluenceTd">setText

</td><td class="confluenceTd">text: string

</td><td class="confluenceTd">Change the text value of a component.

</td></tr><tr><td class="confluenceTd">click

</td><td class="confluenceTd"></td><td class="confluenceTd">Acts as if the user clicks on the component. It's suitable on button components.

</td></tr><tr><td class="confluenceTd">setFocus

</td><td class="confluenceTd"></td><td class="confluenceTd">Move the focus to the component.

</td></tr></tbody></table>

</div>