Clover Coverage Report - KS Common UI 1.2.1-SNAPSHOT
Coverage timestamp: Wed Nov 2 2011 05:17:48 EST
../../../../../../../img/srcFileCovDistChart0.png 4% of files have more coverage
11   79   11   1
0   45   1   11
11     1  
1    
 
  ModifyActionEvent       Line # 20 11 0% 11 22 0% 0.0
 
No Tests
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.common.ui.client.event;
17   
18    import org.kuali.student.common.ui.client.mvc.HasActionState;
19   
 
20    public class ModifyActionEvent extends ActionEvent<ModifyActionHandler> implements HasActionState{
21    public static final Type<ModifyActionHandler> TYPE = new Type<ModifyActionHandler>();
22   
23    private ActionState actionState;
24    private String message = "Fetching";
25    private boolean acknowledgeRequired = true;
26    private String id;
27   
 
28  0 toggle public ModifyActionEvent(){
29    }
30   
 
31  0 toggle public ModifyActionEvent(String id){
32  0 this();
33  0 this.id = id;
34    }
35   
 
36  0 toggle @Override
37    protected void dispatch(ModifyActionHandler handler) {
38  0 handler.onModify(this);
39   
40    }
41   
 
42  0 toggle @Override
43    public com.google.gwt.event.shared.GwtEvent.Type<ModifyActionHandler> getAssociatedType() {
44   
45  0 return TYPE;
46    }
47   
 
48  0 toggle public void setActionState(ActionState state){
49  0 this.actionState = state;
50    }
51   
52    /**
53    * @see org.kuali.student.common.ui.client.mvc.HasActionState#getActionState()
54    */
 
55  0 toggle @Override
56    public ActionState getActionState() {
57  0 return this.actionState;
58    }
59   
 
60  0 toggle public String getMessage(){
61  0 return message;
62    }
63   
 
64  0 toggle public boolean isAcknowledgeRequired() {
65  0 return acknowledgeRequired;
66    }
67   
 
68  0 toggle public void setAcknowledgeRequired(boolean acknowledgeRequired) {
69  0 this.acknowledgeRequired = acknowledgeRequired;
70    }
71   
 
72  0 toggle public String getId() {
73  0 return id;
74    }
75   
 
76  0 toggle public void setId(String id) {
77  0 this.id = id;
78    }
79    }