com.appperfect.devcommon.script.javaelement
Interface AwtTextField

All Superinterfaces:
AwtComponent, AwtTextComponent, IScript, JavaComponent

public interface AwtTextField
extends AwtTextComponent

AwtTextField is created to represent java.awt.TextField component

The following code fragment illustrates how to create an AwtTextField element.

 var element = engine.createAwtTextField(1, 5);
 
where engine is object of IScriptEngine


Method Summary
 int getColumns()
 Gets the number of columns in this text field.
 java.lang.String getEchoChar()
 Gets the character that is to be used for echoing.
 boolean setColumns(int columns)
 Sets the number of columns in this text field.
 boolean setEchoChar(java.lang.String echoChar)
 Sets the echo character for this text field.
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtTextComponent
getCaretPos, getSelectedText, getSelectionEnd, getSelectionStart, isEditable, setCaretPos, setEditable, setSelection
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type
 
Methods inherited from interface com.appperfect.devcommon.script.IScript
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout
 

Method Detail

getColumns

int getColumns()
Gets the number of columns in this text field. A column is an approximate average character width that is platform-dependent.

Returns:
the number of columns.

getEchoChar

java.lang.String getEchoChar()
Gets the character that is to be used for echoing.

An echo character is useful for text fields where user input should not be echoed to the screen, as in the case of a text field for entering a password. If echoChar = 0, user input is echoed to the screen unchanged.

Returns:
the echo character for this text field.

setColumns

boolean setColumns(int columns)
Sets the number of columns in this text field. A column is an approximate average character width that is platform-dependent.

Parameters:
columns - the number of columns.
Returns:
true if event was executed successfully, returns false if there is any failure during execution

setEchoChar

boolean setEchoChar(java.lang.String echoChar)
Sets the echo character for this text field.

An echo character is useful for text fields where user input should not be echoed to the screen, as in the case of a text field for entering a password. Setting echoChar = 0 allows user input to be echoed to the screen again.

Parameters:
echoChar - the echo character for this text field.
Returns:
true if event was executed successfully, returns false if there is any failure during execution


Copyright © 2003-2011 AppPerfect Corporation. All Rights Reserved.