Package org.netbeans.jemmy.operators
Class JInternalFrameOperator
- 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.JInternalFrameOperator
-
- All Implemented Interfaces:
Outputable,Timeoutable
public class JInternalFrameOperator extends JComponentOperator implements Outputable, Timeoutable
Class provides necessary functionality to operate with javax.swing.JInternalFrame component. Some methods can throw WrongInternalFrameStateException exception.
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.MouseClickTimeout - time between mouse pressing and releasing
AbstractButtonOperator.PushButtonTimeout - time between button pressing and releasing
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
Timeouts,JInternalFrameOperator.WrongInternalFrameStateException
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJInternalFrameOperator.JDesktopIconOperatorClass to operate with javax.swing.JInternalFrame.JDesktopIconOperator component.static classJInternalFrameOperator.JInternalFrameByTitleFinderAllows to find component by title.static classJInternalFrameOperator.JInternalFrameFinderChecks component type.classJInternalFrameOperator.WrongInternalFrameStateExceptionException can be throwht if as a result of an attempt to produce operation for the frame in incorrect state.-
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
Fields Modifier and Type Field Description protected JButtonOperatorcloseOperA close button.static java.lang.StringIS_RESIZABLE_DPROPIdentifier for a "resizable" property.static java.lang.StringIS_SELECTED_DPROPIdentifier for a "selected" property.protected JButtonOperatormaxOperA maximizing button.protected JButtonOperatorminOperA minimizing button.static java.lang.StringSTATE_CLOSED_DPROP_VALUEIdentifier for a "closed" value of "state" property.static java.lang.StringSTATE_DPROPIdentifier for a "state" property.static java.lang.StringSTATE_ICONIFIED_DPROP_VALUEIdentifier for a "iconified" value of "state" property.static java.lang.StringSTATE_MAXIMAZED_DPROP_VALUEIdentifier for a "maximized" value of "state" property.static java.lang.StringSTATE_NORMAL_DPROP_VALUEIdentifier for a "normal" value of "state" property.static java.lang.StringTITLE_DPROPIdentifier for a "title" property.protected ContainerOperatortitleOperatorA title operator.-
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
Constructors Constructor Description JInternalFrameOperator(javax.swing.JInternalFrame b)Constructor.JInternalFrameOperator(ContainerOperator cont)Constructor.JInternalFrameOperator(ContainerOperator cont, int index)Constructor.JInternalFrameOperator(ContainerOperator cont, java.lang.String text)Constructor.JInternalFrameOperator(ContainerOperator cont, java.lang.String text, int index)Constructor.JInternalFrameOperator(ContainerOperator cont, ComponentChooser chooser)Constructs a JInternalFrameOperator object.JInternalFrameOperator(ContainerOperator cont, ComponentChooser chooser, int index)Constructs a JInternalFrameOperator object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Activates frame.voidaddInternalFrameListener(javax.swing.event.InternalFrameListener internalFrameListener)MapsJInternalFrame.addInternalFrameListener(InternalFrameListener)through queuevoidclose()Closes the frame.voiddeiconify()Deiconifies frame.voiddemaximize()Demaximizes frame.voiddispose()MapsJInternalFrame.dispose()through queuestatic javax.swing.JInternalFramefindJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)Searches JInternalframe by title.static javax.swing.JInternalFramefindJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)Searches JInternalframe by title.static javax.swing.JInternalFramefindJInternalFrame(java.awt.Container cont, ComponentChooser chooser)Searches JInternalframe in container.static javax.swing.JInternalFramefindJInternalFrame(java.awt.Container cont, ComponentChooser chooser, int index)Searches JInternalframe in container.static javax.swing.JInternalFramefindJInternalFrameUnder(java.awt.Component comp)Searches JInternalFrame object which component lies on.static javax.swing.JInternalFramefindJInternalFrameUnder(java.awt.Component comp, ComponentChooser chooser)Searches JInternalFrame object which component lies on.protected java.awt.ContainerfindTitlePane()Uses InternalframeDriver to get a title pane.JButtonOperatorgetCloseButton()Waits for a close button inside the title pane.java.awt.ContainergetContentPane()MapsJInternalFrame.getContentPane()through queueintgetDefaultCloseOperation()MapsJInternalFrame.getDefaultCloseOperation()through queuejavax.swing.JInternalFrame.JDesktopIcongetDesktopIcon()MapsJInternalFrame.getDesktopIcon()through queuejavax.swing.JDesktopPanegetDesktopPane()MapsJInternalFrame.getDesktopPane()through queuejava.util.HashtablegetDump()Returns information about component.javax.swing.IcongetFrameIcon()MapsJInternalFrame.getFrameIcon()through queuejava.awt.ComponentgetGlassPane()MapsJInternalFrame.getGlassPane()through queueJInternalFrameOperator.JDesktopIconOperatorgetIconOperator()Creates an operator for an desktop icon.javax.swing.JMenuBargetJMenuBar()MapsJInternalFrame.getJMenuBar()through queueintgetLayer()MapsJInternalFrame.getLayer()through queuejavax.swing.JLayeredPanegetLayeredPane()MapsJInternalFrame.getLayeredPane()through queueJButtonOperatorgetMaximizeButton()Waits for a maximize button inside the title pane.JButtonOperatorgetMinimizeButton()Waits for a minimize button inside the title pane.TestOutgetOutput()Returns print output streams or writers.TimeoutsgetTimeouts()Return current timeouts.java.lang.StringgetTitle()MapsJInternalFrame.getTitle()through queueContainerOperatorgetTitleOperator()Waits for the title pane.javax.swing.plaf.InternalFrameUIgetUI()MapsJInternalFrame.getUI()through queuejava.lang.StringgetWarningString()MapsJInternalFrame.getWarningString()through queuevoidiconify()Iconifies frame.protected voidinitOperators()Initiaites suboperators.booleanisClosable()MapsJInternalFrame.isClosable()through queuebooleanisClosed()MapsJInternalFrame.isClosed()through queuebooleanisIcon()MapsJInternalFrame.isIcon()through queuebooleanisIconifiable()MapsJInternalFrame.isIconifiable()through queuebooleanisMaximizable()MapsJInternalFrame.isMaximizable()through queuebooleanisMaximum()MapsJInternalFrame.isMaximum()through queuebooleanisResizable()MapsJInternalFrame.isResizable()through queuebooleanisSelected()MapsJInternalFrame.isSelected()through queuevoidmaximize()Maximizes frame.voidmove(int x, int y)Moves frame to new location.voidmoveToBack()MapsJInternalFrame.moveToBack()through queuevoidmoveToFront()MapsJInternalFrame.moveToFront()through queuevoidpack()MapsJInternalFrame.pack()through queuevoidremoveInternalFrameListener(javax.swing.event.InternalFrameListener internalFrameListener)MapsJInternalFrame.removeInternalFrameListener(InternalFrameListener)through queuevoidresize(int width, int height)Resizes frame.voidscrollToFrame()Scrolls to internal frame.voidscrollToRectangle(int x, int y, int width, int height)Scrolls to internal frame's rectangle.voidscrollToRectangle(java.awt.Rectangle rect)Scrolls to internal frame's rectangle.voidsetClosable(boolean b)MapsJInternalFrame.setClosable(boolean)through queuevoidsetClosed(boolean b)MapsJInternalFrame.setClosed(boolean)through queuevoidsetContentPane(java.awt.Container container)MapsJInternalFrame.setContentPane(Container)through queuevoidsetDefaultCloseOperation(int i)MapsJInternalFrame.setDefaultCloseOperation(int)through queuevoidsetDesktopIcon(javax.swing.JInternalFrame.JDesktopIcon jDesktopIcon)MapsJInternalFrame.setDesktopIcon(JDesktopIcon)through queuevoidsetFrameIcon(javax.swing.Icon icon)MapsJInternalFrame.setFrameIcon(Icon)through queuevoidsetGlassPane(java.awt.Component component)MapsJInternalFrame.setGlassPane(Component)through queuevoidsetIcon(boolean b)MapsJInternalFrame.setIcon(boolean)through queuevoidsetIconifiable(boolean b)MapsJInternalFrame.setIconifiable(boolean)through queuevoidsetJMenuBar(javax.swing.JMenuBar jMenuBar)MapsJInternalFrame.setJMenuBar(JMenuBar)through queuevoidsetLayer(java.lang.Integer integer)MapsJInternalFrame.setLayer(Integer)through queuevoidsetLayeredPane(javax.swing.JLayeredPane jLayeredPane)MapsJInternalFrame.setLayeredPane(JLayeredPane)through queuevoidsetMaximizable(boolean b)MapsJInternalFrame.setMaximizable(boolean)through queuevoidsetMaximum(boolean b)MapsJInternalFrame.setMaximum(boolean)through queuevoidsetOutput(TestOut out)Defines print output streams or writers.voidsetResizable(boolean b)MapsJInternalFrame.setResizable(boolean)through queuevoidsetSelected(boolean b)MapsJInternalFrame.setSelected(boolean)through queuevoidsetTimeouts(Timeouts times)Defines current timeouts.voidsetTitle(java.lang.String string)MapsJInternalFrame.setTitle(String)through queuevoidsetUI(javax.swing.plaf.InternalFrameUI internalFrameUI)MapsJInternalFrame.setUI(InternalFrameUI)through queuevoidtoBack()MapsJInternalFrame.toBack()through queuevoidtoFront()MapsJInternalFrame.toFront()through queuevoidwaitIcon(boolean icon)Waits for the frame to be iconified or deiconified.static javax.swing.JInternalFramewaitJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)Waits JInternalframe by title.static javax.swing.JInternalFramewaitJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)Waits JInternalframe by title.static javax.swing.JInternalFramewaitJInternalFrame(java.awt.Container cont, ComponentChooser chooser)Waits JInternalframe in container.static javax.swing.JInternalFramewaitJInternalFrame(java.awt.Container cont, ComponentChooser chooser, int index)Waits JInternalframe in container.voidwaitMaximum(boolean maximum)Waits for the frame to be maximized or demaximized.-
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, 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
-
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 Detail
-
TITLE_DPROP
public static final java.lang.String TITLE_DPROP
Identifier for a "title" property.- See Also:
getDump(), Constant Field Values
-
STATE_DPROP
public static final java.lang.String STATE_DPROP
Identifier for a "state" property.- See Also:
getDump(), Constant Field Values
-
STATE_NORMAL_DPROP_VALUE
public static final java.lang.String STATE_NORMAL_DPROP_VALUE
Identifier for a "normal" value of "state" property.- See Also:
getDump(), Constant Field Values
-
STATE_CLOSED_DPROP_VALUE
public static final java.lang.String STATE_CLOSED_DPROP_VALUE
Identifier for a "closed" value of "state" property.- See Also:
getDump(), Constant Field Values
-
STATE_ICONIFIED_DPROP_VALUE
public static final java.lang.String STATE_ICONIFIED_DPROP_VALUE
Identifier for a "iconified" value of "state" property.- See Also:
getDump(), Constant Field Values
-
STATE_MAXIMAZED_DPROP_VALUE
public static final java.lang.String STATE_MAXIMAZED_DPROP_VALUE
Identifier for a "maximized" value of "state" property.- See Also:
getDump(), Constant Field Values
-
IS_RESIZABLE_DPROP
public static final java.lang.String IS_RESIZABLE_DPROP
Identifier for a "resizable" property.- See Also:
getDump(), Constant Field Values
-
IS_SELECTED_DPROP
public static final java.lang.String IS_SELECTED_DPROP
Identifier for a "selected" property.- See Also:
getDump(), Constant Field Values
-
minOper
protected JButtonOperator minOper
A minimizing button.
-
maxOper
protected JButtonOperator maxOper
A maximizing button.
-
closeOper
protected JButtonOperator closeOper
A close button.
-
titleOperator
protected ContainerOperator titleOperator
A title operator.
-
-
Constructor Detail
-
JInternalFrameOperator
public JInternalFrameOperator(javax.swing.JInternalFrame b)
Constructor.- Parameters:
b- a component
-
JInternalFrameOperator
public JInternalFrameOperator(ContainerOperator cont, ComponentChooser chooser, int index)
Constructs a JInternalFrameOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.index- an index between appropriate ones.
-
JInternalFrameOperator
public JInternalFrameOperator(ContainerOperator cont, ComponentChooser chooser)
Constructs a JInternalFrameOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.
-
JInternalFrameOperator
public JInternalFrameOperator(ContainerOperator cont, java.lang.String text, int index)
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Button text.index- Ordinal component index.- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
JInternalFrameOperator
public JInternalFrameOperator(ContainerOperator cont, java.lang.String text)
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Button text.- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
JInternalFrameOperator
public JInternalFrameOperator(ContainerOperator cont, int index)
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containerindex- Ordinal component index.
-
JInternalFrameOperator
public JInternalFrameOperator(ContainerOperator cont)
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a container
-
-
Method Detail
-
findJInternalFrame
public static javax.swing.JInternalFrame findJInternalFrame(java.awt.Container cont, ComponentChooser chooser, int index)Searches JInternalframe in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.index- Ordinal component index.- Returns:
- JInternalframe instance or null if component was not found.
-
findJInternalFrame
public static javax.swing.JInternalFrame findJInternalFrame(java.awt.Container cont, ComponentChooser chooser)Searches JInternalframe in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.- Returns:
- JInternalframe instance or null if component was not found.
-
findJInternalFrame
public static javax.swing.JInternalFrame findJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)Searches JInternalframe by title.- Parameters:
cont- Container to search component in.text- Component text.ce- Compare text exactly.ccs- Compare text case sensitively.index- Ordinal component index.- Returns:
- JInternalframe instance or null if component was not found.
- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
findJInternalFrame
public static javax.swing.JInternalFrame findJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)Searches JInternalframe by title.- Parameters:
cont- Container to search component in.text- Component text.ce- Compare text exactly.ccs- Compare text case sensitively.- Returns:
- JInternalframe instance or null if component was not found.
- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
findJInternalFrameUnder
public static javax.swing.JInternalFrame findJInternalFrameUnder(java.awt.Component comp, ComponentChooser chooser)Searches JInternalFrame object which component lies on.- Parameters:
comp- Component to find JInternalFrame under.chooser- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- JInternalFrame instance or null if component was not found.
-
findJInternalFrameUnder
public static javax.swing.JInternalFrame findJInternalFrameUnder(java.awt.Component comp)
Searches JInternalFrame object which component lies on.- Parameters:
comp- Component to find JInternalFrame under.- Returns:
- JInternalFrame instance or null if component was not found.
-
waitJInternalFrame
public static javax.swing.JInternalFrame waitJInternalFrame(java.awt.Container cont, ComponentChooser chooser, int index)Waits JInternalframe in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.index- Ordinal component index.- Returns:
- JInternalframe instance.
-
waitJInternalFrame
public static javax.swing.JInternalFrame waitJInternalFrame(java.awt.Container cont, ComponentChooser chooser)Waits JInternalframe in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.- Returns:
- JInternalframe instance.
-
waitJInternalFrame
public static javax.swing.JInternalFrame waitJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)Waits JInternalframe by title.- Parameters:
cont- Container to search component in.text- Component text.ce- Compare text exactly.ccs- Compare text case sensitively.index- Ordinal component index.- Returns:
- JInternalframe instance.
- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
waitJInternalFrame
public static javax.swing.JInternalFrame waitJInternalFrame(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)Waits JInternalframe by title.- Parameters:
cont- Container to search component in.text- Component text.ce- Compare text exactly.ccs- Compare text case sensitively.- Returns:
- JInternalframe instance.
- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
setOutput
public void setOutput(TestOut out)
Description copied from interface:OutputableDefines print output streams or writers.- Specified by:
setOutputin interfaceOutputable- Overrides:
setOutputin classJComponentOperator- Parameters:
out- Identify the streams or writers used for print output.- See Also:
Outputable.getOutput()
-
getOutput
public TestOut getOutput()
Description copied from interface:OutputableReturns print output streams or writers.- Specified by:
getOutputin interfaceOutputable- Overrides:
getOutputin classJComponentOperator- Returns:
- an object that contains references to objects for printing to output and err streams.
- See Also:
Outputable.setOutput(org.netbeans.jemmy.TestOut)
-
setTimeouts
public void setTimeouts(Timeouts times)
Description copied from interface:TimeoutableDefines current timeouts.- Specified by:
setTimeoutsin interfaceTimeoutable- Overrides:
setTimeoutsin classJComponentOperator- Parameters:
times- A collection of timeout assignments.- See Also:
Timeoutable.getTimeouts()
-
getTimeouts
public Timeouts getTimeouts()
Description copied from interface:TimeoutableReturn current timeouts.- Specified by:
getTimeoutsin interfaceTimeoutable- Overrides:
getTimeoutsin classJComponentOperator- Returns:
- the collection of current timeout assignments.
- See Also:
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
-
iconify
public void iconify()
Iconifies frame. Note: frame should not be iconified and should be iconifiable.
-
deiconify
public void deiconify()
Deiconifies frame. Note: frame should be iconified.
-
maximize
public void maximize()
Maximizes frame. Note: frame should not be iconified.
-
demaximize
public void demaximize()
Demaximizes frame. Note: frame should not be iconified.
-
move
public void move(int x, int y)Moves frame to new location. Note: frame should not be iconified.- Parameters:
x- X coordinate of a new frame location.y- Y coordinate of a new frame location.- Throws:
JInternalFrameOperator.WrongInternalFrameStateException
-
resize
public void resize(int width, int height)Resizes frame. Note: frame should not be iconified.- Parameters:
width- New frame width.height- New frame height.- Throws:
JInternalFrameOperator.WrongInternalFrameStateException
-
activate
public void activate()
Activates frame. Note: frame should not be iconified.
-
close
public void close()
Closes the frame.
-
scrollToRectangle
public void scrollToRectangle(int x, int y, int width, int height)Scrolls to internal frame's rectangle.- Parameters:
x- Horizontal rectangle coordinatey- Vertical rectangle coordinatewidth- rectangle widthheight- rectangle height
-
scrollToRectangle
public void scrollToRectangle(java.awt.Rectangle rect)
Scrolls to internal frame's rectangle.- Parameters:
rect- a rectangle to scroll to.
-
scrollToFrame
public void scrollToFrame()
Scrolls to internal frame.
-
getMinimizeButton
public JButtonOperator getMinimizeButton()
Waits for a minimize button inside the title pane.- Returns:
- a button operator
-
getMaximizeButton
public JButtonOperator getMaximizeButton()
Waits for a maximize button inside the title pane.- Returns:
- a button operator
-
getCloseButton
public JButtonOperator getCloseButton()
Waits for a close button inside the title pane.- Returns:
- a button operator
-
getTitleOperator
public ContainerOperator getTitleOperator()
Waits for the title pane.- Returns:
- a button operator
-
getIconOperator
public JInternalFrameOperator.JDesktopIconOperator getIconOperator()
Creates an operator for an desktop icon.- Returns:
- an icon operator.
-
waitIcon
public void waitIcon(boolean icon)
Waits for the frame to be iconified or deiconified.- Parameters:
icon- whether the frame needs to be iconified.
-
waitMaximum
public void waitMaximum(boolean maximum)
Waits for the frame to be maximized or demaximized.- Parameters:
maximum- whether the frame needs to be maximized.
-
getDump
public java.util.Hashtable getDump()
Returns information about component.- Overrides:
getDumpin classJComponentOperator- Returns:
- a Hashtable containing name-value pairs.
-
addInternalFrameListener
public void addInternalFrameListener(javax.swing.event.InternalFrameListener internalFrameListener)
MapsJInternalFrame.addInternalFrameListener(InternalFrameListener)through queue
-
dispose
public void dispose()
MapsJInternalFrame.dispose()through queue
-
getContentPane
public java.awt.Container getContentPane()
MapsJInternalFrame.getContentPane()through queue
-
getDefaultCloseOperation
public int getDefaultCloseOperation()
MapsJInternalFrame.getDefaultCloseOperation()through queue
-
getDesktopIcon
public javax.swing.JInternalFrame.JDesktopIcon getDesktopIcon()
MapsJInternalFrame.getDesktopIcon()through queue
-
getDesktopPane
public javax.swing.JDesktopPane getDesktopPane()
MapsJInternalFrame.getDesktopPane()through queue
-
getFrameIcon
public javax.swing.Icon getFrameIcon()
MapsJInternalFrame.getFrameIcon()through queue
-
getGlassPane
public java.awt.Component getGlassPane()
MapsJInternalFrame.getGlassPane()through queue
-
getJMenuBar
public javax.swing.JMenuBar getJMenuBar()
MapsJInternalFrame.getJMenuBar()through queue
-
getLayer
public int getLayer()
MapsJInternalFrame.getLayer()through queue
-
getLayeredPane
public javax.swing.JLayeredPane getLayeredPane()
MapsJInternalFrame.getLayeredPane()through queue
-
getTitle
public java.lang.String getTitle()
MapsJInternalFrame.getTitle()through queue
-
getUI
public javax.swing.plaf.InternalFrameUI getUI()
MapsJInternalFrame.getUI()through queue
-
getWarningString
public java.lang.String getWarningString()
MapsJInternalFrame.getWarningString()through queue
-
isClosable
public boolean isClosable()
MapsJInternalFrame.isClosable()through queue
-
isClosed
public boolean isClosed()
MapsJInternalFrame.isClosed()through queue
-
isIcon
public boolean isIcon()
MapsJInternalFrame.isIcon()through queue
-
isIconifiable
public boolean isIconifiable()
MapsJInternalFrame.isIconifiable()through queue
-
isMaximizable
public boolean isMaximizable()
MapsJInternalFrame.isMaximizable()through queue
-
isMaximum
public boolean isMaximum()
MapsJInternalFrame.isMaximum()through queue
-
isResizable
public boolean isResizable()
MapsJInternalFrame.isResizable()through queue
-
isSelected
public boolean isSelected()
MapsJInternalFrame.isSelected()through queue
-
moveToBack
public void moveToBack()
MapsJInternalFrame.moveToBack()through queue
-
moveToFront
public void moveToFront()
MapsJInternalFrame.moveToFront()through queue
-
pack
public void pack()
MapsJInternalFrame.pack()through queue
-
removeInternalFrameListener
public void removeInternalFrameListener(javax.swing.event.InternalFrameListener internalFrameListener)
MapsJInternalFrame.removeInternalFrameListener(InternalFrameListener)through queue
-
setClosable
public void setClosable(boolean b)
MapsJInternalFrame.setClosable(boolean)through queue
-
setClosed
public void setClosed(boolean b)
MapsJInternalFrame.setClosed(boolean)through queue
-
setContentPane
public void setContentPane(java.awt.Container container)
MapsJInternalFrame.setContentPane(Container)through queue
-
setDefaultCloseOperation
public void setDefaultCloseOperation(int i)
MapsJInternalFrame.setDefaultCloseOperation(int)through queue
-
setDesktopIcon
public void setDesktopIcon(javax.swing.JInternalFrame.JDesktopIcon jDesktopIcon)
MapsJInternalFrame.setDesktopIcon(JDesktopIcon)through queue
-
setFrameIcon
public void setFrameIcon(javax.swing.Icon icon)
MapsJInternalFrame.setFrameIcon(Icon)through queue
-
setGlassPane
public void setGlassPane(java.awt.Component component)
MapsJInternalFrame.setGlassPane(Component)through queue
-
setIcon
public void setIcon(boolean b)
MapsJInternalFrame.setIcon(boolean)through queue
-
setIconifiable
public void setIconifiable(boolean b)
MapsJInternalFrame.setIconifiable(boolean)through queue
-
setJMenuBar
public void setJMenuBar(javax.swing.JMenuBar jMenuBar)
MapsJInternalFrame.setJMenuBar(JMenuBar)through queue
-
setLayer
public void setLayer(java.lang.Integer integer)
MapsJInternalFrame.setLayer(Integer)through queue
-
setLayeredPane
public void setLayeredPane(javax.swing.JLayeredPane jLayeredPane)
MapsJInternalFrame.setLayeredPane(JLayeredPane)through queue
-
setMaximizable
public void setMaximizable(boolean b)
MapsJInternalFrame.setMaximizable(boolean)through queue
-
setMaximum
public void setMaximum(boolean b)
MapsJInternalFrame.setMaximum(boolean)through queue
-
setResizable
public void setResizable(boolean b)
MapsJInternalFrame.setResizable(boolean)through queue
-
setSelected
public void setSelected(boolean b)
MapsJInternalFrame.setSelected(boolean)through queue
-
setTitle
public void setTitle(java.lang.String string)
MapsJInternalFrame.setTitle(String)through queue
-
setUI
public void setUI(javax.swing.plaf.InternalFrameUI internalFrameUI)
MapsJInternalFrame.setUI(InternalFrameUI)through queue
-
toBack
public void toBack()
MapsJInternalFrame.toBack()through queue
-
toFront
public void toFront()
MapsJInternalFrame.toFront()through queue
-
findTitlePane
protected java.awt.Container findTitlePane()
Uses InternalframeDriver to get a title pane.- Returns:
- a title pane.
-
initOperators
protected void initOperators()
Initiaites suboperators.
-
-