EMMA Coverage Report (generated Tue Feb 12 22:23:49 ICT 2008)
[all classes][net.sourceforge.hivegui.menu]

COVERAGE SUMMARY FOR SOURCE FILE [MenuItemContribution.java]

nameclass, %method, %block, %line, %
MenuItemContribution.java0%   (0/1)0%   (0/8)0%   (0/47)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MenuItemContribution0%   (0/1)0%   (0/8)0%   (0/47)0%   (0/15)
MenuItemContribution (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getCommand (): Action 0%   (0/1)0%   (0/3)0%   (0/1)
getHasSubMenus (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
getId (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setCommand (Action): void 0%   (0/1)0%   (0/4)0%   (0/2)
setHasSubMenus (boolean): void 0%   (0/1)0%   (0/4)0%   (0/2)
setId (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
toString (): String 0%   (0/1)0%   (0/23)0%   (0/5)

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.hivegui.menu;
16 
17import javax.swing.Action;
18 
19import org.apache.hivemind.impl.BaseLocatable;
20import org.apache.hivemind.util.ToStringBuilder;
21 
22/**
23 * @author Jean-Francois Poilpret
24 */
25public class MenuItemContribution extends BaseLocatable
26{
27        public void                setId(String id)
28        {
29                _id = id;
30        }
31        public String        getId()
32        {
33                return _id;
34        }
35 
36        public void                setCommand(Action command)
37        {
38                _command = command;
39        }
40        public Action        getCommand()
41        {
42                return _command;
43        }
44 
45        public void                setHasSubMenus(boolean hasSubMenus)
46        {
47                _hasSubMenus = hasSubMenus;
48        }
49        public boolean        getHasSubMenus()
50        {
51                return _hasSubMenus;
52        }
53 
54    @Override public String toString()
55    {
56        ToStringBuilder builder = new ToStringBuilder(this);
57        builder.append("id", _id);
58        builder.append("command", _command);
59        builder.append("hasSubMenus", _hasSubMenus);
60        return builder.toString();
61    }
62    
63        private String                _id;
64        private Action                _command;
65        private boolean                _hasSubMenus;
66}

[all classes][net.sourceforge.hivegui.menu]
EMMA 2.0.5312 (C) Vladimir Roubtsov