Class JSpinnerOperator.ListSpinnerOperator
java.lang.Object
org.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JSpinnerOperator
org.netbeans.jemmy.operators.JSpinnerOperator.ListSpinnerOperator
- All Implemented Interfaces:
Outputable, Timeoutable
- Enclosing class:
JSpinnerOperator
Provides some specific functionality for
JSpinner
components having SpinnerListModel model.
Constructor of this object is private - it cannot be received only from
another JSpinnerOperator instance.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class JSpinnerOperator
JSpinnerOperator.DateScrollAdjuster, JSpinnerOperator.DateSpinnerOperator, JSpinnerOperator.ExactScrollAdjuster, JSpinnerOperator.JSpinnerByTextFinder, JSpinnerOperator.JSpinnerFinder, JSpinnerOperator.ListScrollAdjuster, JSpinnerOperator.ListSpinnerOperator, JSpinnerOperator.NumberScrollAdjuster, JSpinnerOperator.NumberSpinnerOperator, JSpinnerOperator.ObjectScrollAdjuster, JSpinnerOperator.SpinnerModelException, JSpinnerOperator.ToStringScrollAdjusterNested classes/interfaces inherited from class JComponentOperator
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinderNested classes/interfaces inherited from class ContainerOperator
ContainerOperator.ContainerFinderNested classes/interfaces inherited from class Operator
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator -
Field Summary
Fields inherited from class JSpinnerOperator
VALUE_DPROPFields inherited from class JComponentOperator
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROPFields inherited from class ComponentOperator
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPFields inherited from class Operator
CLASS_DPROP, TO_STRING_DPROP -
Method Summary
Modifier and TypeMethodDescriptionintLooks for an index of an item havingtoString()matching a specified pattern.intfindItem(String pattern, Operator.StringComparator comparator) Looks for an index of an item havingtoString()matching a specified pattern.Costs spinner's model toSpinnerListModel.voidscrollToIndex(int index) Scrolls to an item having specified instance.voidscrollToString(String pattern) Scrolls togetValue().toString()match a specified pattern.voidscrollToString(String pattern, Operator.StringComparator comparator) Scrolls togetValue().toString()match a specified pattern.Methods inherited from class JSpinnerOperator
addChangeListener, checkModel, commitEdit, findJSpinner, findJSpinner, findJSpinner, findJSpinner, getChangeListeners, getDateSpinner, getDecreaseOperator, getDump, getEditor, getIncreaseOperator, getListSpinner, getMaximum, getMinimum, getModel, getNextValue, getNumberSpinner, getOutput, getPreviousValue, getTimeouts, getUI, getValue, removeChangeListener, scrollTo, scrollToMaximum, scrollToMinimum, scrollToObject, scrollToString, scrollToString, setEditor, setModel, setOutput, setTimeouts, setUI, setValue, waitJSpinner, waitJSpinner, waitJSpinner, waitJSpinnerMethods inherited from class JComponentOperator
addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, findJComponent, findJComponent, findJComponent, findJComponent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getAutoscrolls, getBorder, getCenterXForClick, getCenterYForClick, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getInsets, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWindowContainerOperator, grabFocus, isFocusCycleRoot, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, showToolTip, unregisterKeyboardAction, updateUI, waitJComponent, waitJComponent, waitJComponent, waitJComponent, waitToolTipMethods inherited from class ContainerOperator
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponentMethods inherited from class ComponentOperator
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, copyEnvironment, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterY, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, makeComponentVisible, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, transferFocus, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabledMethods inherited from class Operator
addOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
-
Method Details
-
getListModel
Costs spinner's model toSpinnerListModel.- Returns:
- a spinner model.
-
findItem
Looks for an index of an item havingtoString()matching a specified pattern.- Parameters:
pattern- a string patterncomparator- a string comparision criteria.
-
findItem
Looks for an index of an item havingtoString()matching a specified pattern. Uses aStringComparatorassigned to the operator.- Parameters:
pattern- a string pattern
-
scrollToIndex
public void scrollToIndex(int index) Scrolls to an item having specified instance.- Parameters:
index- an index to scroll to.
-
scrollToString
Scrolls togetValue().toString()match a specified pattern.- Parameters:
pattern- a string patterncomparator- a string comparision criteria.
-
scrollToString
Scrolls togetValue().toString()match a specified pattern. Uses aStringComparatorassigned to the operator.- Parameters:
pattern- a string pattern
-