EMMA Coverage Report (generated Wed Feb 13 07:49:24 ICT 2008)
[all classes][net.sourceforge.hiveboard.docking]

COVERAGE SUMMARY FOR SOURCE FILE [ViewHelper.java]

nameclass, %method, %block, %line, %
ViewHelper.java100% (1/1)83%  (5/6)92%  (36/39)71%  (5/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ViewHelper100% (1/1)83%  (5/6)92%  (36/39)71%  (5/7)
ViewHelper (): void 0%   (0/1)0%   (0/3)0%   (0/2)
findDrawingArea (Board): View 100% (1/1)100% (5/5)100% (1/1)
findDrawingArea (int): View 100% (1/1)100% (5/5)100% (1/1)
getBoardAreaViewId (Board): String 100% (1/1)100% (11/11)100% (1/1)
getBoardAreaViewId (int): String 100% (1/1)100% (10/10)100% (1/1)
isOpenBoardAreaView (String): boolean 100% (1/1)100% (5/5)100% (1/1)

1//  Copyright 2004-2007 Jean-Francois Poilpret
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// 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
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14 
15package net.sourceforge.hiveboard.docking;
16 
17import org.flexdock.docking.DockingManager;
18import org.flexdock.view.View;
19 
20import net.sourceforge.hiveboard.Board;
21 
22public final class ViewHelper
23{
24        private ViewHelper()
25        {
26        }
27        
28        static public boolean        isOpenBoardAreaView(String id)
29        {
30                return id.startsWith(Views.BOARD_AREA.name());
31        }
32        
33        static public String        getBoardAreaViewId(int idBoard)
34        {
35                return Views.BOARD_AREA.name() + idBoard;
36        }
37        
38        static public String        getBoardAreaViewId(Board board)
39        {
40                return Views.BOARD_AREA.name() + board.getId();
41        }
42 
43        static public View                findDrawingArea(int idBoard)
44        {
45                return (View) DockingManager.getDockable(getBoardAreaViewId(idBoard));
46        }
47 
48        static public View                findDrawingArea(Board board)
49        {
50                return (View) DockingManager.getDockable(getBoardAreaViewId(board));
51        }
52}

[all classes][net.sourceforge.hiveboard.docking]
EMMA 2.0.5312 (C) Vladimir Roubtsov