|
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 "ErrorOperator" NbPresenter. * * @author Patrik Knakal * @version 1.1 */ public class ErrorOperator extends JDialogOperator { /** Creates new ErrorOperator that can handle it. */ public ErrorOperator() { super("Error"); //NOI18N } private JButtonOperator _btOK; //****************************** // Subcomponents definition part //****************************** /** Tries to find "OK" JButton in this dialog. * @return JButtonOperator */ public JButtonOperator btOK() { if (_btOK==null) { _btOK = new JButtonOperator(this, "OK"); //NOI18N } return _btOK; } //**************************************** // Low-level functionality definition part //**************************************** /** clicks on "OK" JButton */ public void oK() { btOK().push(); } //***************************************** // High-level functionality definition part //***************************************** /** Performs verification of ErrorOperator by accessing all its components. */ public void verify() { btOK(); } /** Performs simple test of ErrorOperator * @param args the command line arguments */ public static void main(String args[]) { new ErrorOperator().verify(); System.out.println("ErrorOperator 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.