ButtonDriver.java revision 13978:1993af50385d
1249666Strociny/*
2249666Strociny * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
3249666Strociny * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4249666Strociny *
5249666Strociny * This code is free software; you can redistribute it and/or modify it
6249666Strociny * under the terms of the GNU General Public License version 2 only, as
7249666Strociny * published by the Free Software Foundation.
8249666Strociny *
9249666Strociny * This code is distributed in the hope that it will be useful, but WITHOUT
10249666Strociny * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11249666Strociny * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12249666Strociny * version 2 for more details (a copy is included in the LICENSE file that
13249666Strociny * accompanied this code).
14249666Strociny *
15249666Strociny * You should have received a copy of the GNU General Public License version
16249666Strociny * 2 along with this work; if not, write to the Free Software Foundation,
17249666Strociny * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18249666Strociny *
19249666Strociny * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20249666Strociny * or visit www.oracle.com if you need additional information or have any
21249666Strociny * questions.
22249666Strociny */
23249666Strocinypackage org.netbeans.jemmy.drivers;
24249666Strociny
25249666Strocinyimport org.netbeans.jemmy.operators.ComponentOperator;
26249666Strociny
27249666Strociny/**
28249666Strociny * Defines how to work with buttons.
29249666Strociny */
30249666Strocinypublic interface ButtonDriver {
31249666Strociny
32249666Strociny    /**
33249666Strociny     * Presses a button.
34249666Strociny     *
35249666Strociny     * @param oper Button operator.
36249666Strociny     */
37249666Strociny    public void press(ComponentOperator oper);
38249666Strociny
39249666Strociny    /**
40249666Strociny     * Releases a button.
41249666Strociny     *
42249666Strociny     * @param oper Button operator.
43249666Strociny     */
44249666Strociny    public void release(ComponentOperator oper);
45249666Strociny
46249666Strociny    /**
47249666Strociny     * Pushes a button.
48249666Strociny     *
49249666Strociny     * @param oper Button operator.
50249666Strociny     */
51249666Strociny    public void push(ComponentOperator oper);
52249666Strociny}
53249666Strociny