public class ViewCourseController extends TabMenuController implements DocumentLayoutController, HasRequirements, RequiresAuthorization
Modifier and Type | Field and Description |
---|---|
protected DataModel |
cluModel |
header, layout, tabPanel
defaultView, name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
context, NO_OP_CALLBACK, parentController
exportTemplateName
Constructor and Description |
---|
ViewCourseController() |
Modifier and Type | Method and Description |
---|---|
void |
beforeShow(Callback<Boolean> onReadyCallback)
Default implementation does nothing on before show.
|
void |
checkAuthorization(AuthorizationCallback authCallback) |
void |
clear(String cluType) |
com.google.gwt.user.client.ui.Widget |
generateActionDropDown() |
String |
getCourseId() |
String |
getCourseTitle() |
String |
getCurrentId() |
DataModel |
getExportDataModel()
This method needs to be implemented on every controller that want's to export the data
|
List<ExportElement> |
getExportElementsFromView()
This method returns array of ExportElements which represent the elements on the view that must be exported
|
String |
getMessage(String courseMessageKey) |
CourseRequirementsDataModel |
getReqDataModel() |
com.google.gwt.user.client.ui.Widget |
getStatusLabel() |
com.google.gwt.user.client.ui.Widget |
getVersionHistoryWidget() |
String |
getVersionIndId() |
void |
initialize(Enum<?> viewType) |
boolean |
isAuthorizationRequired() |
boolean |
isExportButtonActive()
This method needs to be implemented only on views that want the export button to display.
|
void |
onHistoryEvent(String historyStack)
The onHistoryEvent implementation in controller reads the history stack it receives and determines
if the next token/view to be processed is a controller, if it is, it hands off the rest of the history stack
to that controller after showing it.
|
void |
requestModel(Class modelType,
ModelRequestCallback callback)
Called by child views and controllers to request a model reference.
|
void |
setAuthorizationRequired(boolean required) |
void |
setCourseId(String courseId) |
protected void |
setHeaderTitle() |
void |
setViewContext(ViewContext viewContext)
Sets the view context.
|
void |
showDefaultView(Callback<Boolean> onReadyCallback)
Shows the default view.
|
protected void |
updateStatus() |
addContentWidget, addTab, hideView, renderView, setBasicTitle, setContentInfo, setContentTitle, setContentWarning, showExport, showPrint, updateModel
addStartViewPopup, addView, asWidget, beforeHide, beforeViewChange, checkForErrors, clear, clearAllWarnings, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showFirstView, showStartPopup, showWarnings, updateModelFromCurrentView, updateModelFromView
addApplicationEventHandler, beginShowView, collectHistory, doReportExport, finalizeShowView, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getExportTemplateName, getHistoryToken, getParentController, getView, getViewContext, registerModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, showView, showView
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addContentWidget, setContentInfo, setContentTitle
addStartViewPopup, addView, setDefaultView, showView
collectHistory
public ViewCourseController()
public void setViewContext(ViewContext viewContext)
Controller
setViewContext
in class Controller
public void initialize(Enum<?> viewType)
public com.google.gwt.user.client.ui.Widget generateActionDropDown()
public void requestModel(Class modelType, ModelRequestCallback callback)
Controller
requestModel
in class Controller
public String getCourseId()
public String getVersionIndId()
public void setCourseId(String courseId)
public void showDefaultView(Callback<Boolean> onReadyCallback)
Controller
showDefaultView
in class TabMenuController
public void beforeShow(Callback<Boolean> onReadyCallback)
LayoutController
beforeShow
in interface View
beforeShow
in class LayoutController
View.beforeShow(org.kuali.student.common.ui.client.mvc.Callback)
protected void setHeaderTitle()
protected void updateStatus()
public String getMessage(String courseMessageKey)
public com.google.gwt.user.client.ui.Widget getStatusLabel()
public com.google.gwt.user.client.ui.Widget getVersionHistoryWidget()
public void onHistoryEvent(String historyStack)
Controller
onHistoryEvent
in interface HistorySupport
onHistoryEvent
in class Controller
HistorySupport.onHistoryEvent(java.lang.String)
public String getCourseTitle()
public String getCurrentId()
public CourseRequirementsDataModel getReqDataModel()
getReqDataModel
in interface HasRequirements
public DataModel getExportDataModel()
ReportExport
getExportDataModel
in interface ReportExport
getExportDataModel
in class Controller
public boolean isExportButtonActive()
View
isExportButtonActive
in interface View
isExportButtonActive
in class LayoutController
public List<ExportElement> getExportElementsFromView()
ReportExport
getExportElementsFromView
in interface ReportExport
getExportElementsFromView
in class TabMenuController
public boolean isAuthorizationRequired()
isAuthorizationRequired
in interface RequiresAuthorization
public void setAuthorizationRequired(boolean required)
setAuthorizationRequired
in interface RequiresAuthorization
public void checkAuthorization(AuthorizationCallback authCallback)
checkAuthorization
in interface RequiresAuthorization
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.