com.appperfect.devcommon.script.javaelement
Interface SwingPasswordField

All Superinterfaces:
AwtComponent, AwtContainer, IScript, JavaComponent, SwingComponent, SwingTextComponent, SwingTextField

public interface SwingPasswordField
extends SwingTextField

SwingPasswordField is created to represent javax.swing.JPasswordField component

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

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


Method Summary
 java.lang.String getEchoChar()
 Gets the character that is to be used for echoing.
 java.lang.String getPassword()
 Returns the password text contained in this password field
 boolean setEchoChar(java.lang.String echoChar)
 Sets the echo character for this text field.
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.SwingTextField
getColumns, setColumns
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.SwingTextComponent
getCaretPos, getSelectedText, getSelectionEnd, getSelectionStart, isEditable, setCaretPos, setEditable, setSelection
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtContainer
getComponentCount
 
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

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.

getPassword

java.lang.String getPassword()
Returns the password text contained in this password field

Returns:
the password text

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.