|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.jellytools.modules.db; import org.netbeans.jemmy.operators.*; /** Class implementing all necessary methods for handling "Confirm Object Deletion" NbPresenter. * * @author Patrik Knakal * @version 1.0 */ public class ConfirmObjectDeletionOperator extends JDialogOperator { /** Creates new ConfirmObjectDeletionOperator that can handle it. */ public ConfirmObjectDeletionOperator() { super("Confirm Object Deletion"); //NOI18N } private JButtonOperator _btYes; private JButtonOperator _btNo; //****************************** // Subcomponents definition part //****************************** /** Tries to find "Yes" JButton in this dialog. * @return JButtonOperator */ public JButtonOperator btYes() { if (_btYes==null) { _btYes = new JButtonOperator(this, "Yes"); //NOI18N } return _btYes; } /** Tries to find "No" JButton in this dialog. * @return JButtonOperator */ public JButtonOperator btNo() { if (_btNo==null) { _btNo = new JButtonOperator(this, "No"); //NOI18N } return _btNo; } //**************************************** // Low-level functionality definition part //**************************************** /** clicks on "Yes" JButton */ public void yes() { btYes().push(); } /** clicks on "No" JButton */ public void no() { btNo().push(); } //***************************************** // High-level functionality definition part //***************************************** /** Performs verification of ConfirmObjectDeletionOperator by accessing all its components. */ public void verify() { btYes(); btNo(); } /** Performs simple test of ConfirmObjectDeletionOperator * @param args the command line arguments */ public static void main(String args[]) { new ConfirmObjectDeletionOperator().verify(); System.out.println("ConfirmObjectDeletionOperator verification finished."); //NOI18N } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.