|
|||||||||
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.JScrollBarOperator
public class JScrollBarOperator
Operator is supposed to be used to operate with an instance of
javax.swing.JScrollBar class.
Timeouts used:
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
JScrollBarOperator.BeforeDropTimeout - to sleep before drop
JScrollBarOperator.DragAndDropScrollingDelta - to sleep before drag steps
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.
Timeouts
Nested Class Summary | |
---|---|
static class |
JScrollBarOperator.JScrollBarFinder
Checks component type. |
static interface |
JScrollBarOperator.ScrollChecker
Interface can be used to define some kind of complicated scrolling rules. |
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.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator |
Field Summary | |
---|---|
static String |
HORIZONTAL_ORIENTATION_DPROP_VALUE
Identifier for a "HORIZONTAL" value of "orientation" property. |
static String |
MAXIMUM_DPROP
Identifier for a "maximum" property. |
static String |
MINIMUM_DPROP
Identifier for a "minimum" property. |
static String |
ORIENTATION_DPROP
Identifier for a "orientation" property. |
static String |
VALUE_DPROP
Identifier for a "value" property. |
static 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 | |
---|---|
JScrollBarOperator(ContainerOperator cont)
Constructor. |
|
JScrollBarOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JScrollBarOperator object. |
|
JScrollBarOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JScrollBarOperator object. |
|
JScrollBarOperator(ContainerOperator cont,
int index)
Constructor. |
|
JScrollBarOperator(JScrollBar b)
Constructor. |
Method Summary | |
---|---|
void |
addAdjustmentListener(AdjustmentListener adjustmentListener)
Maps JScrollBar.addAdjustmentListener(AdjustmentListener) through queue |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts, visualizer) from another operator. |
static JScrollBar |
findJScrollBar(Container cont)
Searches 0'th JScrollBar in container. |
static JScrollBar |
findJScrollBar(Container cont,
ComponentChooser chooser)
Searches 0'th JScrollBar in container. |
static JScrollBar |
findJScrollBar(Container cont,
ComponentChooser chooser,
int index)
Searches JScrollBar in container. |
static JScrollBar |
findJScrollBar(Container cont,
int index)
Searches JScrollBar in container. |
int |
getBlockIncrement()
Maps JScrollBar.getBlockIncrement() through queue |
int |
getBlockIncrement(int i)
Maps JScrollBar.getBlockIncrement(int) through queue |
JButtonOperator |
getDecreaseButton()
Returns a button responsible for value decreasing. |
Hashtable |
getDump()
Returns information about component. |
JButtonOperator |
getIncreaseButton()
Returns a button responsible for value increasing. |
int |
getMaximum()
Maps JScrollBar.getMaximum() through queue |
int |
getMinimum()
Maps JScrollBar.getMinimum() through queue |
BoundedRangeModel |
getModel()
Maps JScrollBar.getModel() through queue |
int |
getOrientation()
Maps JScrollBar.getOrientation() through queue |
TestOut |
getOutput()
Returns print output streams or writers. |
Timeouts |
getTimeouts()
Return current timeouts. |
ScrollBarUI |
getUI()
Maps JScrollBar.getUI() through queue |
int |
getUnitIncrement()
Maps JScrollBar.getUnitIncrement() through queue |
int |
getUnitIncrement(int i)
Maps JScrollBar.getUnitIncrement(int) through queue |
int |
getValue()
Maps JScrollBar.getValue() through queue |
boolean |
getValueIsAdjusting()
Maps JScrollBar.getValueIsAdjusting() through queue |
int |
getVisibleAmount()
Maps JScrollBar.getVisibleAmount() through queue |
void |
removeAdjustmentListener(AdjustmentListener adjustmentListener)
Maps JScrollBar.removeAdjustmentListener(AdjustmentListener) through queue |
void |
scroll(boolean increase)
Deprecated. All scrolling is done through a ScrollDriver registered to this operator type. |
void |
scrollTo(JScrollBarOperator.ScrollChecker checker)
Scrolls scrollbar to the position defined by a ScrollChecker implementation. |
void |
scrollTo(ScrollAdjuster adj)
Scrolls scrollbar to the position defined by a ScrollAdjuster implementation. |
void |
scrollTo(Waitable w,
Object waiterParam,
boolean increase)
Scrolls scrollbar to the position defined by w parameter. |
void |
scrollToMaximum()
Scrolls to maximum value. |
void |
scrollToMinimum()
Scrolls to minimum value. |
void |
scrollToValue(double proportionalValue)
Scrolls scroll bar to necessary proportional value. |
void |
scrollToValue(int value)
Scrolls scroll bar to necessary value. |
void |
setBlockIncrement(int i)
Maps JScrollBar.setBlockIncrement(int) through queue |
void |
setMaximum(int i)
Maps JScrollBar.setMaximum(int) through queue |
void |
setMinimum(int i)
Maps JScrollBar.setMinimum(int) through queue |
void |
setModel(BoundedRangeModel boundedRangeModel)
Maps JScrollBar.setModel(BoundedRangeModel) through queue |
void |
setOrientation(int i)
Maps JScrollBar.setOrientation(int) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers. |
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts. |
void |
setUnitIncrement(int i)
Maps JScrollBar.setUnitIncrement(int) through queue |
void |
setValue(int i)
Maps JScrollBar.setValue(int) through queue |
void |
setValueIsAdjusting(boolean b)
Maps JScrollBar.setValueIsAdjusting(boolean) through queue |
void |
setValues(int i,
int i1,
int i2,
int i3)
Maps JScrollBar.setValues(int, int, int, int) through queue |
void |
setVisibleAmount(int i)
Maps JScrollBar.setVisibleAmount(int) through queue |
static JScrollBar |
waitJScrollBar(Container cont)
Waits 0'th JScrollBar in container. |
static JScrollBar |
waitJScrollBar(Container cont,
ComponentChooser chooser)
Waits 0'th JScrollBar in container. |
static JScrollBar |
waitJScrollBar(Container cont,
ComponentChooser chooser,
int index)
Waits JScrollBar in container. |
static JScrollBar |
waitJScrollBar(Container cont,
int index)
Waits JScrollBar 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 String MINIMUM_DPROP
getDump()
,
Constant Field Valuespublic static final String MAXIMUM_DPROP
getDump()
,
Constant Field Valuespublic static final String VALUE_DPROP
getDump()
,
Constant Field Valuespublic static final String ORIENTATION_DPROP
getDump()
,
Constant Field Valuespublic static final String HORIZONTAL_ORIENTATION_DPROP_VALUE
getDump()
,
Constant Field Valuespublic static final String VERTICAL_ORIENTATION_DPROP_VALUE
getDump()
,
Constant Field ValuesConstructor Detail |
---|
public JScrollBarOperator(JScrollBar b)
b
- JScrollBar component.public JScrollBarOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JScrollBarOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JScrollBarOperator(ContainerOperator cont, int index)
cont
- Operator pointing a container to search component in.index
- Ordinal component index.
TimeoutExpiredException
public JScrollBarOperator(ContainerOperator cont)
cont
- Operator pointing a container to search component in.
TimeoutExpiredException
Method Detail |
---|
public static JScrollBar findJScrollBar(Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.
public static JScrollBar findJScrollBar(Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.
public static JScrollBar findJScrollBar(Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.
public static JScrollBar findJScrollBar(Container cont)
cont
- Container to search component in.
public static JScrollBar waitJScrollBar(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 JScrollBar waitJScrollBar(Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.
TimeoutExpiredException
public static JScrollBar waitJScrollBar(Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.
TimeoutExpiredException
public static JScrollBar waitJScrollBar(Container cont)
cont
- Container to search component in.
TimeoutExpiredException
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 copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment
in class ComponentOperator
anotherOperator
- an operator to copy the environment to.public void scroll(boolean increase)
increase
- a scrolling direction.
TimeoutExpiredException
public void scrollTo(Waitable w, Object waiterParam, boolean increase)
w
- Scrolling is stopped when w.actionProduced(waiterParam) != nullwaiterParam
- a waiting parameter.increase
- a scrolling direction.
TimeoutExpiredException
scrollTo(JScrollBarOperator.ScrollChecker)
public void scrollTo(JScrollBarOperator.ScrollChecker checker)
checker
- ScrollChecker implementation defining scrolling direction, and so on.
TimeoutExpiredException
JScrollBarOperator.ScrollChecker
public void scrollTo(ScrollAdjuster adj)
adj
- defines scrolling direction, and so on.
TimeoutExpiredException
public void scrollToValue(int value)
value
- Scroll bar value to scroll to.
TimeoutExpiredException
public void scrollToValue(double proportionalValue)
proportionalValue
- Proportional scroll to. Must be >= 0 and <= 1.
TimeoutExpiredException
public void scrollToMinimum()
TimeoutExpiredException
public void scrollToMaximum()
TimeoutExpiredException
public JButtonOperator getDecreaseButton()
public JButtonOperator getIncreaseButton()
public Hashtable getDump()
ComponentOperator
getDump
in class JComponentOperator
public void addAdjustmentListener(AdjustmentListener adjustmentListener)
JScrollBar.addAdjustmentListener(AdjustmentListener)
through queue
public int getBlockIncrement()
JScrollBar.getBlockIncrement()
through queue
public int getBlockIncrement(int i)
JScrollBar.getBlockIncrement(int)
through queue
public int getMaximum()
JScrollBar.getMaximum()
through queue
public int getMinimum()
JScrollBar.getMinimum()
through queue
public BoundedRangeModel getModel()
JScrollBar.getModel()
through queue
public int getOrientation()
JScrollBar.getOrientation()
through queue
public ScrollBarUI getUI()
JScrollBar.getUI()
through queue
public int getUnitIncrement()
JScrollBar.getUnitIncrement()
through queue
public int getUnitIncrement(int i)
JScrollBar.getUnitIncrement(int)
through queue
public int getValue()
JScrollBar.getValue()
through queue
public boolean getValueIsAdjusting()
JScrollBar.getValueIsAdjusting()
through queue
public int getVisibleAmount()
JScrollBar.getVisibleAmount()
through queue
public void removeAdjustmentListener(AdjustmentListener adjustmentListener)
JScrollBar.removeAdjustmentListener(AdjustmentListener)
through queue
public void setBlockIncrement(int i)
JScrollBar.setBlockIncrement(int)
through queue
public void setMaximum(int i)
JScrollBar.setMaximum(int)
through queue
public void setMinimum(int i)
JScrollBar.setMinimum(int)
through queue
public void setModel(BoundedRangeModel boundedRangeModel)
JScrollBar.setModel(BoundedRangeModel)
through queue
public void setOrientation(int i)
JScrollBar.setOrientation(int)
through queue
public void setUnitIncrement(int i)
JScrollBar.setUnitIncrement(int)
through queue
public void setValue(int i)
JScrollBar.setValue(int)
through queue
public void setValueIsAdjusting(boolean b)
JScrollBar.setValueIsAdjusting(boolean)
through queue
public void setValues(int i, int i1, int i2, int i3)
JScrollBar.setValues(int, int, int, int)
through queue
public void setVisibleAmount(int i)
JScrollBar.setVisibleAmount(int)
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |