Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | webMethods Mobile Designer Native User Interface Reference | Native User Interface (NativeUI) Objects | nUITextfieldElement
 
nUITextfieldElement
com.softwareag.mobile.runtime.nui.nUITextfieldElement
Use to display plain text in a label or for a block of text.
Usage Notes
*The following are platform-specific considerations:
Android
*By default, the HAlign attribute, which specifies the horizontal alignment of the text, is set to left.
*By default, the TextColor attribute, which specifies the text color, is set to white.
*For the ClipType attribute, Android devices support CLIP_TYPE_CLIP, which indicates that Android devices truncate the text if it is too long to display.
iOS
*By default, the HAlign attribute, which specifies the horizontal alignment of the text, is set to center.
*By default, the TextColor attribute, which specifies the text color, is set to black.
*For the ClipType attribute, iOS devices support CLIP_TYPE_ELLIPSIS, which indicates that iOS devices truncate the text that is too long to display and add an ellipsis to indicate the text has been truncated.
Example
This code sample displays plain text. Details on how the example code is rendered on various platforms follow the code sample.
view.add(new nUITextfieldElement(NUIID_MY_TEXTFIELD, "nUITextfieldElement"));
Platform
Platform-Specific Class and Visual Reference
Android
TextView
iOS
UILabel