org.netbeans.modules.jellytools.platform/3 3.13

org.netbeans.jellytools
Class HelpOperator

java.lang.Object
  extended by org.netbeans.jemmy.operators.Operator
      extended by org.netbeans.jemmy.operators.ComponentOperator
          extended by org.netbeans.jemmy.operators.ContainerOperator
              extended by org.netbeans.jemmy.operators.WindowOperator
                  extended by org.netbeans.jellytools.HelpOperator
All Implemented Interfaces:
org.netbeans.jemmy.Outputable, org.netbeans.jemmy.Timeoutable

public class HelpOperator
extends org.netbeans.jemmy.operators.WindowOperator

Class implementing all necessary methods for handling "Help" Frame. Normally the Help window is a JFrame. But the Help window can be transformed to a JDialog when another modal dialog is shown. This operator can handle both states.

See Also:
HelpAction

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.ContainerOperator.ContainerFinder
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.Operator.ComponentVisualizer, org.netbeans.jemmy.operators.Operator.DefaultPathParser, org.netbeans.jemmy.operators.Operator.DefaultStringComparator, org.netbeans.jemmy.operators.Operator.Finder, org.netbeans.jemmy.operators.Operator.MapAction, org.netbeans.jemmy.operators.Operator.MapBooleanAction, org.netbeans.jemmy.operators.Operator.MapByteAction, org.netbeans.jemmy.operators.Operator.MapCharacterAction, org.netbeans.jemmy.operators.Operator.MapDoubleAction, org.netbeans.jemmy.operators.Operator.MapFloatAction, org.netbeans.jemmy.operators.Operator.MapIntegerAction, org.netbeans.jemmy.operators.Operator.MapLongAction, org.netbeans.jemmy.operators.Operator.MapVoidAction, org.netbeans.jemmy.operators.Operator.NoBlockingAction, org.netbeans.jemmy.operators.Operator.PathParser, org.netbeans.jemmy.operators.Operator.StringComparator
 
Field Summary
 
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
HelpOperator()
          Creates new HelpOperator that can handle it.
HelpOperator(String title)
          Creates new HelpOperator that can handle it.
 
Method Summary
 void back()
          clicks on "Back" JButton It throws TimeoutExpiredException when MetalSplitPaneDivider$1 not found
 org.netbeans.jemmy.operators.JButtonOperator btBack()
          Tries to find "" JButton in this dialog.
 org.netbeans.jemmy.operators.JButtonOperator btNext()
          Tries to find "" JButton in this dialog.
 org.netbeans.jemmy.operators.JButtonOperator btPageSetup()
          Tries to find "" JButton in this dialog.
 org.netbeans.jemmy.operators.JButtonOperator btPrint()
          Tries to find "" JButton in this dialog.
 String getContentText()
          returns help content in plain text form
 String getTitle()
          Returns title of help window.
static HelpOperator invoke()
          invokes default help
 void next()
          clicks on "Next" JButton It throws TimeoutExpiredException when JButton not found
 void pageSetup()
          clicks on "Page Setup" JButton It throws TimeoutExpiredException when JButton not found
 void print()
          clicks on "Print" JButton It throws TimeoutExpiredException when JButton not found
 void searchFind(String text)
          tries to find and set text of txtSearchFind
 void selectPageContents()
          selects page Contents
 void selectPageSearch()
          selects page Search
 org.netbeans.jemmy.operators.JSplitPaneOperator splpHelpSplitPane()
          Tries to find "" JSplitPaneOperator in this dialog.
 org.netbeans.jemmy.operators.JTabbedPaneOperator tbpHelpTabPane()
          Tries to find "" JTabbedPane in this dialog.
 org.netbeans.jemmy.operators.JTreeOperator treeContents()
          Tries to find JTree in Contents tab of this dialog.
 org.netbeans.jemmy.operators.JTreeOperator treeSearch()
          Tries to find JTree in Search tab of this dialog.
 org.netbeans.jemmy.operators.JEditorPaneOperator txtContentViewer()
          Tries to find null BasicContentViewerUI$JHEditorPane in this dialog.
 org.netbeans.jemmy.operators.JTextFieldOperator txtSearchFind()
          Tries to find JTextField Find in Search tab of this dialog.
 void verify()
          Performs verification by accessing all sub-components
 
Methods inherited from class org.netbeans.jemmy.operators.WindowOperator
activate, addWindowListener, applyResourceBundle, applyResourceBundle, close, copyEnvironment, dispose, findSubWindow, findSubWindow, findWindow, findWindow, findWindow, findWindow, getFocusOwner, getOutput, getOwnedWindows, getOwner, getWarningString, isActive, isFocused, move, pack, removeWindowListener, resize, setOutput, toBack, toFront, waitClosed, waitSubWindow, waitSubWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow
 
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, getTimeouts, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, setTimeouts, 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, getCenterXForClick, getCenterY, getCenterYForClick, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getDump, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpOperator

public HelpOperator()
Creates new HelpOperator that can handle it. It tries to find a window which contains some javax.help.JHelp* sub component. It throws TimeoutExpiredException when window is not found


HelpOperator

public HelpOperator(String title)
Creates new HelpOperator that can handle it. It tries to find a window which contains some javax.help.JHelp* sub component and the window has given title. It throws TimeoutExpiredException when JFrame not found

Parameters:
title - String help frame title
Method Detail

getTitle

public String getTitle()
Returns title of help window. The help window can be either JFrame or JDialog.

Returns:
title of help window

invoke

public static HelpOperator invoke()
invokes default help

Returns:
HelpOperator for invoked help

btBack

public org.netbeans.jemmy.operators.JButtonOperator btBack()
Tries to find "" JButton in this dialog. It throws TimeoutExpiredException when component not found

Returns:
JButtonOperator

btNext

public org.netbeans.jemmy.operators.JButtonOperator btNext()
Tries to find "" JButton in this dialog. It throws TimeoutExpiredException when component not found

Returns:
JButtonOperator

btPrint

public org.netbeans.jemmy.operators.JButtonOperator btPrint()
Tries to find "" JButton in this dialog. It throws TimeoutExpiredException when component not found

Returns:
JButtonOperator

splpHelpSplitPane

public org.netbeans.jemmy.operators.JSplitPaneOperator splpHelpSplitPane()
Tries to find "" JSplitPaneOperator in this dialog. It throws TimeoutExpiredException when component not found

Returns:
JButtonOperator

tbpHelpTabPane

public org.netbeans.jemmy.operators.JTabbedPaneOperator tbpHelpTabPane()
Tries to find "" JTabbedPane in this dialog. It throws TimeoutExpiredException when component not found

Returns:
JButtonOperator

btPageSetup

public org.netbeans.jemmy.operators.JButtonOperator btPageSetup()
Tries to find "" JButton in this dialog. It throws TimeoutExpiredException when component not found

Returns:
JButtonOperator

treeContents

public org.netbeans.jemmy.operators.JTreeOperator treeContents()
Tries to find JTree in Contents tab of this dialog. It throws TimeoutExpiredException when component not found

Returns:
JTreeOperator

treeSearch

public org.netbeans.jemmy.operators.JTreeOperator treeSearch()
Tries to find JTree in Search tab of this dialog. It throws TimeoutExpiredException when component not found

Returns:
JTreeOperator

txtSearchFind

public org.netbeans.jemmy.operators.JTextFieldOperator txtSearchFind()
Tries to find JTextField Find in Search tab of this dialog. It throws TimeoutExpiredException when component not found

Returns:
JTextFieldOperator

txtContentViewer

public org.netbeans.jemmy.operators.JEditorPaneOperator txtContentViewer()
Tries to find null BasicContentViewerUI$JHEditorPane in this dialog. It throws TimeoutExpiredException when component not found

Returns:
JEditorPaneOperator

back

public void back()
clicks on "Back" JButton It throws TimeoutExpiredException when MetalSplitPaneDivider$1 not found


next

public void next()
clicks on "Next" JButton It throws TimeoutExpiredException when JButton not found


print

public void print()
clicks on "Print" JButton It throws TimeoutExpiredException when JButton not found


pageSetup

public void pageSetup()
clicks on "Page Setup" JButton It throws TimeoutExpiredException when JButton not found


selectPageContents

public void selectPageContents()
selects page Contents


selectPageSearch

public void selectPageSearch()
selects page Search


searchFind

public void searchFind(String text)
tries to find and set text of txtSearchFind

Parameters:
text - String text

getContentText

public String getContentText()
returns help content in plain text form

Returns:
String text of help

verify

public void verify()
Performs verification by accessing all sub-components


org.netbeans.modules.jellytools.platform/3 3.13

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.