|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.extensions.xml.elements.AbstractTagHandler
junit.extensions.jfcunit.eventdata.BaseEventDataTagHandler
junit.extensions.jfcunit.eventdata.MouseWheelEventDataTagHandler
This element implements the mouse wheel movement.
Invokes the junit.extensions.jfcunit.TestHelper.mouseWheel() method with the parameters given by this element.
To use the wheel task, set the refid attribute to the name of the component which has been found.
| Attribute | Description | Required | Default |
| refid | Id of a object reference which has been previously found. | Yes | N/A |
| amount | The number of units that should be scrolled in response to this event. | No | 3 |
| rotation | The number of "clicks" the mouse wheel was rotated. | No | 1 |
<wheel
refid="ScrollPane"
amount="3"
rotation="50"
/>
MouseWheelEventData| Field Summary |
| Fields inherited from class junit.extensions.jfcunit.eventdata.BaseEventDataTagHandler |
|
| Fields inherited from class junit.extensions.xml.elements.AbstractTagHandler |
|
| Fields inherited from interface junit.extensions.jfcunit.eventdata.EventDataConstants |
CENTER, CUSTOM, DEFAULT_HOLDTIME, DEFAULT_ISPOPUPTRIGGER, DEFAULT_KEY_MODIFIERS, DEFAULT_MOUSE_MODIFIERS, DEFAULT_NUMBEROFCLICKS, DEFAULT_POPUP_MODIFIERS, DEFAULT_POSITION, DEFAULT_SCROLL_AMOUNT, DEFAULT_SLEEPTIME, DEFAULT_WHEEL_ROTATION, DOWN_ARROW_SUBCOMPONENT, EAST, EDITOR_SUBCOMPONENT, INVALID_SUBCOMPONENT, INVALID_TEXT_OFFSET, NORTH, NORTH_EAST, NORTH_WEST, OFFSET, PERCENT, POSITIONSTRINGS, SOUTH, SOUTH_EAST, SOUTH_WEST, UP_ARROW_SUBCOMPONENT, WEST |
| Fields inherited from interface junit.extensions.jfcunit.xml.JFCXMLConstants |
ALT, ALTGR, AMOUNT, ASSERTEXIT, AWTTHREAD, BUTTON1, BUTTON2, BUTTON3, CASEINDEPENDENT, CLASS, CLICK, CLICKS, CODE, CONTAINER, CONTAINS, CTRL, DESTINATION, DOWN, DRAG, DURATION, EDITOR, ENDSWITH, EQUALS, FIND, FINDER, FLUSH, ICONDESCRIPTION, ICONFILE, INDEXDELIMITER, INDEXES, KEY, LABEL, MATCH, META, MODIFIERS, NODEVALUE, OPERATION, PATH, PATHDELIMITER, PAUSE, POINT, POPUPTRIGGER, POSITION, RECORDING, REFERENCE, RESUME, ROBOT, ROTATION, SHIFT, SHOW, SLEEP, SLEEPTIME, SOURCE, STARTSWITH, STRING, SUBCOMPONENT, TERMINATOR, TITLE, UP, WAIT |
| Fields inherited from interface junit.extensions.xml.XMLConstants |
ACTION, ACTUALOBJ, ACTUALREFID, ADD, ASSERTENABLED, ASSERTEQUALS, ASSERTNOTEQUALS, ASSERTNOTNULL, ASSERTNOTSAME, ASSERTNULL, ASSERTSAME, CALL, CASE, CHOOSE, CLASSNAME, COLUMN, CONFIRM, DEBUG, DEFAULT, DELIMITER, DIALOG, DUMP, ECHO, ENABLED, ENCODING, EVALUATE, EXPECTEDOBJ, EXPECTEDREFID, FAIL, FILE, FOCUS, FOREACH, ID, INDEX, JFCFILELOC, LESSTHAN, LISTITEM, LOG, MARK, MESSAGE, METHOD, MODE, NAME, OTHERWISE, PATHREFID, PROCEDURE, PROPERTY, RECURSIVE, REFID, RELATIVE, REMOVE, ROW, SAVE, STDERR, STDOUT, STOPWATCH, SUITE, SWITCH, TABLECELL, TAGHANDLERS, TAGNAME, TEST, TYPE, USERE, VALUE, WHEN, WHILE |
| Constructor Summary | |
MouseWheelEventDataTagHandler(org.w3c.dom.Element element,
IXMLTestCase testCase)
Constructor for MouseWheelEventDataTagHandler. |
|
| Method Summary | |
private int |
getAmount()
Get the amount from the XML. |
protected int |
getClicks()
Get the number of clicks. |
protected int |
getModifiers()
Get the modifiers for the mouse wheel event. |
private int |
getRotation()
Get the rotation of the wheel from the XML. |
void |
processElement()
This method is used to process the xml Element (i.e. |
void |
validateElement()
Sub-classes should implement this method to provide validation of the element attributes, etc. |
| Methods inherited from class junit.extensions.jfcunit.eventdata.BaseEventDataTagHandler |
getComponent, getEventData, getJFCTestCase, getModifiers, getOffset, getPopupTrigger, getPosition, getReference, getSleepTime, setEventData |
| Methods inherited from class junit.extensions.xml.elements.AbstractTagHandler |
checkAtLeastOneRequiredAttribute, checkAtLeastOneRequiredAttribute, checkElementTagName, checkOneRequiredAttribute, checkOneRequiredAttribute, checkRequiredAttribute, checkRequiredAttribute, getBoolean, getBoolean, getBoolean, getBoolean, getElement, getInt, getInt, getLong, getLong, getPoint, getPoint, getString, getString, getString, getString, getTagName, getTest, getTestCase, getXMLTestCase, getXMLTestSuite, resolveVariables |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MouseWheelEventDataTagHandler(org.w3c.dom.Element element,
IXMLTestCase testCase)
element - The element to be processedtestCase - The IXMLTestCase that uses this element| Method Detail |
public void processElement()
throws XMLException
AbstractTagHandler
processElement in class AbstractTagHandlerXMLException - Some kind of Exception might be thrown.AbstractTagHandler.processElement()
public void validateElement()
throws XMLException
AbstractTagHandler
validateElement in class BaseEventDataTagHandlerXMLException - when the required elements are not present.AbstractTagHandler.validateElement()protected int getClicks()
getClicks in class BaseEventDataTagHandlerprotected int getModifiers()
getModifiers in class BaseEventDataTagHandlerfor modifiers.private int getAmount()
private int getRotation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||