EMMA Coverage Report (generated Wed Jun 27 17:43:42 CEST 2012)
[all classes][aarddict.android]

COVERAGE SUMMARY FOR SOURCE FILE [ArticleView.java]

nameclass, %method, %block, %line, %
ArticleView.java100% (1/1)60%  (3/5)72%  (26/36)67%  (8/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ArticleView100% (1/1)60%  (3/5)72%  (26/36)67%  (8/12)
ArticleView (Context): void 0%   (0/1)0%   (0/4)0%   (0/2)
ArticleView (Context, AttributeSet, int): void 0%   (0/1)0%   (0/6)0%   (0/2)
ArticleView (Context, AttributeSet): void 100% (1/1)100% (5/5)100% (2/2)
onScrollChanged (int, int, int, int): void 100% (1/1)100% (17/17)100% (4/4)
setOnScrollListener (ArticleView$ScrollListener): void 100% (1/1)100% (4/4)100% (2/2)

1/* This file is part of Aard Dictionary for Android <http://aarddict.org>.
2 * 
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 3
5 * as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 * GNU General Public License <http://www.gnu.org/licenses/gpl-3.0.txt>
11 * for more details.
12 * 
13 * Copyright (C) 2010 Igor Tkach
14*/
15 
16package aarddict.android;
17 
18import android.content.Context;
19import android.util.AttributeSet;
20import android.webkit.WebView;
21 
22class ArticleView extends WebView {
23 
24        interface ScrollListener {
25                void onScroll(int l, int t, int oldl, int oldt);
26        }
27        
28        private ScrollListener scrollListener;
29        
30        public ArticleView(Context context) {
31                super(context);
32        }
33 
34        public ArticleView(Context context, AttributeSet attrs) {
35                super(context, attrs);
36        }
37 
38        public ArticleView(Context context, AttributeSet attrs, int defStyle) {
39                super(context, attrs, defStyle);
40        }
41 
42        @Override
43        protected void onScrollChanged(int l, int t, int oldl, int oldt) {
44                super.onScrollChanged(l, t, oldl, oldt);
45                if (scrollListener != null) {
46                        scrollListener.onScroll(l, t, oldl, oldt);                        
47                }
48        }
49 
50        public void setOnScrollListener(ScrollListener l) {
51                this.scrollListener = l;
52        }
53}

[all classes][aarddict.android]
EMMA 0.0.0 (unsupported private build) (C) Vladimir Roubtsov