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 class
JInternalFrameOperator.JDesktopIconOperator
Class to operate with javax.swing.JInternalFrame.JDesktopIconOperator component.static class
JInternalFrameOperator.JInternalFrameByTitleFinder
Allows to find component by title.static class
JInternalFrameOperator.JInternalFrameFinder
Checks component type.class
JInternalFrameOperator.WrongInternalFrameStateException
Exception 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 JButtonOperator
closeOper
A close button.static String
IS_RESIZABLE_DPROP
Identifier for a "resizable" property.static String
IS_SELECTED_DPROP
Identifier for a "selected" property.protected JButtonOperator
maxOper
A maximizing button.protected JButtonOperator
minOper
A minimizing button.static String
STATE_CLOSED_DPROP_VALUE
Identifier for a "closed" value of "state" property.static String
STATE_DPROP
Identifier for a "state" property.static String
STATE_ICONIFIED_DPROP_VALUE
Identifier for a "iconified" value of "state" property.static String
STATE_MAXIMAZED_DPROP_VALUE
Identifier for a "maximized" value of "state" property.static String
STATE_NORMAL_DPROP_VALUE
Identifier for a "normal" value of "state" property.static String
TITLE_DPROP
Identifier for a "title" property.protected ContainerOperator
titleOperator
A 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(JInternalFrame b)
Constructor.JInternalFrameOperator(ContainerOperator cont)
Constructor.JInternalFrameOperator(ContainerOperator cont, int index)
Constructor.JInternalFrameOperator(ContainerOperator cont, String text)
Constructor.JInternalFrameOperator(ContainerOperator cont, 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 void
activate()
Activates frame.void
addInternalFrameListener(InternalFrameListener internalFrameListener)
MapsJInternalFrame.addInternalFrameListener(InternalFrameListener)
through queuevoid
close()
Closes the frame.void
deiconify()
Deiconifies frame.void
demaximize()
Demaximizes frame.void
dispose()
MapsJInternalFrame.dispose()
through queuestatic JInternalFrame
findJInternalFrame(Container cont, String text, boolean ce, boolean ccs)
Searches JInternalframe by title.static JInternalFrame
findJInternalFrame(Container cont, String text, boolean ce, boolean ccs, int index)
Searches JInternalframe by title.static JInternalFrame
findJInternalFrame(Container cont, ComponentChooser chooser)
Searches JInternalframe in container.static JInternalFrame
findJInternalFrame(Container cont, ComponentChooser chooser, int index)
Searches JInternalframe in container.static JInternalFrame
findJInternalFrameUnder(Component comp)
Searches JInternalFrame object which component lies on.static JInternalFrame
findJInternalFrameUnder(Component comp, ComponentChooser chooser)
Searches JInternalFrame object which component lies on.protected Container
findTitlePane()
Uses InternalframeDriver to get a title pane.JButtonOperator
getCloseButton()
Waits for a close button inside the title pane.Container
getContentPane()
MapsJInternalFrame.getContentPane()
through queueint
getDefaultCloseOperation()
MapsJInternalFrame.getDefaultCloseOperation()
through queueJInternalFrame.JDesktopIcon
getDesktopIcon()
MapsJInternalFrame.getDesktopIcon()
through queueJDesktopPane
getDesktopPane()
MapsJInternalFrame.getDesktopPane()
through queueHashtable
getDump()
Returns information about component.Icon
getFrameIcon()
MapsJInternalFrame.getFrameIcon()
through queueComponent
getGlassPane()
MapsJInternalFrame.getGlassPane()
through queueJInternalFrameOperator.JDesktopIconOperator
getIconOperator()
Creates an operator for an desktop icon.JMenuBar
getJMenuBar()
MapsJInternalFrame.getJMenuBar()
through queueint
getLayer()
MapsJInternalFrame.getLayer()
through queueJLayeredPane
getLayeredPane()
MapsJInternalFrame.getLayeredPane()
through queueJButtonOperator
getMaximizeButton()
Waits for a maximize button inside the title pane.JButtonOperator
getMinimizeButton()
Waits for a minimize button inside the title pane.TestOut
getOutput()
Returns print output streams or writers.Timeouts
getTimeouts()
Return current timeouts.String
getTitle()
MapsJInternalFrame.getTitle()
through queueContainerOperator
getTitleOperator()
Waits for the title pane.InternalFrameUI
getUI()
MapsJInternalFrame.getUI()
through queueString
getWarningString()
MapsJInternalFrame.getWarningString()
through queuevoid
iconify()
Iconifies frame.protected void
initOperators()
Initiaites suboperators.boolean
isClosable()
MapsJInternalFrame.isClosable()
through queueboolean
isClosed()
MapsJInternalFrame.isClosed()
through queueboolean
isIcon()
MapsJInternalFrame.isIcon()
through queueboolean
isIconifiable()
MapsJInternalFrame.isIconifiable()
through queueboolean
isMaximizable()
MapsJInternalFrame.isMaximizable()
through queueboolean
isMaximum()
MapsJInternalFrame.isMaximum()
through queueboolean
isResizable()
MapsJInternalFrame.isResizable()
through queueboolean
isSelected()
MapsJInternalFrame.isSelected()
through queuevoid
maximize()
Maximizes frame.void
move(int x, int y)
Moves frame to new location.void
moveToBack()
MapsJInternalFrame.moveToBack()
through queuevoid
moveToFront()
MapsJInternalFrame.moveToFront()
through queuevoid
pack()
MapsJInternalFrame.pack()
through queuevoid
removeInternalFrameListener(InternalFrameListener internalFrameListener)
MapsJInternalFrame.removeInternalFrameListener(InternalFrameListener)
through queuevoid
resize(int width, int height)
Resizes frame.void
scrollToFrame()
Scrolls to internal frame.void
scrollToRectangle(int x, int y, int width, int height)
Scrolls to internal frame's rectangle.void
scrollToRectangle(Rectangle rect)
Scrolls to internal frame's rectangle.void
setClosable(boolean b)
MapsJInternalFrame.setClosable(boolean)
through queuevoid
setClosed(boolean b)
MapsJInternalFrame.setClosed(boolean)
through queuevoid
setContentPane(Container container)
MapsJInternalFrame.setContentPane(Container)
through queuevoid
setDefaultCloseOperation(int i)
MapsJInternalFrame.setDefaultCloseOperation(int)
through queuevoid
setDesktopIcon(JInternalFrame.JDesktopIcon jDesktopIcon)
MapsJInternalFrame.setDesktopIcon(JDesktopIcon)
through queuevoid
setFrameIcon(Icon icon)
MapsJInternalFrame.setFrameIcon(Icon)
through queuevoid
setGlassPane(Component component)
MapsJInternalFrame.setGlassPane(Component)
through queuevoid
setIcon(boolean b)
MapsJInternalFrame.setIcon(boolean)
through queuevoid
setIconifiable(boolean b)
MapsJInternalFrame.setIconifiable(boolean)
through queuevoid
setJMenuBar(JMenuBar jMenuBar)
MapsJInternalFrame.setJMenuBar(JMenuBar)
through queuevoid
setLayer(Integer integer)
MapsJInternalFrame.setLayer(Integer)
through queuevoid
setLayeredPane(JLayeredPane jLayeredPane)
MapsJInternalFrame.setLayeredPane(JLayeredPane)
through queuevoid
setMaximizable(boolean b)
MapsJInternalFrame.setMaximizable(boolean)
through queuevoid
setMaximum(boolean b)
MapsJInternalFrame.setMaximum(boolean)
through queuevoid
setOutput(TestOut out)
Defines print output streams or writers.void
setResizable(boolean b)
MapsJInternalFrame.setResizable(boolean)
through queuevoid
setSelected(boolean b)
MapsJInternalFrame.setSelected(boolean)
through queuevoid
setTimeouts(Timeouts times)
Defines current timeouts.void
setTitle(String string)
MapsJInternalFrame.setTitle(String)
through queuevoid
setUI(InternalFrameUI internalFrameUI)
MapsJInternalFrame.setUI(InternalFrameUI)
through queuevoid
toBack()
MapsJInternalFrame.toBack()
through queuevoid
toFront()
MapsJInternalFrame.toFront()
through queuevoid
waitIcon(boolean icon)
Waits for the frame to be iconified or deiconified.static JInternalFrame
waitJInternalFrame(Container cont, String text, boolean ce, boolean ccs)
Waits JInternalframe by title.static JInternalFrame
waitJInternalFrame(Container cont, String text, boolean ce, boolean ccs, int index)
Waits JInternalframe by title.static JInternalFrame
waitJInternalFrame(Container cont, ComponentChooser chooser)
Waits JInternalframe in container.static JInternalFrame
waitJInternalFrame(Container cont, ComponentChooser chooser, int index)
Waits JInternalframe in container.void
waitMaximum(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 String TITLE_DPROP
Identifier for a "title" property.- See Also:
getDump()
, Constant Field Values
-
STATE_DPROP
public static final String STATE_DPROP
Identifier for a "state" property.- See Also:
getDump()
, Constant Field Values
-
STATE_NORMAL_DPROP_VALUE
public static final 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 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 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 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 String IS_RESIZABLE_DPROP
Identifier for a "resizable" property.- See Also:
getDump()
, Constant Field Values
-
IS_SELECTED_DPROP
public static final 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(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, 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, 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 JInternalFrame findJInternalFrame(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 JInternalFrame findJInternalFrame(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 JInternalFrame findJInternalFrame(Container cont, 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 JInternalFrame findJInternalFrame(Container cont, 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 JInternalFrame findJInternalFrameUnder(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 JInternalFrame findJInternalFrameUnder(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 JInternalFrame waitJInternalFrame(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 JInternalFrame waitJInternalFrame(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 JInternalFrame waitJInternalFrame(Container cont, 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 JInternalFrame waitJInternalFrame(Container cont, 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: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:
Outputable.getOutput()
-
getOutput
public TestOut 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:
Outputable.setOutput(org.netbeans.jemmy.TestOut)
-
setTimeouts
public void setTimeouts(Timeouts times)
Description copied from interface:Timeoutable
Defines current timeouts.- Specified by:
setTimeouts
in interfaceTimeoutable
- Overrides:
setTimeouts
in classJComponentOperator
- Parameters:
times
- A collection of timeout assignments.- See Also:
Timeoutable.getTimeouts()
-
getTimeouts
public Timeouts 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:
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(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 Hashtable getDump()
Returns information about component.- Overrides:
getDump
in classJComponentOperator
- Returns:
- a Hashtable containing name-value pairs.
-
addInternalFrameListener
public void addInternalFrameListener(InternalFrameListener internalFrameListener)
MapsJInternalFrame.addInternalFrameListener(InternalFrameListener)
through queue
-
dispose
public void dispose()
MapsJInternalFrame.dispose()
through queue
-
getContentPane
public Container getContentPane()
MapsJInternalFrame.getContentPane()
through queue
-
getDefaultCloseOperation
public int getDefaultCloseOperation()
MapsJInternalFrame.getDefaultCloseOperation()
through queue
-
getDesktopIcon
public JInternalFrame.JDesktopIcon getDesktopIcon()
MapsJInternalFrame.getDesktopIcon()
through queue
-
getDesktopPane
public JDesktopPane getDesktopPane()
MapsJInternalFrame.getDesktopPane()
through queue
-
getFrameIcon
public Icon getFrameIcon()
MapsJInternalFrame.getFrameIcon()
through queue
-
getGlassPane
public Component getGlassPane()
MapsJInternalFrame.getGlassPane()
through queue
-
getJMenuBar
public JMenuBar getJMenuBar()
MapsJInternalFrame.getJMenuBar()
through queue
-
getLayer
public int getLayer()
MapsJInternalFrame.getLayer()
through queue
-
getLayeredPane
public JLayeredPane getLayeredPane()
MapsJInternalFrame.getLayeredPane()
through queue
-
getTitle
public String getTitle()
MapsJInternalFrame.getTitle()
through queue
-
getUI
public InternalFrameUI getUI()
MapsJInternalFrame.getUI()
through queue
-
getWarningString
public 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(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(Container container)
MapsJInternalFrame.setContentPane(Container)
through queue
-
setDefaultCloseOperation
public void setDefaultCloseOperation(int i)
MapsJInternalFrame.setDefaultCloseOperation(int)
through queue
-
setDesktopIcon
public void setDesktopIcon(JInternalFrame.JDesktopIcon jDesktopIcon)
MapsJInternalFrame.setDesktopIcon(JDesktopIcon)
through queue
-
setFrameIcon
public void setFrameIcon(Icon icon)
MapsJInternalFrame.setFrameIcon(Icon)
through queue
-
setGlassPane
public void setGlassPane(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(JMenuBar jMenuBar)
MapsJInternalFrame.setJMenuBar(JMenuBar)
through queue
-
setLayer
public void setLayer(Integer integer)
MapsJInternalFrame.setLayer(Integer)
through queue
-
setLayeredPane
public void setLayeredPane(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(String string)
MapsJInternalFrame.setTitle(String)
through queue
-
setUI
public void setUI(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 Container findTitlePane()
Uses InternalframeDriver to get a title pane.- Returns:
- a title pane.
-
initOperators
protected void initOperators()
Initiaites suboperators.
-
-