public class Action
extends java.lang.Object
setState
or getState
methods of TestObjects
that implement
ISubitem
.
These values describe changes in the state of the object in
the software under test.
TestObject
,
which is the base class for all TestObjects
, does not support the setState
or
getState
methods.Modifier and Type | Method and Description |
---|---|
static Action |
check()
Creates a
CHECK action object. |
static Action |
collapse()
Creates a
COLLAPSE action object. |
static Action |
collapseAndExtendSelect()
Creates a
COLLAPSE_AND_EXTENDSELECT action object. |
static Action |
collapseAndSelect()
Creates a
COLLAPSE_AND_SELECT action object. |
static Action |
construct(int action,
int value)
Serializes an
Action object;
this method should not be used directly. |
static Action |
deselect()
Creates a
DESELECT action object. |
static Action |
deselectAll()
Creates a
DESELECT_ALL action object. |
static Action |
expand()
Creates an
EXPAND action object. |
static Action |
expandAndExtendSelect()
Creates an
EXPAND_AND_EXTENDSELECT action object. |
static Action |
expandAndSelect()
Creates an
EXPAND_AND_SELECT action object. |
static Action |
extendSelect()
Creates an
EXTEND_SELECT action object. |
int |
getAction()
Serializes an
Action object;
this method should not be used directly. |
java.lang.String |
getActionImage()
Accesses the subitem value.
|
int |
getHScrollPosition()
Returns the target scroll position for a horizontal
scroll action.
|
int |
getValue()
Serializes a
Value object;
this method should not be used directly. |
int |
getVScrollPosition()
Returns the target scroll position for a vertical
scroll action.
|
static Action |
hScroll(int toPosition)
Creates an
HSCROLL (that is, horizontal scroll)
action object. |
boolean |
isCheck()
Returns
true if this action represents a
CHECK action. |
boolean |
isCollapse()
Returns
true if this action represents a
COLLAPSE action. |
boolean |
isCollapseAndExtendSelect()
Returns
true if this action represents a
COLLAPSE_AND_EXTENDSELECT action. |
boolean |
isCollapseAndSelect()
Returns
true if this action represents a
COLLAPSE_AND_SELECT action. |
boolean |
isDeselect()
Returns
true if this action represents a
DESELECT action. |
boolean |
isDeselectAll()
Returns
true if this action represents a
DESELECT_ALL action. |
boolean |
isExpand()
Returns
true if this action represents an
EXPAND action. |
boolean |
isExpandAndExtendSelect()
Returns
true if this action represents an
EXPAND_AND_EXTENDSELECT action. |
boolean |
isExpandAndSelect()
Returns
true if this action represents an
EXPAND_AND_SELECT action. |
boolean |
isExtendSelect()
Returns
true if this action represents an
EXTEND_SELECT action. |
boolean |
isHScroll()
Returns
true if this action represents an
HSCROLL action. |
boolean |
isScrollAction()
Returns
true if this action represents any of the scrolling actions. |
boolean |
isScrollLineDown()
Returns
true if this action represents a
SCROLL_LINEDOWN action. |
boolean |
isScrollLineLeft()
Returns
true if this action represents a
SCROLL_LINELEFT action. |
boolean |
isScrollLineRight()
Returns
true if this action represents a
SCROLL_LINERIGHT action object. |
boolean |
isScrollLineUp()
Returns
true if this action represents a
SCROLL_LINEUP action. |
boolean |
isScrollPageDown()
Returns
true if this action represents a
SCROLL_PAGEDOWN action. |
boolean |
isScrollPageLeft()
Returns
true if this action represents a
SCROLL_PAGELEFT action. |
boolean |
isScrollPageRight()
Returns
true if this action represents a
SCROLL_PAGERIGHT action. |
boolean |
isScrollPageUp()
Returns
true if this action represents a
SCROLL_PAGEUP action. |
boolean |
isSelect()
Returns
true if this action represents a
SELECT action. |
boolean |
isUncheck()
Returns
true if this action represents an
UNCHECK action. |
boolean |
isUndetermined()
Returns
true if this action represents an
UNDETERMINED action. |
boolean |
isVScroll()
Returns
true if this action represents a
VSCROLL action. |
static Action |
scrollLineDown()
Creates a
SCROLL_LINEDOWN action object. |
static Action |
scrollLineLeft()
Creates a
SCROLL_LINELEFT action object. |
static Action |
scrollLineRight()
Creates a
SCROLL_LINERIGHT action object. |
static Action |
scrollLineUp()
Creates a
SCROLL_LINEUP action object. |
static Action |
scrollPageDown()
Creates a
SCROLL_PAGEDOWN action object. |
static Action |
scrollPageLeft()
Creates a
SCROLL_PAGELEFT action object. |
static Action |
scrollPageRight()
Creates a
SCROLL_PAGERIGHT action object. |
static Action |
scrollPageUp()
Creates a
SCROLL_PAGEUP action object. |
static Action |
select()
Creates a
SINGLE_SELECT action object. |
java.lang.String |
toString()
Sets
toString to the value that this class represents. |
static Action |
uncheck()
Creates an
UNCHECK action object. |
static Action |
undetermined()
Creates an
UNDETERMINED action object. |
static Action |
vScroll(int toPosition)
Creates a
VSCROLL (that is, vertical scroll)
action object. |
public java.lang.String getActionImage()
public static Action select()
SINGLE_SELECT
action object.public boolean isSelect()
true
if this action represents a
SELECT
action.public static Action deselect()
DESELECT
action object.public boolean isDeselect()
true
if this action represents a
DESELECT
action.public static Action extendSelect()
EXTEND_SELECT
action object.public boolean isExtendSelect()
true
if this action represents an
EXTEND_SELECT
action.public static Action deselectAll()
DESELECT_ALL
action object.public boolean isDeselectAll()
true
if this action represents a
DESELECT_ALL
action.public static Action check()
CHECK
action object.public boolean isCheck()
true
if this action represents a
CHECK
action.public static Action uncheck()
UNCHECK
action object.public boolean isUncheck()
true
if this action represents an
UNCHECK
action.public static Action undetermined()
UNDETERMINED
action object.public boolean isUndetermined()
true
if this action represents an
UNDETERMINED
action.public boolean isScrollAction()
true
if this action represents any of the scrolling actions.public static Action vScroll(int toPosition)
VSCROLL
(that is, vertical scroll)
action object.public boolean isVScroll()
true
if this action represents a
VSCROLL
action.public int getVScrollPosition()
public static Action hScroll(int toPosition)
HSCROLL
(that is, horizontal scroll)
action object.public boolean isHScroll()
true
if this action represents an
HSCROLL
action.public int getHScrollPosition()
public static Action scrollPageUp()
SCROLL_PAGEUP
action object.public boolean isScrollPageUp()
true
if this action represents a
SCROLL_PAGEUP
action.public static Action scrollPageDown()
SCROLL_PAGEDOWN
action object.public boolean isScrollPageDown()
true
if this action represents a
SCROLL_PAGEDOWN
action.public static Action scrollPageLeft()
SCROLL_PAGELEFT
action object.public boolean isScrollPageLeft()
true
if this action represents a
SCROLL_PAGELEFT
action.public static Action scrollPageRight()
SCROLL_PAGERIGHT
action object.public boolean isScrollPageRight()
true
if this action represents a
SCROLL_PAGERIGHT
action.public static Action scrollLineUp()
SCROLL_LINEUP
action object.public boolean isScrollLineUp()
true
if this action represents a
SCROLL_LINEUP
action.public static Action scrollLineDown()
SCROLL_LINEDOWN
action object.public boolean isScrollLineDown()
true
if this action represents a
SCROLL_LINEDOWN
action.public static Action scrollLineLeft()
SCROLL_LINELEFT
action object.public boolean isScrollLineLeft()
true
if this action represents a
SCROLL_LINELEFT
action.public static Action scrollLineRight()
SCROLL_LINERIGHT
action object.public boolean isScrollLineRight()
true
if this action represents a
SCROLL_LINERIGHT
action object.public static Action expand()
EXPAND
action object.public boolean isExpand()
true
if this action represents an
EXPAND
action.public static Action expandAndSelect()
EXPAND_AND_SELECT
action object.public boolean isExpandAndSelect()
true
if this action represents an
EXPAND_AND_SELECT
action.public static Action expandAndExtendSelect()
EXPAND_AND_EXTENDSELECT
action object.public boolean isExpandAndExtendSelect()
true
if this action represents an
EXPAND_AND_EXTENDSELECT
action.public static Action collapse()
COLLAPSE
action object.public boolean isCollapse()
true
if this action represents a
COLLAPSE
action.public static Action collapseAndSelect()
COLLAPSE_AND_SELECT
action object.public boolean isCollapseAndSelect()
true
if this action represents a
COLLAPSE_AND_SELECT
action.public static Action collapseAndExtendSelect()
COLLAPSE_AND_EXTENDSELECT
action object.public boolean isCollapseAndExtendSelect()
true
if this action represents a
COLLAPSE_AND_EXTENDSELECT
action.public static Action construct(int action, int value)
Action
object;
this method should not be used directly.public int getAction()
Action
object;
this method should not be used directly.public int getValue()
Value
object;
this method should not be used directly.public java.lang.String toString()
toString
to the value that this class represents.toString
in class java.lang.Object