The Robot Application Programming Interface Delegate Project
RAPID Logo

TextInputDialog Class Reference

Inheritance diagram for TextInputDialog:
Collaboration diagram for TextInputDialog:

List of all members.

Public Member Functions

 TextInputDialog (String title, String prompt)
 TextInputDialog (String title, String prompt, String initialText)
 TextInputDialog (String title, String prompt, String initialText, String[] textOptions)
String getValue (boolean trimWhitespace)
 get the string that was in the input dialog when Ok was pressed.
String getValue ()
 get the string that was in the input dialog when Ok was pressed.

Public Attributes

int dialogWidth = 600

Protected Member Functions

Control createDialogArea (Composite parent)
void configureShell (Shell shell)
void okPressed ()

Package Attributes

Label m_label
Combo m_textCombo
final String m_dialogTitle
final String m_labelText
final String m_initialText
final String[] m_textOptions
boolean m_trimWhitespace = true
String m_value = null

Detailed Description

Author:
mallan

Constructor & Destructor Documentation

TextInputDialog ( String  title,
String  prompt 
)
TextInputDialog ( String  title,
String  prompt,
String  initialText 
)
TextInputDialog ( String  title,
String  prompt,
String  initialText,
String[]  textOptions 
)

Member Function Documentation

void configureShell ( Shell  shell) [protected]
Control createDialogArea ( Composite  parent) [protected]
String getValue ( )

If user pressed Cancel instead, this will return null

String getValue ( boolean  trimWhitespace)

If user pressed Cancel instead, this will return null

Parameters:
trimWhitespaceremove leading and trailing whitespace from value
void okPressed ( ) [protected]

Member Data Documentation

int dialogWidth = 600
final String m_dialogTitle [package]
final String m_initialText [package]
Label m_label [package]
final String m_labelText [package]
Combo m_textCombo [package]
final String [] m_textOptions [package]
boolean m_trimWhitespace = true [package]
String m_value = null [package]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines