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

org.netbeans.jellytools.properties.editors
Class StringArrayCustomEditorOperator

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.jemmy.operators.DialogOperator
                      extended by org.netbeans.jemmy.operators.JDialogOperator
                          extended by org.netbeans.jellytools.NbDialogOperator
                              extended by org.netbeans.jellytools.properties.editors.StringArrayCustomEditorOperator
All Implemented Interfaces:
org.netbeans.jemmy.Outputable, org.netbeans.jemmy.Timeoutable

public class StringArrayCustomEditorOperator
extends NbDialogOperator

Class implementing all necessary methods for handling String Array Custom Editor


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JDialogOperator
org.netbeans.jemmy.operators.JDialogOperator.JDialogFinder
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.DialogOperator
org.netbeans.jemmy.operators.DialogOperator.DialogByTitleFinder, org.netbeans.jemmy.operators.DialogOperator.DialogFinder
 
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.DialogOperator
IS_MODAL_DPROP, IS_RESIZABLE_DPROP, TITLE_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
StringArrayCustomEditorOperator(org.netbeans.jemmy.operators.JDialogOperator wrapper)
          Creates new StringArrayCustomEditorOperator
StringArrayCustomEditorOperator(String title)
          Creates new StringArrayCustomEditorOperator
 
Method Summary
 void add()
          clicks on "Add" JButton
 void add(String value)
          adds String to the edited array
 org.netbeans.jemmy.operators.JButtonOperator btAdd()
          Tries to find "Add" JButton in this dialog.
 org.netbeans.jemmy.operators.JButtonOperator btDown()
          Tries to find "Down" JButton in this dialog.
 org.netbeans.jemmy.operators.JButtonOperator btEdit()
          Tries to find "Edit" JButton in this dialog.
 org.netbeans.jemmy.operators.JButtonOperator btRemove()
          Tries to find "Remove" JButton in this dialog.
 org.netbeans.jemmy.operators.JButtonOperator btUp()
          Tries to find "Up" JButton in this dialog.
 void down()
          clicks on "Down" JButton
 void down(String value)
          Moves given item one position down.
 void edit()
          clicks on "Edit" JButton
 void edit(String oldValue, String newValue)
          Replaces oldValue by newValue.
 String getItemText()
          Gets text from text field.
 String[] getStringArrayValue()
          getter for array of Strings
 org.netbeans.jemmy.operators.JListOperator lstItemList()
          Tries to find JList in this dialog.
 void remove()
          clicks on "Remove" JButton
 void remove(String value)
          removes String from array
 void removeAll()
          removes all Strings from array
 void setItemText(String text)
          tries to find and set text of txtItem
 void setStringArrayValue(String[] value)
          setter for String array
 org.netbeans.jemmy.operators.JTextFieldOperator txtItemText()
          Tries to find null JTextField in this dialog.
 void up()
          clicks on "Up" JButton
 void up(String value)
          Moves given item one position up.
 void verify()
          Performs verification by accessing all sub-components
 
Methods inherited from class org.netbeans.jellytools.NbDialogOperator
btCancel, btClose, btHelp, btNo, btOK, btYes, cancel, closeByButton, help, no, ok, yes
 
Methods inherited from class org.netbeans.jemmy.operators.JDialogOperator
findJDialog, findJDialog, findJDialog, findJDialog, findJDialog, findJDialog, findJDialog, findJDialog, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, getTopModalDialog, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLocationRelativeTo, waitJDialog, waitJDialog, waitJDialog, waitJDialog, waitJDialog, waitJDialog, waitJDialog, waitJDialog, waitJDialog, waitJDialog, waitJDialog
 
Methods inherited from class org.netbeans.jemmy.operators.DialogOperator
getDump, getTitle, isModal, isResizable, setModal, setResizable, setTitle, waitDialog, waitDialog, waitDialog, waitTitle
 
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, 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, 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

StringArrayCustomEditorOperator

