com.appperfect.devcommon.script.javaelement
Interface SwingTextField
- All Superinterfaces:
- AwtComponent, AwtContainer, IScript, JavaComponent, SwingComponent, SwingTextComponent
- All Known Subinterfaces:
- SwingPasswordField
public interface SwingTextField
- extends SwingTextComponent
SwingTextField is created to represent javax.swing.JTextField component
The following code fragment illustrates how to create an
SwingTextField
element.
var element = engine.createSwingTextField(1, 5);
where engine is object of IScriptEngine
Method Summary |
int |
getColumns()
Gets the number of columns in this text field. |
boolean |
setColumns(int columns)
Sets the number of columns in this text field. |
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 |
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.
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
Copyright © 2003-2011 AppPerfect Corporation. All Rights Reserved.