public class JSliderOperator extends JComponentOperator implements Timeoutable, Outputable
javax.swing.JSlider
component.
Modifier and Type | Class and Description |
---|---|
static class |
JSliderOperator.JSliderFinder
Checks component type.
|
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder
ContainerOperator.ContainerFinder
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
Modifier and Type | Field and Description |
---|---|
static int |
CLICK_SCROLL_MODEL
Deprecated.
All actions are prformed throw a
ScrollDriver registered
for this component, So this field is useless. |
static java.lang.String |
HORIZONTAL_ORIENTATION_DPROP_VALUE
Identifier for a "HORIZONTAL" value of "orientation" property.
|
static java.lang.String |
IS_INVERTED_DPROP
Identifier for a "inverted" property.
|
static java.lang.String |
MAXIMUM_DPROP
Identifier for a "maximum" property.
|
static java.lang.String |
MINIMUM_DPROP
Identifier for a "minimum" property.
|
static java.lang.String |
ORIENTATION_DPROP
Identifier for a "orientation" property.
|
static int |
PUSH_AND_WAIT_SCROLL_MODEL
Deprecated.
All actions are prformed throw a
ScrollDriver registered
for this component, So this field is useless. |
static java.lang.String |
VALUE_DPROP
Identifier for a "value" property.
|
static java.lang.String |
VERTICAL_ORIENTATION_DPROP_VALUE
Identifier for a "VERTICAL" value of "orientation" property.
|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
JSliderOperator(ContainerOperator cont)
Constructor.
|
JSliderOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JSliderOperator object.
|
JSliderOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JSliderOperator object.
|
JSliderOperator(ContainerOperator cont,
int index)
Constructor.
|
JSliderOperator(javax.swing.JSlider b)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener changeListener)
Maps
JSlider.addChangeListener(ChangeListener) through queue |
java.util.Hashtable |
createStandardLabels(int i)
Maps
JSlider.createStandardLabels(int) through queue |
java.util.Hashtable |
createStandardLabels(int i,
int i1)
Maps
JSlider.createStandardLabels(int, int) through queue |
static javax.swing.JSlider |
findJSlider(java.awt.Container cont)
Searches 0'th JSlider in container.
|
static javax.swing.JSlider |
findJSlider(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th JSlider in container.
|
static javax.swing.JSlider |
findJSlider(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches JSlider in container.
|
static javax.swing.JSlider |
findJSlider(java.awt.Container cont,
int index)
Searches JSlider in container.
|
java.util.Hashtable |
getDump()
Returns information about component.
|
int |
getExtent()
Maps
JSlider.getExtent() through queue |
boolean |
getInverted()
Maps
JSlider.getInverted() through queue |
java.util.Dictionary |
getLabelTable()
Maps
JSlider.getLabelTable() through queue |
int |
getMajorTickSpacing()
Maps
JSlider.getMajorTickSpacing() through queue |
int |
getMaximum()
Maps
JSlider.getMaximum() through queue |
int |
getMinimum()
Maps
JSlider.getMinimum() through queue |
int |
getMinorTickSpacing()
Maps
JSlider.getMinorTickSpacing() through queue |
javax.swing.BoundedRangeModel |
getModel()
Maps
JSlider.getModel() through queue |
int |
getOrientation()
Maps
JSlider.getOrientation() through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
boolean |
getPaintLabels()
Maps
JSlider.getPaintLabels() through queue |
boolean |
getPaintTicks()
Maps
JSlider.getPaintTicks() through queue |
boolean |
getPaintTrack()
Maps
JSlider.getPaintTrack() through queue |
int |
getScrollModel()
Deprecated.
All actions are prformed throw a
ScrollDriver registered
for this component, so value returned by this method is ignored. |
boolean |
getSnapToTicks()
Maps
JSlider.getSnapToTicks() through queue |
Timeouts |
getTimeouts()
Return current timeouts.
|
javax.swing.plaf.SliderUI |
getUI()
Maps
JSlider.getUI() through queue |
int |
getValue()
Maps
JSlider.getValue() through queue |
boolean |
getValueIsAdjusting()
Maps
JSlider.getValueIsAdjusting() through queue |
void |
removeChangeListener(javax.swing.event.ChangeListener changeListener)
Maps
JSlider.removeChangeListener(ChangeListener) through queue |
void |
scrollTo(ScrollAdjuster adj)
Scrolls slider to the position defined by a ScrollAdjuster implementation.
|
void |
scrollToMaximum()
Moves slider to the maximal value.
|
void |
scrollToMinimum()
Moves slider to the minimal value.
|
void |
scrollToValue(int value)
Moves slider to the necessary value.
|
void |
setExtent(int i)
Maps
JSlider.setExtent(int) through queue |
void |
setInverted(boolean b)
Maps
JSlider.setInverted(boolean) through queue |
void |
setLabelTable(java.util.Dictionary dictionary)
Maps
JSlider.setLabelTable(Dictionary) through queue |
void |
setMajorTickSpacing(int i)
Maps
JSlider.setMajorTickSpacing(int) through queue |
void |
setMaximum(int i)
Maps
JSlider.setMaximum(int) through queue |
void |
setMinimum(int i)
Maps
JSlider.setMinimum(int) through queue |
void |
setMinorTickSpacing(int i)
Maps
JSlider.setMinorTickSpacing(int) through queue |
void |
setModel(javax.swing.BoundedRangeModel boundedRangeModel)
Maps
JSlider.setModel(BoundedRangeModel) through queue |
void |
setOrientation(int i)
Maps
JSlider.setOrientation(int) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers.
|
void |
setPaintLabels(boolean b)
Maps
JSlider.setPaintLabels(boolean) through queue |
void |
setPaintTicks(boolean b)
Maps
JSlider.setPaintTicks(boolean) through queue |
void |
setPaintTrack(boolean b)
Maps
JSlider.setPaintTrack(boolean) through queue |
void |
setScrollModel(int model)
Deprecated.
All actions are prformed throw a
ScrollDriver registered
for this component, so value set by this method is ignored. |
void |
setSnapToTicks(boolean b)
Maps
JSlider.setSnapToTicks(boolean) through queue |
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts.
|
void |
setUI(javax.swing.plaf.SliderUI sliderUI)
Maps
JSlider.setUI(SliderUI) through queue |
void |
setValue(int i)
Maps
JSlider.setValue(int) through queue |
void |
setValueIsAdjusting(boolean b)
Maps
JSlider.setValueIsAdjusting(boolean) through queue |
static javax.swing.JSlider |
waitJSlider(java.awt.Container cont)
Waits 0'th JSlider in container.
|
static javax.swing.JSlider |
waitJSlider(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th JSlider in container.
|
static javax.swing.JSlider |
waitJSlider(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits JSlider in container.
|
static javax.swing.JSlider |
waitJSlider(java.awt.Container cont,
int index)
Waits JSlider in container.
|
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, waitToolTip
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, waitSubComponent
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, wtComponentEnabled
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
public static final java.lang.String MINIMUM_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String MAXIMUM_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String VALUE_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String ORIENTATION_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String HORIZONTAL_ORIENTATION_DPROP_VALUE
getDump()
,
Constant Field Valuespublic static final java.lang.String VERTICAL_ORIENTATION_DPROP_VALUE
getDump()
,
Constant Field Valuespublic static final java.lang.String IS_INVERTED_DPROP
public static final int CLICK_SCROLL_MODEL
ScrollDriver
registered
for this component, So this field is useless.setScrollModel(int)
,
Constant Field Valuespublic static final int PUSH_AND_WAIT_SCROLL_MODEL
ScrollDriver
registered
for this component, So this field is useless.setScrollModel(int)
,
Constant Field Valuespublic JSliderOperator(javax.swing.JSlider b)
b
- JSlider component.public JSliderOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JSliderOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JSliderOperator(ContainerOperator cont, int index)
cont
- Operator pointing a container to search component in.index
- Ordinal component index.TimeoutExpiredException
public JSliderOperator(ContainerOperator cont)
cont
- Operator pointing a container to search component in.TimeoutExpiredException
public static javax.swing.JSlider findJSlider(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.public static javax.swing.JSlider findJSlider(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static javax.swing.JSlider findJSlider(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.public static javax.swing.JSlider findJSlider(java.awt.Container cont)
cont
- Container to search component in.public static javax.swing.JSlider waitJSlider(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.TimeoutExpiredException
public static javax.swing.JSlider waitJSlider(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.TimeoutExpiredException
public static javax.swing.JSlider waitJSlider(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.TimeoutExpiredException
public static javax.swing.JSlider waitJSlider(java.awt.Container cont)
cont
- Container to search component in.TimeoutExpiredException
public void setScrollModel(int model)
ScrollDriver
registered
for this component, so value set by this method is ignored.model
- New scroll model value.CLICK_SCROLL_MODEL
,
PUSH_AND_WAIT_SCROLL_MODEL
,
getScrollModel()
,
scrollToValue(int)
public int getScrollModel()
ScrollDriver
registered
for this component, so value returned by this method is ignored.setScrollModel(int)
public void setOutput(TestOut out)
Outputable
setOutput
in interface Outputable
setOutput
in class JComponentOperator
out
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class JComponentOperator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public void setTimeouts(Timeouts timeouts)
Timeoutable
setTimeouts
in interface Timeoutable
setTimeouts
in class JComponentOperator
timeouts
- A collection of timeout assignments.Timeoutable.getTimeouts()
public Timeouts getTimeouts()
Timeoutable
getTimeouts
in interface Timeoutable
getTimeouts
in class JComponentOperator
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
public void scrollTo(ScrollAdjuster adj)
adj
- defines scrolling direction, and so on.TimeoutExpiredException
public void scrollToValue(int value)
value
- Value to move slider to.TimeoutExpiredException
public void scrollToMaximum()
TimeoutExpiredException
public void scrollToMinimum()
TimeoutExpiredException
public java.util.Hashtable getDump()
ComponentOperator
getDump
in class JComponentOperator
public void addChangeListener(javax.swing.event.ChangeListener changeListener)
JSlider.addChangeListener(ChangeListener)
through queuepublic java.util.Hashtable createStandardLabels(int i)
JSlider.createStandardLabels(int)
through queuepublic java.util.Hashtable createStandardLabels(int i, int i1)
JSlider.createStandardLabels(int, int)
through queuepublic int getExtent()
JSlider.getExtent()
through queuepublic boolean getInverted()
JSlider.getInverted()
through queuepublic java.util.Dictionary getLabelTable()
JSlider.getLabelTable()
through queuepublic int getMajorTickSpacing()
JSlider.getMajorTickSpacing()
through queuepublic int getMaximum()
JSlider.getMaximum()
through queuepublic int getMinimum()
JSlider.getMinimum()
through queuepublic int getMinorTickSpacing()
JSlider.getMinorTickSpacing()
through queuepublic javax.swing.BoundedRangeModel getModel()
JSlider.getModel()
through queuepublic int getOrientation()
JSlider.getOrientation()
through queuepublic boolean getPaintLabels()
JSlider.getPaintLabels()
through queuepublic boolean getPaintTicks()
JSlider.getPaintTicks()
through queuepublic boolean getPaintTrack()
JSlider.getPaintTrack()
through queuepublic boolean getSnapToTicks()
JSlider.getSnapToTicks()
through queuepublic javax.swing.plaf.SliderUI getUI()
JSlider.getUI()
through queuepublic int getValue()
JSlider.getValue()
through queuepublic boolean getValueIsAdjusting()
JSlider.getValueIsAdjusting()
through queuepublic void removeChangeListener(javax.swing.event.ChangeListener changeListener)
JSlider.removeChangeListener(ChangeListener)
through queuepublic void setExtent(int i)
JSlider.setExtent(int)
through queuepublic void setInverted(boolean b)
JSlider.setInverted(boolean)
through queuepublic void setLabelTable(java.util.Dictionary dictionary)
JSlider.setLabelTable(Dictionary)
through queuepublic void setMajorTickSpacing(int i)
JSlider.setMajorTickSpacing(int)
through queuepublic void setMaximum(int i)
JSlider.setMaximum(int)
through queuepublic void setMinimum(int i)
JSlider.setMinimum(int)
through queuepublic void setMinorTickSpacing(int i)
JSlider.setMinorTickSpacing(int)
through queuepublic void setModel(javax.swing.BoundedRangeModel boundedRangeModel)
JSlider.setModel(BoundedRangeModel)
through queuepublic void setOrientation(int i)
JSlider.setOrientation(int)
through queuepublic void setPaintLabels(boolean b)
JSlider.setPaintLabels(boolean)
through queuepublic void setPaintTicks(boolean b)
JSlider.setPaintTicks(boolean)
through queuepublic void setPaintTrack(boolean b)
JSlider.setPaintTrack(boolean)
through queuepublic void setSnapToTicks(boolean b)
JSlider.setSnapToTicks(boolean)
through queuepublic void setUI(javax.swing.plaf.SliderUI sliderUI)
JSlider.setUI(SliderUI)
through queuepublic void setValue(int i)
JSlider.setValue(int)
through queuepublic void setValueIsAdjusting(boolean b)
JSlider.setValueIsAdjusting(boolean)
through queue