Clover Coverage Report - FEST Swing 1.2
Coverage timestamp: Tue Jun 1 2010 15:19:25 PDT
0   52   0   -
0   9   -   0
0     -  
1    
 
  JPopupMenuInvokerFixture       Line # 31 0 - 0 0 - -1.0
 
No Tests
 
1    /*
2    * Created on Mar 1, 2008
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5    * in compliance with the License. You may obtain a copy of the License at
6    *
7    * http://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software distributed under the License
10    * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11    * or implied. See the License for the specific language governing permissions and limitations under
12    * the License.
13    *
14    * Copyright @2008-2010 the original author or authors.
15    */
16    package org.fest.swing.fixture;
17   
18    import java.awt.Component;
19    import java.awt.Point;
20   
21    import javax.swing.JPopupMenu;
22   
23    import org.fest.swing.exception.ComponentLookupException;
24   
25    /**
26    * Understands input simulation on <code>{@link Component}</code>s capable of invoking
27    * <code>{@link JPopupMenu}</code>s.
28    *
29    * @author Alex Ruiz
30    */
 
31    public interface JPopupMenuInvokerFixture {
32   
33    /**
34    * Shows a pop-up menu using this fixture's <code>{@link Component}</code> as the invoker of the pop-up menu.
35    * @return a fixture that manages the displayed pop-up menu.
36    * @throws IllegalStateException if this fixture's <code>Component</code> is disabled.
37    * @throws IllegalStateException if this fixture's <code>Component</code> is not showing on the screen.
38    * @throws ComponentLookupException if a pop-up menu cannot be found.
39    */
40    JPopupMenuFixture showPopupMenu();
41   
42    /**
43    * Shows a pop-up menu at the given point using this fixture's <code>{@link Component}</code> as the invoker of the
44    * pop-up menu.
45    * @param p the given point where to show the pop-up menu.
46    * @return a fixture that manages the displayed pop-up menu.
47    * @throws IllegalStateException if this fixture's <code>Component</code> is disabled.
48    * @throws IllegalStateException if this fixture's <code>Component</code> is not showing on the screen.
49    * @throws ComponentLookupException if a pop-up menu cannot be found.
50    */
51    JPopupMenuFixture showPopupMenuAt(Point p);
52    }