org.kuali.student.lum.program.client
Class ProgramController
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.kuali.student.common.ui.client.mvc.Controller
org.kuali.student.common.ui.client.configurable.mvc.LayoutController
org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
org.kuali.student.lum.program.client.ProgramController
- All Implemented Interfaces:
- com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, ContentNavLayoutController, DocumentLayoutController, ViewLayoutController, BreadcrumbSupport, HistorySupport, View
- Direct Known Subclasses:
- CoreController, CredentialController, MajorController, VariationController
public abstract class ProgramController
- extends MenuSectionController
- Author:
- Igor
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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController |
addButtonForView, addCommonButton, addCommonButton, addContentWidget, addMenu, addMenuItem, addSpecialMenuItem, addStartMenuItem, hideView, removeMenuNavigation, renderView, revealMenuItems, setContentInfo, setContentTitle, setContentWarning, setSideBarWidget, showNextViewOnMenu, showPrint, updateModel |
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, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, 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 |
programRemoteService
protected MajorDisciplineRpcServiceAsync programRemoteService
initialized
protected boolean initialized
programModel
protected DataModel programModel
configurer
protected AbstractProgramConfigurer configurer
eventBus
protected com.google.gwt.event.shared.HandlerManager eventBus
statusLabel
protected com.google.gwt.user.client.ui.Label statusLabel
sideBar
protected ProgramSideBar sideBar
needToLoadOldModel
private boolean needToLoadOldModel
lastLoadedStatus
private ProgramStatus lastLoadedStatus
reloadMetadata
protected boolean reloadMetadata
ProgramController
public ProgramController(String name,
DataModel programModel,
ViewContext viewContext,
com.google.gwt.event.shared.HandlerManager eventBus)
- Constructor.
- Parameters:
programModel
-
createProgramRemoteService
protected MajorDisciplineRpcServiceAsync createProgramRemoteService()
- Create a ProgramRpcServiceAsync appropriate for this Controller
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
fireUpdateEvent
protected void fireUpdateEvent(Callback<Boolean> okToChange)
resetModel
protected void resetModel()
resetFieldInteractionFlag
protected void resetFieldInteractionFlag()
initializeModel
private void initializeModel()
- Initialized model of the controller.
requestModel
public void requestModel(Class modelType,
ModelRequestCallback callback)
- Description copied from class:
Controller
- Called by child views and controllers to request a model reference. By default it delegates calls to the parent
controller if one is found. Override this method to declare a model local to the controller. Always make sure to
delegate the call to the superclass if the requested type is not one which is defined locally. For example:
- Overrides:
requestModel
in class Controller
loadModel
protected void loadModel(ModelRequestCallback<DataModel> callback)
- Loads data model from the server.
- Parameters:
callback
- we have to invoke this callback when model is loaded or failed.
setModelData
private void setModelData()
getProgramViewLocation
private String getProgramViewLocation(String pgmType)
setStatus
protected void setStatus()
getProgramName
public String getProgramName()
beforeShow
public void beforeShow(Callback<Boolean> onReadyCallback)
- Got invoked by framework before showing the view of the controller.
- Specified by:
beforeShow
in interface View
- Overrides:
beforeShow
in class LayoutController
- Parameters:
onReadyCallback
-
loadMetadataCondition
protected boolean loadMetadataCondition()
- We should only load metadata if the status of model is changed.
- Returns:
loadMetadata
protected void loadMetadata(Callback<Boolean> onReadyCallback)
- Loads metadata from the server.
- Parameters:
onReadyCallback
-
configureView
protected void configureView()
setViewContext
public void setViewContext(ViewContext viewContext)
- Overrides:
setViewContext
in class Controller
afterMetadataLoaded
protected void afterMetadataLoaded(Callback<Boolean> onReadyCallback)
- Called when metadata is loaded.
- Parameters:
onReadyCallback
-
setHeaderTitle
protected void setHeaderTitle()
createCommentPanel
protected com.google.gwt.user.client.ui.Widget createCommentPanel()
doSave
protected void doSave()
getProgramModel
public DataModel getProgramModel()
onModelLoadedEvent
public void onModelLoadedEvent()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.