Package com.ebasetech.xi.api
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
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getText
Returns theText
with idtextId
.- Since:
- V5.0
-