org.kuali.student.lum.lu.ui.main.client.controllers
Class HomeController

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.kuali.student.common.ui.client.mvc.Controller
                  extended by org.kuali.student.common.ui.client.configurable.mvc.LayoutController
                      extended by org.kuali.student.lum.lu.ui.main.client.controllers.HomeController
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, ViewLayoutController, BreadcrumbSupport, HistorySupport, View, ReportExport

public class HomeController
extends LayoutController

Home controller for the LUM Application, controls its default view, the curriculum home view, and the Acknowledgments view page.

Author:
Kuali Student Team
See Also:
HomeView

Nested Class Summary
static class HomeController.HomeViews
           
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
private  AcknowledgeView ackView
           
private  CurriculumHomeController curriculumHomeView
           
private  HomeView defaultView
           
private  SpanPanel panel
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
 
Fields inherited from class org.kuali.student.common.ui.client.mvc.Controller
context, NO_OP_CALLBACK, parentController
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface org.kuali.student.common.ui.client.reporting.ReportExport
exportTemplateName
 
Constructor Summary
HomeController()
           
HomeController(Controller controller, String name, Enum<?> viewType)
           
 
Method Summary
protected  void hideView(View view)
          Must be implemented by the subclass to hide the view.
 void init(Controller controller, String name, Enum<?> viewType)
           
private  void initCirriculumHomeView(Controller controller, String name, Enum<?> viewType)
           
protected  void renderView(View view)
          Must be implemented by the subclass to render the view.
private  void setupViews()
           
<V extends Enum<?>>
void
showView(V viewType, Callback<Boolean> onReadyCallback)
          Directs the controller to display the specified view.
 void updateModel()
          Updates the model with information from this view.
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
addStartViewPopup, addView, asWidget, beforeHide, beforeShow, beforeViewChange, checkForErrors, clear, clearAllWarnings, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, isExportButtonActive, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showDefaultView, showExport, showFirstView, showStartPopup, showWarnings, updateModelFromCurrentView, updateModelFromView
 
Methods inherited from class org.kuali.student.common.ui.client.mvc.Controller
addApplicationEventHandler, collectHistory, doReportExport, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getExportDataModel, getExportElementsFromView, getExportTemplateName, getHistoryToken, getParentController, getView, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, setViewContext, showView
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.student.common.ui.client.configurable.mvc.layouts.ViewLayoutController
showView
 
Methods inherited from interface org.kuali.student.common.ui.client.mvc.history.HistorySupport
collectHistory, onHistoryEvent
 

Field Detail

curriculumHomeView

private final CurriculumHomeController curriculumHomeView

defaultView

private final HomeView defaultView

ackView

private final AcknowledgeView ackView

panel

private SpanPanel panel
Constructor Detail

HomeController

public HomeController()

HomeController

public HomeController(Controller controller,
                      String name,
                      Enum<?> viewType)
Method Detail

init

public void init(Controller controller,
                 String name,
                 Enum<?> viewType)

initCirriculumHomeView

private void initCirriculumHomeView(Controller controller,
                                    String name,
                                    Enum<?> viewType)

setupViews

private void setupViews()

updateModel

public void updateModel()
Description copied from interface: View
Updates the model with information from this view. If this view does not need to update the model leave this method empty.

Specified by:
updateModel in interface View
Specified by:
updateModel in class LayoutController
See Also:
View.updateModel()

hideView

protected void hideView(View view)
Description copied from class: Controller
Must be implemented by the subclass to hide the view.

Specified by:
hideView in class Controller

renderView

protected void renderView(View view)
Description copied from class: Controller
Must be implemented by the subclass to render the view.

Specified by:
renderView in class Controller

showView

public <V extends Enum<?>> void showView(V viewType,
                                         Callback<Boolean> onReadyCallback)
Description copied from class: Controller
Directs the controller to display the specified view. The parameter must be an enum value, based on an enum defined in the controller implementation. For example, a "Search" controller might have an enumeration of: public enum SearchViews { SIMPLE_SEARCH, ADVANCED_SEARCH, SEARCH_RESULTS } The implementing class must define a getView(V viewType) method that will cast the generic enum to the view specific enum.

Overrides:
showView in class Controller
Type Parameters:
V - view enum type
Parameters:
viewType - enum value representing the view to show
onReadyCallback - the callback to invoke when the method has completed execution


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.