View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may
3    * not use this file except in compliance with the License. You may obtain a copy of the License at
4    * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or agreed to in writing, software distributed
5    * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
6    * implied. See the License for the specific language governing permissions and limitations under the License.
7    */
8   
9   package org.kuali.student.common.ui.client.event;
10  
11  import org.kuali.student.common.ui.client.mvc.ApplicationEvent;
12  
13  public class ExportEvent extends ApplicationEvent<ExportEventHandler> {
14      public static final Type<ExportEventHandler> TYPE = new Type<ExportEventHandler>();
15      private Object currentView;
16  
17      public ExportEvent(Object currentView) {
18          super();
19          this.currentView = currentView;
20          System.out.println("Constructor for ExportEvent....");
21      }
22  
23      @Override
24      protected void dispatch(ExportEventHandler handler) {
25          handler.onExport(this);
26  
27      }
28  
29      @Override
30      public com.google.gwt.event.shared.GwtEvent.Type<ExportEventHandler> getAssociatedType() {
31          // TODO Administrator - THIS METHOD NEEDS JAVADOCS
32          return null;
33      }
34  
35      public Object getCurrentView() {
36          return currentView;
37      }
38  
39      public void setCurrentView(Object currentView) {
40          this.currentView = currentView;
41      }
42  }