public JPopupMenu callPopupOnComponent(ComponentOperator componentOperator, Point pointToClick) { return JPopupMenuOperator.callPopup(componentOperator, pointToClick.x, pointToClick.y, Operator .getPopupMouseButton()); } }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboServer() { if (_cboServer==null) { JLabelOperator jlo =new JLabelOperator(this, "Server:"); _cboServer = new JComboBoxOperator((JComboBox)jlo.getLabelFor()); } return _cboServer; }
/** Returns operator for label Project Folder * @return JLabelOperator */ public JLabelOperator lblProjectFolder() { if(_lblProjectFolder == null) { _lblProjectFolder = new JLabelOperator(this, "Project Folder:"); } return _lblProjectFolder; }
public void callPopupMenuItemOnSelectedCells(String menuPath) { int selectedRow = jTableOperator.getSelectedRow(); int selectedColumn = jTableOperator.getSelectedColumn(); JPopupMenuOperator menuOperator = new JPopupMenuOperator( jTableOperator.callPopupOnCell(selectedRow, selectedColumn)); JMenuItemOperator item = menuOperator.showMenuItem(menuPath, new EqualsStringComparator()); item.push(); }
/** Returns operator of libraries folder textfield * @return JTextOperator */ public JTextFieldOperator txtLibrariesFolder() { if(_txtLirariesFolder == null) { if ( lblWebPagesFolder().getLabelFor()!=null ) { _txtLirariesFolder = new JTextFieldOperator((JTextField)lblLibrariesFolder().getLabelFor()); } } return _txtLirariesFolder; }
public void increase() { spinnerOperator.getIncreaseOperator().push(); }
public void decrease() { spinnerOperator.getDecreaseOperator().push(); }
/** Sets given project location /** Returns operator for browse project location button * @return JButtonOperator */ public JButtonOperator btBrowseProjectLocation() { if ( _btBrowseProjectLocation==null ) { _btBrowseProjectLocation = new JButtonOperator(this, "Browse..."); } return _btBrowseProjectLocation; }
@Override protected Object executeWhenComboBoxOpen() { int itemIndex = findItemIndex(comboItemIdentifier); boolean verificationEnabled = comboboxOperator .getVerification(); comboboxOperator.setVerification(false); comboboxOperator.selectItem(itemIndex); if (verificationEnabled) verifyItemSelection(comboItemIdentifier); return null; } }.execute();
/** Returns operator for text field 'Create Main File' * @return JTextFieldOperator */ public JTextFieldOperator txtCreateMainClass() { if ( _txtCreateMainFile==null ) { _txtCreateMainFile = new JTextFieldOperator(this, 4); } return _txtCreateMainFile; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboAddToEnterpriseApplication() { if (_cboAddToEnterpriseApplication==null) { _cboAddToEnterpriseApplication = new JComboBoxOperator(this, 2); } return _cboAddToEnterpriseApplication; }
TFileChooserOperator(final WindowOperator parent) { super((JFileChooser) waitComponent( waitJFileChooserDialog(parent), new JFileChooserFinder(), 0, parent.getTimeouts(), parent.getOutput())); super.copyEnvironment(parent); }
/** * will return the value in table cell locate in Row= row and Column=column * * @param paramTable * @param row * @param column * @return */ public Object getTableCellValue(JTableOperator paramTable, int row, int column) { return paramTable.getValueAt(row, column); }
/** * For whatever reason clearText fails on AWT component, if the component is not shown on screen. * This is to work around that problem. **/ @Override public void clearText() { super.setText(""); } }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboJavaEEVersion() { if (_cboJavaEEVersion==null) { JLabelOperator jlo =new JLabelOperator(this, "Java EE Version:"); _cboJavaEEVersion = new JComboBoxOperator((JComboBox)jlo.getLabelFor()); } return _cboJavaEEVersion; }
/** Returns operator of project folder textfield * @return JTextOperator */ public JTextFieldOperator txtProjectFolder() { if(_txtProjectFolder == null) { if ( lblProjectFolder().getLabelFor()!=null ) { _txtProjectFolder = new JTextFieldOperator( (JTextField)lblProjectFolder().getLabelFor()); } } return _txtProjectFolder; }
/** Tries to find "Context Path:" JLabel in this dialog. * @return JLabelOperator */ public JLabelOperator lblContextPath() { if (_lblContextPath==null) { _lblContextPath = new JLabelOperator(this, "Context Path:"); } return _lblContextPath; }
/** Tries to find "Add to Enterprise Application:" JLabel in this dialog. * @return JLabelOperator */ public JLabelOperator lblAddToEnterpriseApplication() { if (_lblAddToEnterpriseApplication==null) { _lblAddToEnterpriseApplication = new JLabelOperator(this, "Add to Enterprise Application:"); } return _lblAddToEnterpriseApplication; }
/** Tries to find "Server:" JLabel in this dialog. * @return JLabelOperator */ public JLabelOperator lblServer() { if (_lblServer==null) { _lblServer = new JLabelOperator(this, "Server:"); } return _lblServer; }
/** Tries to find "<html>There may be legal considerations when sharing server JAR files. Be sure to check the license for your server to make sure you can distribute server JAR files to other developers.</html>" WizardDescriptor$FixedHeightLabel in this dialog. * @return JLabelOperator */ public JLabelOperator lblSharingJARLicenseRemark() { if (_lblSharingJARLicenseRemark == null) { _lblSharingJARLicenseRemark = new JLabelOperator(this, "There may be legal considerations when sharing server JAR files"); } return _lblSharingJARLicenseRemark; }