|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ComponentMovableQuery | Line # 27 | 1 | 33.3% | 1 | 0 | 100% |
1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 1 | /* | |
| 2 | * Created on Nov 6, 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.driver; | |
| 17 | ||
| 18 | import java.awt.*; | |
| 19 | ||
| 20 | import javax.swing.JInternalFrame; | |
| 21 | ||
| 22 | /** | |
| 23 | * Understands a query that indicates whether it is possible for the user to move the given component. | |
| 24 | * | |
| 25 | * @author Alex Ruiz | |
| 26 | */ | |
| 27 | final class ComponentMovableQuery { | |
| 28 | ||
| 29 | 8 |
static boolean isUserMovable(Component c) { |
| 30 | 8 | return c instanceof Dialog || c instanceof Frame || c instanceof JInternalFrame; |
| 31 | } | |
| 32 | ||
| 33 |
private ComponentMovableQuery() {} |
|
| 34 | } | |
|
||||||||||||