public class OracleFormsTextField extends OracleFormsContainer implements IOracleFormsScrollable
Modifier | Constructor and Description |
---|---|
protected |
OracleFormsTextField(JtfObjectHandle handle,
Desktop desktop)
Creates a new OracleFormsTextField with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all the text from the text field.
|
int |
getCaretPosition()
Gets the position of the text insertion caret for the text field.
|
OracleFormsHorizontalScrollbar |
getHorizontalScrollbar()
Gets the horizontal scroll bar.
|
int |
getHorizontalScrollbarPageSize()
Gets the block increment value of the scroll bar.
|
int |
getHorizontalScrollbarPosition()
Gets the current position of the scroll bar.
|
Range |
getHorizontalScrollbarRange()
Gets the range value of the scroll bar.
|
int |
getHorizontalScrollbarStepSize()
Gets the unit increment value of the scroll bar.
|
String |
getPasswordChar()
Gets the character that is displayed instead of the characters that are actually typed, if the text field is a password text field.
|
String |
getSelectedText()
Gets the current selected text.
|
int |
getSelectionEnd()
Gets the end position of the selected text.
|
int |
getSelectionStart()
Gets the start position of the selected text.
|
String |
getText()
Gets the text of the text area.
|
OracleFormsVerticalScrollbar |
getVerticalScrollbar()
Gets the vertical scroll bar.
|
int |
getVerticalScrollbarPageSize()
Gets the block increment value of the scroll bar.
|
int |
getVerticalScrollbarPosition()
Gets the current position of the scroll bar.
|
Range |
getVerticalScrollbarRange()
Gets the range value of the scroll bar.
|
int |
getVerticalScrollbarStepSize()
Gets the unit increment value of the scroll bar.
|
void |
horizontalScrollbarPage(int pageCount)
Increments the current scroll position by specified number of pages.
|
void |
horizontalScrollbarScrollTo(int position)
Scrolls to the specified position.
|
void |
horizontalScrollbarScrollToMax()
Scrolls to the maximum position of the scroller.
|
void |
horizontalScrollbarScrollToMin()
Scrolls to the minimum position of the scroller.
|
void |
horizontalScrollbarStep(int stepCount)
Increments the current scroll position by specified steps.
|
boolean |
isEditable()
Gets whether the text of the text field can be changed by the user.
|
boolean |
isPassword()
Gets whether the text field is a password text field.
|
void |
selectAll()
Selects all the text in the text field.
|
void |
setCaretPosition(int index)
Sets the position of the text insertion caret for this text field.
|
void |
setSelectionRange(int selectionStart,
int selectionEnd)
Selects the text within the specified range.
|
void |
setText(String text)
Sets the text of the text field to the specified text.
|
void |
verticalScrollbarPage(int pageCount)
Increments the current scroll position by specified number of pages.
|
void |
verticalScrollbarScrollTo(int position)
Scrolls to the specified position.
|
void |
verticalScrollbarScrollToMax()
Scrolls to the maximum position of the scroller.
|
void |
verticalScrollbarScrollToMin()
Scrolls to the minimum position of the scroller.
|
void |
verticalScrollbarStep(int stepCount)
Increments the current scroll position by specified steps.
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAccessibleName, getAccessibleRole, getBackground, getCursor, getFont, getForeground, getHeight, getName, getNativeHandle, getWidth, isEnabled, isFocusable, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, scrollIntoView, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected OracleFormsTextField(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the OracleFormsTextFielddesktop
- the desktop on which this object livespublic void clear()
public OracleFormsHorizontalScrollbar getHorizontalScrollbar()
getHorizontalScrollbar
in interface IOracleFormsScrollable
public OracleFormsVerticalScrollbar getVerticalScrollbar()
getVerticalScrollbar
in interface IOracleFormsScrollable
public void horizontalScrollbarPage(int pageCount)
horizontalScrollbarPage
in interface IOracleFormsScrollable
pageCount
- the number of pages to incrementpublic void horizontalScrollbarScrollTo(int position)
horizontalScrollbarScrollTo
in interface IOracleFormsScrollable
position
- the position to scroll topublic void horizontalScrollbarScrollToMax()
horizontalScrollbarScrollToMax
in interface IOracleFormsScrollable
public void horizontalScrollbarScrollToMin()
horizontalScrollbarScrollToMin
in interface IOracleFormsScrollable
public void horizontalScrollbarStep(int stepCount)
horizontalScrollbarStep
in interface IOracleFormsScrollable
stepCount
- the number of steps to incrementpublic void selectAll()
public void setCaretPosition(int index)
index
- new position of the text insertion caret. The value is zero-based.public void setSelectionRange(int selectionStart, int selectionEnd)
selectionStart
- the start position of the selection. The value is zero-based.selectionEnd
- the end position of the selection. The value is zero-based.public void setText(String text)
text
- new text of the text fieldpublic void verticalScrollbarPage(int pageCount)
verticalScrollbarPage
in interface IOracleFormsScrollable
pageCount
- the number of pages to incrementpublic void verticalScrollbarScrollTo(int position)
verticalScrollbarScrollTo
in interface IOracleFormsScrollable
position
- the position to scroll topublic void verticalScrollbarScrollToMax()
verticalScrollbarScrollToMax
in interface IOracleFormsScrollable
public void verticalScrollbarScrollToMin()
verticalScrollbarScrollToMin
in interface IOracleFormsScrollable
public void verticalScrollbarStep(int stepCount)
verticalScrollbarStep
in interface IOracleFormsScrollable
stepCount
- the number of steps to incrementpublic int getCaretPosition()
public boolean isEditable()
public int getHorizontalScrollbarPageSize()
getHorizontalScrollbarPageSize
in interface IOracleFormsScrollable
public int getHorizontalScrollbarPosition()
getHorizontalScrollbarPosition
in interface IOracleFormsScrollable
public Range getHorizontalScrollbarRange()
getHorizontalScrollbarRange
in interface IOracleFormsScrollable
public int getHorizontalScrollbarStepSize()
getHorizontalScrollbarStepSize
in interface IOracleFormsScrollable
public boolean isPassword()
public String getPasswordChar()
public String getSelectedText()
public int getSelectionEnd()
public int getSelectionStart()
public String getText()
getText
in class TestObject
public int getVerticalScrollbarPageSize()
getVerticalScrollbarPageSize
in interface IOracleFormsScrollable
public int getVerticalScrollbarPosition()
getVerticalScrollbarPosition
in interface IOracleFormsScrollable
public Range getVerticalScrollbarRange()
getVerticalScrollbarRange
in interface IOracleFormsScrollable
public int getVerticalScrollbarStepSize()
getVerticalScrollbarStepSize
in interface IOracleFormsScrollable
Copyright 2009-2012 Micro Focus. All Rights Reserved.