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.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 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
           
(package private)  boolean reloadFlag
           
 
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
 
Fields inherited from interface org.kuali.student.common.ui.client.reporting.ReportExport
exportTemplateName
 
Constructor Summary
ProgramRequirementsViewController(Controller controller, com.google.gwt.event.shared.HandlerManager eventBus, String name, Enum<?> viewType, boolean isReadOnly, EditableHeader header)
           
ProgramRequirementsViewController(Controller controller, com.google.gwt.event.shared.HandlerManager eventBus, String name, Enum<?> viewType, boolean isReadOnly, EditableHeader header, boolean reloadFlag)
           
 
Method Summary
 void beforeShow(Callback<Boolean> onReadyCallback)
          Default implementation does nothing on before show.
 void beforeViewChange(Enum<?> viewChangingTo, Callback<Boolean> okToChange)
          This particular implementation of beforeViewChange checks to see if all its view contains a Controller and if it does checks with that controller to see if it is ok to change the view.
protected  String getLabel(String messageKey)
           
 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, 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, 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

PROGRAM_RULES_MODEL_ID

public static final String PROGRAM_RULES_MODEL_ID
See Also:
Constant Field Values

preview

private ProgramRequirementsSummaryView preview

reloadFlag

boolean reloadFlag
Constructor Detail

ProgramRequirementsViewController

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

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
See Also:
View.updateModel()

beforeViewChange

public void beforeViewChange(Enum<?> viewChangingTo,
                             Callback<Boolean> okToChange)
Description copied from class: LayoutController
This particular implementation of beforeViewChange checks to see if all its view contains a Controller and if it does checks with that controller to see if it is ok to change the view. OkToChange callback will be exec with true if the view is allowed to be changed at this time. This method can be overriden to provide additional functionality to stop a view from being changed when there is some additional processing that needs to occur in the ui before the view changes.

Overrides:
beforeViewChange in class LayoutController
See Also:
Controller.beforeViewChange(java.lang.Enum, org.kuali.student.common.ui.client.mvc.Callback)

beforeShow

public void beforeShow(Callback<Boolean> onReadyCallback)
Description copied from class: LayoutController
Default implementation does nothing on before show. Override to do other things before THIS view is shown.

Specified by:
beforeShow in interface View
Overrides:
beforeShow in class LayoutController
See Also:
View.beforeShow(org.kuali.student.common.ui.client.mvc.Callback)

getProgramRequirementsView

public ProgramRequirementsSummaryView getProgramRequirementsView()

getLabel

protected String getLabel(String messageKey)


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