Coverage Report - org.kuali.student.common.ui.client.event.ValidateRequestEvent
 
Classes in this File Line Coverage Branch Coverage Complexity
ValidateRequestEvent
0%
0/12
N/A
1
 
 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.configurable.mvc.FieldDescriptor;
 19  
 import org.kuali.student.common.ui.client.mvc.ApplicationEvent;
 20  
 
 21  0
 public class ValidateRequestEvent extends ApplicationEvent<ValidateRequestHandler> {
 22  0
     public static final Type<ValidateRequestHandler> TYPE = new Type<ValidateRequestHandler>();
 23  
     private FieldDescriptor fieldDescriptor;
 24  0
     private boolean validateSingleField = false;
 25  
 
 26  
     @Override
 27  
     protected void dispatch(ValidateRequestHandler handler) {
 28  0
         handler.onValidateRequest(this);
 29  0
     }
 30  
 
 31  
     @Override
 32  
     public Type<ValidateRequestHandler> getAssociatedType() {
 33  0
         return TYPE;
 34  
     }
 35  
 
 36  
         public FieldDescriptor getFieldDescriptor() {
 37  0
                 return fieldDescriptor;
 38  
         }
 39  
 
 40  
         public void setFieldDescriptor(FieldDescriptor fieldDescriptor) {
 41  0
                 this.fieldDescriptor = fieldDescriptor;
 42  0
         }
 43  
 
 44  
         public boolean validateSingleField() {
 45  0
                 return validateSingleField;
 46  
         }
 47  
 
 48  
         public void setValidateSingleField(boolean validateSingleField) {
 49  0
                 this.validateSingleField = validateSingleField;
 50  0
         }
 51  
 }