|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JSliderOperator
public class JSliderOperator
Covers javax.swing.JSlider
component.
Timeouts used:
JSliderOperator.WholeScrollTimeout - time for the whole scrolling.
JSliderOperator.ScrollingDelta - time delta to verify result durong scrolling.
Nested Class Summary | |
---|---|
static class |
JSliderOperator.JSliderFinder
Checks component type. |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator |
---|
ContainerOperator.ContainerFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator |
---|
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapCharacterAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator |
Field Summary | |
---|---|
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. |
Fields inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.ComponentOperator |
---|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.Operator |
---|
CLASS_DPROP, TO_STRING_DPROP |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.netbeans.jemmy.operators.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, waitSubComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 ValuesConstructor Detail |
---|
public 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
Method Detail |
---|
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 queue
public java.util.Hashtable createStandardLabels(int i)
JSlider.createStandardLabels(int)
through queue
public java.util.Hashtable createStandardLabels(int i, int i1)
JSlider.createStandardLabels(int, int)
through queue
public int getExtent()
JSlider.getExtent()
through queue
public boolean getInverted()
JSlider.getInverted()
through queue
public java.util.Dictionary getLabelTable()
JSlider.getLabelTable()
through queue
public int getMajorTickSpacing()
JSlider.getMajorTickSpacing()
through queue
public int getMaximum()
JSlider.getMaximum()
through queue
public int getMinimum()
JSlider.getMinimum()
through queue
public int getMinorTickSpacing()
JSlider.getMinorTickSpacing()
through queue
public javax.swing.BoundedRangeModel getModel()
JSlider.getModel()
through queue
public int getOrientation()
JSlider.getOrientation()
through queue
public boolean getPaintLabels()
JSlider.getPaintLabels()
through queue
public boolean getPaintTicks()
JSlider.getPaintTicks()
through queue
public boolean getPaintTrack()
JSlider.getPaintTrack()
through queue
public boolean getSnapToTicks()
JSlider.getSnapToTicks()
through queue
public javax.swing.plaf.SliderUI getUI()
JSlider.getUI()
through queue
public int getValue()
JSlider.getValue()
through queue
public boolean getValueIsAdjusting()
JSlider.getValueIsAdjusting()
through queue
public void removeChangeListener(javax.swing.event.ChangeListener changeListener)
JSlider.removeChangeListener(ChangeListener)
through queue
public void setExtent(int i)
JSlider.setExtent(int)
through queue
public void setInverted(boolean b)
JSlider.setInverted(boolean)
through queue
public void setLabelTable(java.util.Dictionary dictionary)
JSlider.setLabelTable(Dictionary)
through queue
public void setMajorTickSpacing(int i)
JSlider.setMajorTickSpacing(int)
through queue
public void setMaximum(int i)
JSlider.setMaximum(int)
through queue
public void setMinimum(int i)
JSlider.setMinimum(int)
through queue
public void setMinorTickSpacing(int i)
JSlider.setMinorTickSpacing(int)
through queue
public void setModel(javax.swing.BoundedRangeModel boundedRangeModel)
JSlider.setModel(BoundedRangeModel)
through queue
public void setOrientation(int i)
JSlider.setOrientation(int)
through queue
public void setPaintLabels(boolean b)
JSlider.setPaintLabels(boolean)
through queue
public void setPaintTicks(boolean b)
JSlider.setPaintTicks(boolean)
through queue
public void setPaintTrack(boolean b)
JSlider.setPaintTrack(boolean)
through queue
public void setSnapToTicks(boolean b)
JSlider.setSnapToTicks(boolean)
through queue
public void setUI(javax.swing.plaf.SliderUI sliderUI)
JSlider.setUI(SliderUI)
through queue
public void setValue(int i)
JSlider.setValue(int)
through queue
public void setValueIsAdjusting(boolean b)
JSlider.setValueIsAdjusting(boolean)
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |