Interface Texts

All Superinterfaces:
java.lang.Iterable<Text>

public interface Texts
extends java.lang.Iterable<Text>
The Texts interface acts as a parent object for all texts that can be accessed from a form. Individual texts are accessed using their text id. When the id is not a valid Java identifier e.g. it begins with a numeric, the element can only be accessed using the getText(String) method.

When running an event that forms part of a deployed component, only texts accessible from the component can be accessed.

All included texts can be iterated using the following code:

 for ( var text in Iterator(texts.iterator()) )
 {
    log(text.text);
 }   
 
Examples:
 text.Txt1.text = "Test";
 texts.getText("1001").text = "Hello world";
 event.owner.addMessageText(texts.message5);
 
Since:
V5.0
  • Method Summary

    Modifier and Type Method Description
    Text getText​(java.lang.String textId)
    Returns the Text with id textId.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • getText

      Text getText​(java.lang.String textId)
      Returns the Text with id textId.
      Since:
      V5.0