public StringArrayCustomEditorOperator(String title)
Creates new StringArrayCustomEditorOperator

Parameters:
title - String title of custom editor
Throws:
TimeoutExpiredException - when NbDialog not found

StringArrayCustomEditorOperator

public StringArrayCustomEditorOperator(org.netbeans.jemmy.operators.JDialogOperator wrapper)
Creates new StringArrayCustomEditorOperator

Parameters:
wrapper - JDialogOperator wrapper for custom editor
Method Detail

btEdit

public org.netbeans.jemmy.operators.JButtonOperator btEdit()
Tries to find "Edit" JButton in this dialog.

Returns:
JButtonOperator
Throws:
TimeoutExpiredException - when component not found

btDown

public org.netbeans.jemmy.operators.JButtonOperator btDown()
Tries to find "Down" JButton in this dialog.

Returns:
JButtonOperator
Throws:
TimeoutExpiredException - when component not found

btUp

public org.netbeans.jemmy.operators.JButtonOperator btUp()
Tries to find "Up" JButton in this dialog.

Returns:
JButtonOperator
Throws:
TimeoutExpiredException - when component not found

btAdd

public org.netbeans.jemmy.operators.JButtonOperator btAdd()
Tries to find "Add" JButton in this dialog.

Returns:
JButtonOperator
Throws:
TimeoutExpiredException - when component not found

lstItemList

public org.netbeans.jemmy.operators.JListOperator lstItemList()
Tries to find JList in this dialog.

Returns:
JListOperator
Throws:
TimeoutExpiredException - when component not found

btRemove

public org.netbeans.jemmy.operators.JButtonOperator btRemove()
Tries to find "Remove" JButton in this dialog.

Returns:
JButtonOperator
Throws:
TimeoutExpiredException - when component not found

txtItemText

public org.netbeans.jemmy.operators.JTextFieldOperator txtItemText()
Tries to find null JTextField in this dialog.

Returns:
JTextFieldOperator
Throws:
TimeoutExpiredException - when component not found

edit

public void edit()
clicks on "Edit" JButton

Throws:
TimeoutExpiredException - when JButton not found

down

public void down()
clicks on "Down" JButton

Throws:
TimeoutExpiredException - when JButton not found

up

public void up()
clicks on "Up" JButton

Throws:
TimeoutExpiredException - when JButton not found

add

public void add()
clicks on "Add" JButton

Throws:
TimeoutExpiredException - when JButton not found

remove

public void remove()
clicks on "Remove" JButton

Throws:
TimeoutExpiredException - when JButton not found

getItemText

public String getItemText()
Gets text from text field.

Returns:
String edited item text

setItemText

public void setItemText(String text)
tries to find and set text of txtItem

Parameters:
text - String text

getStringArrayValue

public String[] getStringArrayValue()
getter for array of Strings

Returns:
String[] array of strings from custom editor

add

public void add(String value)
adds String to the edited array

Parameters:
value - String value to be added

remove

public void remove(String value)
removes String from array

Parameters:
value - String value to be removed

removeAll

public void removeAll()
removes all Strings from array

Overrides:
removeAll in class org.netbeans.jemmy.operators.ContainerOperator

edit

public void edit(String oldValue,
                 String newValue)
Replaces oldValue by newValue. It selects oldValue item in the list, types newValue into text field and pushes Edit button.

Parameters:
oldValue - value from list to be replaced
newValue - new value

up

public void up(String value)
Moves given item one position up. It select value item and pushes Up button. It fails, if item is the topmost and Up button is disabled.

Parameters:
value - item to be moved up

down

public void down(String value)
Moves given item one position down. It select value item and pushes Down button. It fails, if item is the bottommost and Down button is disabled.

Parameters:
value - item to be moved down

setStringArrayValue

public void setStringArrayValue(String[] value)
setter for String array

Parameters:
value - String[] array os Strings to be set

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.