org.kuali.student.lum.program.client.requirements
Class ProgramRequirementsViewController

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.common.ui.client.configurable.mvc.layouts.BasicLayout
                          extended by org.kuali.student.lum.program.client.requirements.ProgramRequirementsViewController
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, ViewLayoutController, BreadcrumbSupport, HistorySupport, View

public class ProgramRequirementsViewController
extends BasicLayout


Nested Class Summary
static class ProgramRequirementsViewController.ProgramRequirementsViews
           
 
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  ProgramRequirementsSummaryView preview
           
static String PROGRAM_RULES_MODEL_ID
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
defaultView, 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
 
Constructor Summary
ProgramRequirementsViewController(Controller controller, com.google.gwt.event.shared.HandlerManager eventBus, String name, Enum<?> viewType, boolean isReadOnly, EditableHeader header)
           
 
Method Summary
 void beforeShow(Callback<Boolean> onReadyCallback)
          Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be done.
 void beforeViewChange(Enum<?> viewChangingTo, Callback<Boolean> okToChange)
          If a controller which extends this class must perform some action or check before a view is changed, then override this method.
 ProgramRequirementsSummaryView getProgramRequirementsView()
           
 void updateModel()
          This version of updateModel only updates from the currentView (since only one view is shown/accessed at a time).
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.BasicLayout
hideView, renderView
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
addStartViewPopup, addView, asWidget, beforeHide, checkForErrors, clear, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, getViewsEnum, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showDefaultView, showFirstView, showStartPopup, updateModelFromCurrentView, updateModelFromView
 
Methods inherited from class org.kuali.student.common.ui.client.mvc.Controller
addApplicationEventHandler, clearViewContext, collectHistory, findController, fireApplicationEvent, fireNavEvents, fireNavigationEvent, getControllerId, getCurrentView, getCurrentViewEnum, getDefaultModelId, getHistoryToken, getParentController, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, setViewContext, showView, 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
addDomHandler, addHandler, 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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, 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

PROGRAM_RULES_MODEL_ID

public static final String PROGRAM_RULES_MODEL_ID
See Also:
Constant Field Values

preview

private ProgramRequirementsSummaryView preview
Constructor Detail

ProgramRequirementsViewController

public ProgramRequirementsViewController(Controller controller,
                                         com.google.gwt.event.shared.HandlerManager eventBus,
                                         String name,
                                         Enum<?> viewType,
                                         boolean isReadOnly,
                                         EditableHeader header)
Method Detail

updateModel

public void updateModel()
Description copied from class: BasicLayout
This version of updateModel only updates from the currentView (since only one view is shown/accessed at a time). Call updateModelFromView to update from a specific view under this controller's scope.

Specified by:
updateModel in interface View
Overrides:
updateModel in class BasicLayout

beforeViewChange

public void beforeViewChange(Enum<?> viewChangingTo,
                             Callback<Boolean> okToChange)
Description copied from class: Controller
If a controller which extends this class must perform some action or check before a view is changed, then override this method. Do not call super() in the override, as it will allow the view to continue to change.

Overrides:
beforeViewChange in class LayoutController

beforeShow

public void beforeShow(Callback<Boolean> onReadyCallback)
Description copied from interface: View
Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be done.

Specified by:
beforeShow in interface View
Overrides:
beforeShow in class LayoutController

getProgramRequirementsView

public ProgramRequirementsSummaryView getProgramRequirementsView()


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