public class JScrollPaneOperator extends JComponentOperator implements Timeoutable, Outputable
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
JScrollPaneOperator.JScrollPaneFinder
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
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 |
---|
JScrollPaneOperator(ContainerOperator cont)
Constructor.
|
JScrollPaneOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JScrollPaneOperator object.
|
JScrollPaneOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JScrollPaneOperator object.
|
JScrollPaneOperator(ContainerOperator cont,
int index)
Constructor.
|
JScrollPaneOperator(javax.swing.JScrollPane b)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkInside(java.awt.Component comp)
Checks if component is inside view port (no scrolling necessary).
|
boolean |
checkInside(java.awt.Component comp,
int x,
int y,
int width,
int height)
Checks if component's rectangle is inside view port (no scrolling necessary).
|
javax.swing.JScrollBar |
createHorizontalScrollBar()
Maps
JScrollPane.createHorizontalScrollBar() through queue |
javax.swing.JScrollBar |
createVerticalScrollBar()
Maps
JScrollPane.createVerticalScrollBar() through queue |
static javax.swing.JScrollPane |
findJScrollPane(java.awt.Container cont)
Searches 0'th JScrollPane in container.
|
static javax.swing.JScrollPane |
findJScrollPane(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th JScrollPane in container.
|
static javax.swing.JScrollPane |
findJScrollPane(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches JScrollPane in container.
|
static javax.swing.JScrollPane |
findJScrollPane(java.awt.Container cont,
int index)
Searches JScrollPane in container.
|
static javax.swing.JScrollPane |
findJScrollPaneUnder(java.awt.Component comp)
Searches JScrollPane object which component lies on.
|
static javax.swing.JScrollPane |
findJScrollPaneUnder(java.awt.Component comp,
ComponentChooser chooser)
Searches JScrollPane object which component lies on.
|
javax.swing.JViewport |
getColumnHeader()
Maps
JScrollPane.getColumnHeader() through queue |
java.awt.Component |
getCorner(java.lang.String string)
Maps
JScrollPane.getCorner(String) through queue |
javax.swing.JScrollBar |
getHorizontalScrollBar()
Maps
JScrollPane.getHorizontalScrollBar() through queue |
int |
getHorizontalScrollBarPolicy()
Maps
JScrollPane.getHorizontalScrollBarPolicy() through queue |
JScrollBarOperator |
getHScrollBarOperator()
Returns operator used for horizontal scrollbar.
|
TestOut |
getOutput()
Returns print output streams or writers.
|
javax.swing.JViewport |
getRowHeader()
Maps
JScrollPane.getRowHeader() through queue |
Timeouts |
getTimeouts()
Return current timeouts.
|
javax.swing.plaf.ScrollPaneUI |
getUI()
Maps
JScrollPane.getUI() through queue |
javax.swing.JScrollBar |
getVerticalScrollBar()
Maps
JScrollPane.getVerticalScrollBar() through queue |
int |
getVerticalScrollBarPolicy()
Maps
JScrollPane.getVerticalScrollBarPolicy() through queue |
javax.swing.JViewport |
getViewport()
Maps
JScrollPane.getViewport() through queue |
javax.swing.border.Border |
getViewportBorder()
Maps
JScrollPane.getViewportBorder() through queue |
java.awt.Rectangle |
getViewportBorderBounds()
Maps
JScrollPane.getViewportBorderBounds() through queue |
JScrollBarOperator |
getVScrollBarOperator()
Returns operator used for vertical scrollbar.
|
void |
scrollToBottom()
Scrolls pane to bottom.
|
void |
scrollToComponent(java.awt.Component comp)
Scrolls pane to component on this pane.
|
void |
scrollToComponentPoint(java.awt.Component comp,
int x,
int y)
Scrolls pane to point.
|
void |
scrollToComponentRectangle(java.awt.Component comp,
int x,
int y,
int width,
int height)
Scrolls pane to rectangle of a component.
|
void |
scrollToHorizontalValue(double proportionalValue)
Scrolls horizontal scroll bar.
|
void |
scrollToHorizontalValue(int value)
Scrolls horizontal scroll bar.
|
void |
scrollToLeft()
Scrolls pane to left.
|
void |
scrollToRight()
Scrolls pane to right.
|
void |
scrollToTop()
Scrolls pane to top.
|
void |
scrollToValues(double proportionalValueX,
double proportionalValueY)
Scrolls both scroll bars.
|
void |
scrollToValues(int valueX,
int valueY)
Scrolls both scroll bars.
|
void |
scrollToVerticalValue(double proportionalValue)
Scrolls vertical scroll bar.
|
void |
scrollToVerticalValue(int value)
Scrolls vertical scroll bar.
|
void |
setColumnHeader(javax.swing.JViewport jViewport)
Maps
JScrollPane.setColumnHeader(JViewport) through queue |
void |
setColumnHeaderView(java.awt.Component component)
Maps
JScrollPane.setColumnHeaderView(Component) through queue |
void |
setCorner(java.lang.String string,
java.awt.Component component)
Maps
JScrollPane.setCorner(String, Component) through queue |
void |
setHorizontalScrollBar(javax.swing.JScrollBar jScrollBar)
Maps
JScrollPane.setHorizontalScrollBar(JScrollBar) through queue |
void |
setHorizontalScrollBarPolicy(int i)
Maps
JScrollPane.setHorizontalScrollBarPolicy(int) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers.
|
void |
setRowHeader(javax.swing.JViewport jViewport)
Maps
JScrollPane.setRowHeader(JViewport) through queue |
void |
setRowHeaderView(java.awt.Component component)
Maps
JScrollPane.setRowHeaderView(Component) through queue |
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts.
|
void |
setUI(javax.swing.plaf.ScrollPaneUI scrollPaneUI)
Maps
JScrollPane.setUI(ScrollPaneUI) through queue |
void |
setValues(int hValue,
int vValue)
Sets values for both JScrollBars.
|
void |
setVerticalScrollBar(javax.swing.JScrollBar jScrollBar)
Maps
JScrollPane.setVerticalScrollBar(JScrollBar) through queue |
void |
setVerticalScrollBarPolicy(int i)
Maps
JScrollPane.setVerticalScrollBarPolicy(int) through queue |
void |
setViewport(javax.swing.JViewport jViewport)
Maps
JScrollPane.setViewport(JViewport) through queue |
void |
setViewportBorder(javax.swing.border.Border border)
Maps
JScrollPane.setViewportBorder(Border) through queue |
void |
setViewportView(java.awt.Component component)
Maps
JScrollPane.setViewportView(Component) through queue |
static javax.swing.JScrollPane |
waitJScrollPane(java.awt.Container cont)
Waits 0'th JScrollPane in container.
|
static javax.swing.JScrollPane |
waitJScrollPane(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th JScrollPane in container.
|
static javax.swing.JScrollPane |
waitJScrollPane(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits JScrollPane in container.
|
static javax.swing.JScrollPane |
waitJScrollPane(java.awt.Container cont,
int index)
Waits JScrollPane 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, getDump, 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 JScrollPaneOperator(javax.swing.JScrollPane b)
b
- JScrollPane component.public JScrollPaneOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JScrollPaneOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JScrollPaneOperator(ContainerOperator cont, int index)
cont
- Operator pointing a container to search component in.index
- Ordinal component index.TimeoutExpiredException
public JScrollPaneOperator(ContainerOperator cont)
cont
- Operator pointing a container to search component in.TimeoutExpiredException
public static javax.swing.JScrollPane findJScrollPane(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.JScrollPane findJScrollPane(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static javax.swing.JScrollPane findJScrollPane(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.public static javax.swing.JScrollPane findJScrollPane(java.awt.Container cont)
cont
- Container to search component in.public static javax.swing.JScrollPane findJScrollPaneUnder(java.awt.Component comp, ComponentChooser chooser)
comp
- Component to find JScrollPane under.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static javax.swing.JScrollPane findJScrollPaneUnder(java.awt.Component comp)
comp
- Component to find JScrollPane under.public static javax.swing.JScrollPane waitJScrollPane(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.JScrollPane waitJScrollPane(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.TimeoutExpiredException
public static javax.swing.JScrollPane waitJScrollPane(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.TimeoutExpiredException
public static javax.swing.JScrollPane waitJScrollPane(java.awt.Container cont)
cont
- Container to search component in.TimeoutExpiredException
public void setValues(int hValue, int vValue)
hValue
- a value for the horizontal scrollbar.vValue
- a value for the vertical scrollbar.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 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 scrollToHorizontalValue(int value)
value
- Value to scroll horizontal scroll bar to.TimeoutExpiredException
public void scrollToHorizontalValue(double proportionalValue)
proportionalValue
- Proportional value to scroll horizontal scroll bar to.TimeoutExpiredException
public void scrollToVerticalValue(int value)
value
- Value to scroll vertical scroll bar to.TimeoutExpiredException
public void scrollToVerticalValue(double proportionalValue)
proportionalValue
- Value to scroll vertical scroll bar to.TimeoutExpiredException
public void scrollToValues(int valueX, int valueY)
valueX
- Value to scroll horizontal scroll bar to.valueY
- Value to scroll vertical scroll bar to.TimeoutExpiredException
public void scrollToValues(double proportionalValueX, double proportionalValueY)
proportionalValueX
- Value to scroll horizontal scroll bar to.proportionalValueY
- Value to scroll vertical scroll bar to.TimeoutExpiredException
public void scrollToTop()
TimeoutExpiredException
public void scrollToBottom()
TimeoutExpiredException
public void scrollToLeft()
TimeoutExpiredException
public void scrollToRight()
TimeoutExpiredException
public void scrollToComponentRectangle(java.awt.Component comp, int x, int y, int width, int height)
comp
- a subcomponent defining coordinate system.x
- coordinatey
- coordinatewidth
- rectangle widthheight
- rectangle heightTimeoutExpiredException
public void scrollToComponentPoint(java.awt.Component comp, int x, int y)
comp
- a subcomponent defining coordinate system.x
- coordinatey
- coordinateTimeoutExpiredException
public void scrollToComponent(java.awt.Component comp)
comp
- Component to scroll to.TimeoutExpiredException
public JScrollBarOperator getHScrollBarOperator()
public JScrollBarOperator getVScrollBarOperator()
public boolean checkInside(java.awt.Component comp, int x, int y, int width, int height)
comp
- a subcomponent defining coordinate system.x
- coordinatey
- coordinatewidth
- rectangle widthheight
- rectangle heightpublic boolean checkInside(java.awt.Component comp)
comp
- a subcomponentpublic javax.swing.JScrollBar createHorizontalScrollBar()
JScrollPane.createHorizontalScrollBar()
through queuepublic javax.swing.JScrollBar createVerticalScrollBar()
JScrollPane.createVerticalScrollBar()
through queuepublic javax.swing.JViewport getColumnHeader()
JScrollPane.getColumnHeader()
through queuepublic java.awt.Component getCorner(java.lang.String string)
JScrollPane.getCorner(String)
through queuepublic javax.swing.JScrollBar getHorizontalScrollBar()
JScrollPane.getHorizontalScrollBar()
through queuepublic int getHorizontalScrollBarPolicy()
JScrollPane.getHorizontalScrollBarPolicy()
through queuepublic javax.swing.JViewport getRowHeader()
JScrollPane.getRowHeader()
through queuepublic javax.swing.plaf.ScrollPaneUI getUI()
JScrollPane.getUI()
through queuepublic javax.swing.JScrollBar getVerticalScrollBar()
JScrollPane.getVerticalScrollBar()
through queuepublic int getVerticalScrollBarPolicy()
JScrollPane.getVerticalScrollBarPolicy()
through queuepublic javax.swing.JViewport getViewport()
JScrollPane.getViewport()
through queuepublic javax.swing.border.Border getViewportBorder()
JScrollPane.getViewportBorder()
through queuepublic java.awt.Rectangle getViewportBorderBounds()
JScrollPane.getViewportBorderBounds()
through queuepublic void setColumnHeader(javax.swing.JViewport jViewport)
JScrollPane.setColumnHeader(JViewport)
through queuepublic void setColumnHeaderView(java.awt.Component component)
JScrollPane.setColumnHeaderView(Component)
through queuepublic void setCorner(java.lang.String string, java.awt.Component component)
JScrollPane.setCorner(String, Component)
through queuepublic void setHorizontalScrollBar(javax.swing.JScrollBar jScrollBar)
JScrollPane.setHorizontalScrollBar(JScrollBar)
through queuepublic void setHorizontalScrollBarPolicy(int i)
JScrollPane.setHorizontalScrollBarPolicy(int)
through queuepublic void setRowHeader(javax.swing.JViewport jViewport)
JScrollPane.setRowHeader(JViewport)
through queuepublic void setRowHeaderView(java.awt.Component component)
JScrollPane.setRowHeaderView(Component)
through queuepublic void setUI(javax.swing.plaf.ScrollPaneUI scrollPaneUI)
JScrollPane.setUI(ScrollPaneUI)
through queuepublic void setVerticalScrollBar(javax.swing.JScrollBar jScrollBar)
JScrollPane.setVerticalScrollBar(JScrollBar)
through queuepublic void setVerticalScrollBarPolicy(int i)
JScrollPane.setVerticalScrollBarPolicy(int)
through queuepublic void setViewport(javax.swing.JViewport jViewport)
JScrollPane.setViewport(JViewport)
through queuepublic void setViewportBorder(javax.swing.border.Border border)
JScrollPane.setViewportBorder(Border)
through queuepublic void setViewportView(java.awt.Component component)
JScrollPane.setViewportView(Component)
through queue