org.kuali.student.lum.program.client.credential.edit
Class CredentialEditController

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.MenuSectionController
                          extended by org.kuali.student.lum.program.client.ProgramController
                              extended by org.kuali.student.lum.program.client.credential.CredentialController
                                  extended by org.kuali.student.lum.program.client.credential.edit.CredentialEditController
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, ContentNavLayoutController, DocumentLayoutController, ViewLayoutController, BreadcrumbSupport, HistorySupport, View, ReportExport

public class CredentialEditController
extends CredentialController

Author:
Igor

Nested Class Summary
 
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
 
Fields inherited from class org.kuali.student.lum.program.client.ProgramController
configurer, eventBus, initialized, lastLoadedStatus, processBeforeShow, programModel, programRemoteService, reloadMetadata, sideBar, statusLabel
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
leftPanel, menu, menuViewMap, rightPanel, topLevelMenuItems, viewMenuItemMap
 
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
CredentialEditController(DataModel programModel, ViewContext viewContext, com.google.gwt.event.shared.HandlerManager eventBus)
          Constructor.
 
Method Summary
 void beforeShow(Callback<Boolean> onReadyCallback)
          Got invoked by framework before showing the view of the controller.
protected  void configureView()
           
protected  void createNewVersionAndLoadModel(ModelRequestCallback<DataModel> callback, ViewContext viewContext)
           
protected  void doSave()
           
protected  void loadModel(ModelRequestCallback<DataModel> callback)
          Loads data model from the server.
 void onModelLoadedEvent()
           
<V extends Enum<?>>
void
showView(V viewType, Callback<Boolean> onReadyCallback)
          Directs the controller to display the specified view.
 
Methods inherited from class org.kuali.student.lum.program.client.credential.CredentialController
createProgramRemoteService
 
Methods inherited from class org.kuali.student.lum.program.client.ProgramController
afterMetadataLoaded, beforeViewChange, createCommentPanel, fireUpdateEvent, getDataProperty, getExportElementsFromView, getExportTemplateName, getLabel, getLabel, getProgramModel, getProgramName, getStringProperty, isExportButtonActive, loadMetadata, loadMetadataCondition, refreshModelAndView, requestModel, resetFieldInteractionFlag, resetModel, setHeaderTitle, setStatus, setViewContext, updateState
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
addButtonForView, addCommonButton, addCommonButton, addContentWidget, addInfoWidget, addMenu, addMenuItem, addSpecialMenuItem, addStartMenuItem, addStyleName, addTopButtonForView, hideView, removeMenuNavigation, renderView, revealMenuItems, setContentInfo, setContentTitle, setContentWarning, setSideBarWidget, showExport, showNextViewOnMenu, showPrint, updateModel
 
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, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showDefaultView, 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, getHistoryToken, getParentController, getView, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, 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, 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
addStartViewPopup, addView, setDefaultView, showView
 
Methods inherited from interface org.kuali.student.common.ui.client.mvc.history.HistorySupport
collectHistory, onHistoryEvent
 

Constructor Detail

CredentialEditController

public CredentialEditController(DataModel programModel,
                                ViewContext viewContext,
                                com.google.gwt.event.shared.HandlerManager eventBus)
Constructor.

Parameters:
programModel -
Method Detail

configureView

protected void configureView()
Overrides:
configureView in class CredentialController

doSave

protected void doSave()
Overrides:
doSave in class ProgramController

loadModel

protected void loadModel(ModelRequestCallback<DataModel> callback)
Description copied from class: ProgramController
Loads data model from the server.

Overrides:
loadModel in class ProgramController
Parameters:
callback - we have to invoke this callback when model is loaded or failed.

createNewVersionAndLoadModel

protected void createNewVersionAndLoadModel(ModelRequestCallback<DataModel> callback,
                                            ViewContext viewContext)

onModelLoadedEvent

public void onModelLoadedEvent()
Overrides:
onModelLoadedEvent in class ProgramController

beforeShow

public void beforeShow(Callback<Boolean> onReadyCallback)
Description copied from class: ProgramController
Got invoked by framework before showing the view of the controller.

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

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-2012 The Kuali Foundation. All Rights Reserved.