Package org.netbeans.jemmy.operators
Class JSplitPaneOperator
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.JSplitPaneOperator
- All Implemented Interfaces:
Outputable
,Timeoutable
Timeouts used:
JSplitPaneOperator.ScrollClickTimeout - time for simple scroll click
JSplitPaneOperator.BetweenClickTimeout - time to sleep between scroll clicks
JSplitPaneOperator.WholeScrollTimeout - time for the whole scrolling
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.
- Author:
- Alexandre Iline (alexandre.iline@sun.com) Class to operate with javax.swing.JSplitPane component
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
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.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Identifier for a "HORIZONTAL" value of "orientation" property.static final String
Identifier for a "one touch expendable" property.static final String
Identifier for a "maximum" property.static final String
Identifier for a "minimum" property.static final String
Identifier for a "orientation" property.static final String
Identifier for a "value" property.static final String
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
ConstructorsConstructorDescriptionConstructor.Constructor.JSplitPaneOperator
(ContainerOperator cont, int index) Constructor.JSplitPaneOperator
(ContainerOperator cont, ComponentChooser chooser) Constructs a JSplitPaneOperator object.JSplitPaneOperator
(ContainerOperator cont, ComponentChooser chooser, int index) Constructs a JSplitPaneOperator object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyEnvironment
(Operator anotherOperator) Copies all environment (output, timeouts, visualizer) from another operator.void
Pushes one time left(top) expand button.void
Pushes one time right(bottom) expand button.Searches divider inside split pane.static JSplitPane
findJSplitPane
(Container cont) Searches 0'th JSplitPane in container.static JSplitPane
findJSplitPane
(Container cont, int index) Searches JSplitPane in container.static JSplitPane
findJSplitPane
(Container cont, ComponentChooser chooser) Searches 0'th JSplitPane in container.static JSplitPane
findJSplitPane
(Container cont, ComponentChooser chooser, int index) Searches JSplitPane in container.static JSplitPane
findJSplitPaneUnder
(Component comp) Searches JSplitPane object which component lies on.static JSplitPane
findJSplitPaneUnder
(Component comp, ComponentChooser chooser) Searches JSplitPane object which component lies on.MapsJSplitPane.getBottomComponent()
through queueSearches divider inside split pane.int
MapsJSplitPane.getDividerLocation()
through queueint
MapsJSplitPane.getDividerSize()
through queuegetDump()
Returns information about component.int
MapsJSplitPane.getLastDividerLocation()
through queueMapsJSplitPane.getLeftComponent()
through queueint
MapsJSplitPane.getMaximumDividerLocation()
through queueint
MapsJSplitPane.getMinimumDividerLocation()
through queueint
MapsJSplitPane.getOrientation()
through queueReturns print output streams or writers.MapsJSplitPane.getRightComponent()
through queueReturn current timeouts.MapsJSplitPane.getTopComponent()
through queuegetUI()
MapsJSplitPane.getUI()
through queueboolean
MapsJSplitPane.isContinuousLayout()
through queueboolean
MapsJSplitPane.isOneTouchExpandable()
through queuevoid
moveDivider
(double proportionalLocation) Changes divider location.void
moveDivider
(int dividerLocation) Changes divider location.void
Moves the divider all the way to the right/bottom.void
Moves the divider all the way to the left/top.void
MapsJSplitPane.resetToPreferredSizes()
through queuevoid
scrollTo
(ScrollAdjuster adj) Scrolls to the position defined by a ScrollAdjuster implementation.void
setBottomComponent
(Component component) MapsJSplitPane.setBottomComponent(Component)
through queuevoid
setContinuousLayout
(boolean b) MapsJSplitPane.setContinuousLayout(boolean)
through queuevoid
setDividerLocation
(double d) MapsJSplitPane.setDividerLocation(double)
through queuevoid
setDividerLocation
(int i) MapsJSplitPane.setDividerLocation(int)
through queuevoid
setDividerSize
(int i) MapsJSplitPane.setDividerSize(int)
through queuevoid
setLastDividerLocation
(int i) MapsJSplitPane.setLastDividerLocation(int)
through queuevoid
setLeftComponent
(Component component) MapsJSplitPane.setLeftComponent(Component)
through queuevoid
setOneTouchExpandable
(boolean b) MapsJSplitPane.setOneTouchExpandable(boolean)
through queuevoid
setOrientation
(int i) MapsJSplitPane.setOrientation(int)
through queuevoid
Defines print output streams or writers.void
setRightComponent
(Component component) MapsJSplitPane.setRightComponent(Component)
through queuevoid
setTimeouts
(Timeouts timeouts) Defines current timeouts.void
setTopComponent
(Component component) MapsJSplitPane.setTopComponent(Component)
through queuevoid
setUI
(SplitPaneUI splitPaneUI) MapsJSplitPane.setUI(SplitPaneUI)
through queuestatic JSplitPane
waitJSplitPane
(Container cont) Waits 0'th JSplitPane in container.static JSplitPane
waitJSplitPane
(Container cont, int index) Waits JSplitPane in container.static JSplitPane
waitJSplitPane
(Container cont, ComponentChooser chooser) Waits 0'th JSplitPane in container.static JSplitPane
waitJSplitPane
(Container cont, ComponentChooser chooser, int index) Waits JSplitPane in container.Methods inherited from class org.netbeans.jemmy.operators.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, waitToolTip
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 org.netbeans.jemmy.operators.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, 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
Methods inherited from class org.netbeans.jemmy.operators.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
-
Field Details
-
MINIMUM_DPROP
Identifier for a "minimum" property.- See Also:
-
MAXIMUM_DPROP
Identifier for a "maximum" property.- See Also:
-
VALUE_DPROP
Identifier for a "value" property.- See Also:
-
ORIENTATION_DPROP
Identifier for a "orientation" property.- See Also:
-
HORIZONTAL_ORIENTATION_DPROP_VALUE
Identifier for a "HORIZONTAL" value of "orientation" property.- See Also:
-
VERTICAL_ORIENTATION_DPROP_VALUE
Identifier for a "VERTICAL" value of "orientation" property.- See Also:
-
IS_ONE_TOUCH_EXPANDABLE_DPROP
Identifier for a "one touch expendable" property.- See Also:
-
-
Constructor Details
-
JSplitPaneOperator
Constructor.- Parameters:
b
- JSplitPane component.
-
JSplitPaneOperator
Constructs a JSplitPaneOperator object.- Parameters:
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
-
JSplitPaneOperator
Constructs a JSplitPaneOperator object.- Parameters:
cont
- a containerchooser
- a component chooser specifying searching criteria.
-
JSplitPaneOperator
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont
- Operator pointing a container to search component in.index
- Ordinal component index.- Throws:
TimeoutExpiredException
-
JSplitPaneOperator
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont
- Operator pointing a container to search component in.- Throws:
TimeoutExpiredException
-
-
Method Details
-
findJSplitPane
Searches JSplitPane in container.- Parameters:
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.- Returns:
- JSplitPane instance or null if component was not found.
-
findJSplitPane
Searches 0'th JSplitPane in container.- Parameters:
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- JSplitPane instance or null if component was not found.
-
findJSplitPane
Searches JSplitPane in container.- Parameters:
cont
- Container to search component in.index
- Ordinal component index.- Returns:
- JSplitPane instance or null if component was not found.
-
findJSplitPane
Searches 0'th JSplitPane in container.- Parameters:
cont
- Container to search component in.- Returns:
- JSplitPane instance or null if component was not found.
-
findJSplitPaneUnder
Searches JSplitPane object which component lies on.- Parameters:
comp
- Component to find JSplitPane under.chooser
- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- JSplitPane instance or null if component was not found.
-
findJSplitPaneUnder
Searches JSplitPane object which component lies on.- Parameters:
comp
- Component to find JSplitPane under.- Returns:
- JSplitPane instance or null if component was not found.
-
waitJSplitPane
Waits JSplitPane in container.- Parameters:
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.- Returns:
- JSplitPane instance or null if component was not displayed.
- Throws:
TimeoutExpiredException
-
waitJSplitPane
Waits 0'th JSplitPane in container.- Parameters:
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- JSplitPane instance or null if component was not displayed.
- Throws:
TimeoutExpiredException
-
waitJSplitPane
Waits JSplitPane in container.- Parameters:
cont
- Container to search component in.index
- Ordinal component index.- Returns:
- JSplitPane instance or null if component was not displayed.
- Throws:
TimeoutExpiredException
-
waitJSplitPane
Waits 0'th JSplitPane in container.- Parameters:
cont
- Container to search component in.- Returns:
- JSplitPane instance or null if component was not displayed.
- Throws:
TimeoutExpiredException
-
setTimeouts
Description copied from interface:Timeoutable
Defines current timeouts.- Specified by:
setTimeouts
in interfaceTimeoutable
- Overrides:
setTimeouts
in classJComponentOperator
- Parameters:
timeouts
- A collection of timeout assignments.- See Also:
-
getTimeouts
Description copied from interface:Timeoutable
Return current timeouts.- Specified by:
getTimeouts
in interfaceTimeoutable
- Overrides:
getTimeouts
in classJComponentOperator
- Returns:
- the collection of current timeout assignments.
- See Also:
-
setOutput
Description copied from interface:Outputable
Defines print output streams or writers.- Specified by:
setOutput
in interfaceOutputable
- Overrides:
setOutput
in classJComponentOperator
- Parameters:
out
- Identify the streams or writers used for print output.- See Also:
-
getOutput
Description copied from interface:Outputable
Returns print output streams or writers.- Specified by:
getOutput
in interfaceOutputable
- Overrides:
getOutput
in classJComponentOperator
- Returns:
- an object that contains references to objects for printing to output and err streams.
- See Also:
-
copyEnvironment
Description copied from class:Operator
Copies all environment (output, timeouts, visualizer) from another operator.- Overrides:
copyEnvironment
in classComponentOperator
- Parameters:
anotherOperator
- an operator to copy the environment to.
-
findDivider
Searches divider inside split pane.- Returns:
- an operator for the divider.
-
getDivider
Searches divider inside split pane.- Returns:
- an operator for the divider.
-
scrollTo
Scrolls to the position defined by a ScrollAdjuster implementation.- Parameters:
adj
- defines scrolling direction, and so on.- Throws:
TimeoutExpiredException
-
moveDivider
public void moveDivider(int dividerLocation) Changes divider location.- Parameters:
dividerLocation
- location to move divider to.
-
moveDivider
public void moveDivider(double proportionalLocation) Changes divider location.- Parameters:
proportionalLocation
- Proportional location. Should be great then 0 and less then 1.
-
moveToMinimum
public void moveToMinimum()Moves the divider all the way to the left/top. -
moveToMaximum
public void moveToMaximum()Moves the divider all the way to the right/bottom. -
expandRight
public void expandRight()Pushes one time right(bottom) expand button.- Throws:
TimeoutExpiredException
-
expandLeft
public void expandLeft()Pushes one time left(top) expand button.- Throws:
TimeoutExpiredException
-
getDump
Description copied from class:ComponentOperator
Returns information about component.- Overrides:
getDump
in classJComponentOperator
- Returns:
- a Hashtable containing name-value pairs.
-
getBottomComponent
MapsJSplitPane.getBottomComponent()
through queue -
getDividerLocation
public int getDividerLocation()MapsJSplitPane.getDividerLocation()
through queue -
getDividerSize
public int getDividerSize()MapsJSplitPane.getDividerSize()
through queue -
getLastDividerLocation
public int getLastDividerLocation()MapsJSplitPane.getLastDividerLocation()
through queue -
getLeftComponent
MapsJSplitPane.getLeftComponent()
through queue -
getMaximumDividerLocation
public int getMaximumDividerLocation()MapsJSplitPane.getMaximumDividerLocation()
through queue -
getMinimumDividerLocation
public int getMinimumDividerLocation()MapsJSplitPane.getMinimumDividerLocation()
through queue -
getOrientation
public int getOrientation()MapsJSplitPane.getOrientation()
through queue -
getRightComponent
MapsJSplitPane.getRightComponent()
through queue -
getTopComponent
MapsJSplitPane.getTopComponent()
through queue -
getUI
MapsJSplitPane.getUI()
through queue -
isContinuousLayout
public boolean isContinuousLayout()MapsJSplitPane.isContinuousLayout()
through queue -
isOneTouchExpandable
public boolean isOneTouchExpandable()MapsJSplitPane.isOneTouchExpandable()
through queue -
resetToPreferredSizes
public void resetToPreferredSizes()MapsJSplitPane.resetToPreferredSizes()
through queue -
setBottomComponent
MapsJSplitPane.setBottomComponent(Component)
through queue -
setContinuousLayout
public void setContinuousLayout(boolean b) MapsJSplitPane.setContinuousLayout(boolean)
through queue -
setDividerLocation
public void setDividerLocation(double d) MapsJSplitPane.setDividerLocation(double)
through queue -
setDividerLocation
public void setDividerLocation(int i) MapsJSplitPane.setDividerLocation(int)
through queue -
setDividerSize
public void setDividerSize(int i) MapsJSplitPane.setDividerSize(int)
through queue -
setLastDividerLocation
public void setLastDividerLocation(int i) MapsJSplitPane.setLastDividerLocation(int)
through queue -
setLeftComponent
MapsJSplitPane.setLeftComponent(Component)
through queue -
setOneTouchExpandable
public void setOneTouchExpandable(boolean b) MapsJSplitPane.setOneTouchExpandable(boolean)
through queue -
setOrientation
public void setOrientation(int i) MapsJSplitPane.setOrientation(int)
through queue -
setRightComponent
MapsJSplitPane.setRightComponent(Component)
through queue -
setTopComponent
MapsJSplitPane.setTopComponent(Component)
through queue -
setUI
MapsJSplitPane.setUI(SplitPaneUI)
through queue
-