public class OptionsOperator extends NbDialogOperator
org.netbeans.jemmy.operators.JDialogOperator.JDialogFinder
org.netbeans.jemmy.operators.DialogOperator.DialogByTitleFinder, org.netbeans.jemmy.operators.DialogOperator.DialogFinder
org.netbeans.jemmy.operators.ContainerOperator.ContainerFinder
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
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LEVEL
Constant used for indication of default property definition level
(second column after ">>").
|
static int |
USER_LEVEL
Constant used for indication of user property definition level
(first column after ">>").
|
IS_MODAL_DPROP, IS_RESIZABLE_DPROP, TITLE_DPROP
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
OptionsOperator()
Waits for the Options window opened
|
Modifier and Type | Method and Description |
---|---|
protected void |
clickOnSecondHeader()
Clicks on "<<" column header.
|
protected void |
defineHere(int row,
int colIndex)
Chooses "Define Here" from the combobox.
|
protected void |
editLevel(int rowIndex,
int colIndex,
String value)
Causes table editing and chooses a value in the combobox.
|
int |
getLevel(String optionPath)
Gets definition level for the option.
|
PropertySheetOperator |
getPropertySheet(String optionPath)
Selects an option in the options tree, waits for property sheet
corresponding to selected node and returns instance of PropertySheetOperator.
|
Component |
getSource()
Returns component.
|
protected int |
getValue(int row,
int column)
Gets a value of the level definition mark.
|
void |
hideLevels()
Hides definition levels column by clicking on the ">>" table
column title.
|
static OptionsOperator |
invoke()
Invoces Options window by the menu operation.
|
protected void |
revertLevel(int row,
int colIndex)
Chooses "Revert Def" from the combobox.
|
void |
selectCategory(String name)
Selects a category with given name.
|
void |
selectEditor()
Selects Editor category.
|
void |
selectFontAndColors()
Selects Fonts & Colors category.
|
void |
selectGeneral()
Selects General category.
|
void |
selectJava()
Selects Java category.
|
void |
selectKeymap()
Selects Keymap category.
|
void |
selectMiscellaneous()
Selects Miscellaneous category.
|
int |
selectOption(String optionPath)
Selects an option in the options tree.
|
void |
setDefaultLevel(String optionPath)
Make an option to be difined on the default level.
|
protected void |
setLevel(int row,
int level)
Sets a level for the row index.
|
void |
setLevel(String optionPath,
int level)
Sets definition level for the option.
|
void |
setUserLevel(String optionPath)
Make an option to be difined on the user level.
|
void |
showLevels()
Shows definition levels column by clicking on the "<<" table
column title.
|
TreeTableOperator |
treeTable()
Getter for table containing property list and
property definition levels.
|
void |
verify()
Performs verification by accessing all sub-components
|
btCancel, btClose, btHelp, btNo, btOK, btYes, cancel, close, closeByButton, help, no, ok, yes
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
getDump, getTitle, isModal, isResizable, setModal, setResizable, setTitle, waitDialog, waitDialog, waitDialog, waitTitle
activate, addWindowListener, applyResourceBundle, applyResourceBundle, copyEnvironment, dispose, findSubWindow, findSubWindow, findWindow, findWindow, findWindow, findWindow, getFocusOwner, getOutput, getOwnedWindows, getOwner, getWarningString, isActive, isFocused, move, pack, removeWindowListener, requestClose, requestCloseAndThenHide, resize, setOutput, toBack, toFront, waitClosed, waitSubWindow, waitSubWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow
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
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, findComponents, 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, 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, typedKey, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabled
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
public static final int USER_LEVEL
public static final int DEFAULT_LEVEL
public static OptionsOperator invoke()
public TreeTableOperator treeTable()
public int selectOption(String optionPath)
optionPath
- Path to the option in left (tree-like) column.public PropertySheetOperator getPropertySheet(String optionPath)
optionPath
- Path to the option in left (tree-like) column.public void showLevels()
public void hideLevels()
public void setLevel(String optionPath, int level)
optionPath
- Path to the option in left (tree-like) column.level
- One of the USER_LEVEL or DEFAULT_LEVELpublic int getLevel(String optionPath)
optionPath
- Path to the option in left (tree-like) column.public void setUserLevel(String optionPath)
optionPath
- Path to the option in left (tree-like) column.public void setDefaultLevel(String optionPath)
optionPath
- Path to the option in left (tree-like) column.protected void setLevel(int row, int level)
row
- row index in the tablelevel
- level valueprotected int getValue(int row, int column)
row
- row index in the tablecolumn
- column index in the tableprotected void revertLevel(int row, int colIndex)
row
- row index in the tablecolIndex
- column index in the tableprotected void defineHere(int row, int colIndex)
row
- row index in the tablecolIndex
- column index in the tableprotected void editLevel(int rowIndex, int colIndex, String value)
rowIndex
- Row index.colIndex
- Column index. One of the columns containing
level definition marks.value
- String value to be choosed in the combobox.protected void clickOnSecondHeader()
public Component getSource()
getSource
in class org.netbeans.jemmy.operators.ComponentOperator
public void selectCategory(String name)
name
- name of category to be selectedpublic void selectGeneral()
public void selectEditor()
public void selectJava()
public void selectFontAndColors()
public void selectKeymap()
public void selectMiscellaneous()
public void verify()