public class CourseAdminController extends CourseProposalController
Modifier and Type | Field and Description |
---|---|
protected List<KSButton> |
cancelButtons |
cfg, cluProposalModel, cluProposalRpcServiceAsync, comparisonModel, courseServiceAsync, currentDocType, currentTitle, initialized, isNew, loadDataTask, modelRequestQueue, proposalPath, reqDataModel, reqDataModelComp, workflowUtil
leftPanel, menu, menuViewMap, rightPanel, topLevelMenuItems, viewMenuItemMap
defaultView, name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
context, NO_OP_CALLBACK, parentController
exportTemplateName
Constructor and Description |
---|
CourseAdminController() |
Modifier and Type | Method and Description |
---|---|
void |
addMenuItemSection(String parentMenu,
String sectionName,
String widgetId,
com.google.gwt.user.client.ui.Widget widget)
This is a special method for CourseAdminController, which adds a menu item to the navigation menu and navigates
a user to a section within the view rather than a different view.
|
void |
addPermissionAttributes(Map<String,String> attributes)
This method adds any permission attributes required for checking admin permissions
|
protected void |
configureScreens(DataModelDefinition modelDefinition,
Callback<Boolean> onReadyCallback) |
KSButton |
getApproveAndActivateButton() |
KSButton |
getCancelButton() |
KSButton |
getSaveButton()
Override the getSaveButton to provide a new set of buttons for the admin screens
|
protected void |
handleButtonClick(String state)
Processes the save, approve, or approve and activate button clicks.
|
protected void |
initializeController()
Override the intitailzeController method to use CourseAdminConfigurer
|
protected Callback<Boolean> |
previousEndTermConfigurationCallback(Callback<Boolean> onReadyCallback)
This callback is used to configure the previous end term field after the screens have been configured.
|
protected void |
progressiveEnableFields()
Override
CourseProposalController because end term should always be editable
in admin screens. |
void |
scrollToSection(com.google.gwt.user.client.Element element) |
protected void |
setHeaderTitle()
Override the setHeaderTitle to display proper header title for admin screens
|
void |
setViewContext(ViewContext viewContext)
Sets the view context.
|
beforeShow, beforeViewChange, checkAuthorization, createCopyCourseModel, createCopyCourseProposalModel, createModifyCluProposalModel, createNewCluProposalModel, doSaveAction, getCancelButton, getCluProposalFromProposalId, getCluProposalFromWorkflowId, getCourseComparisonModelAndReqs, getCourseId, getCourseProposalConfigurer, getCourseProposalRpcService, getCourseState, getCurrentModel, getExportDataModel, getExportElementsFromView, getExportTemplateName, getMessage, getMetadataForFinalState, getReqDataModel, getReqDataModelComp, getStateforSaveAction, getWfUtilities, isAuthorizationRequired, isExportButtonActive, isNew, onHistoryEvent, populateModel, registerModelsAndHandlers, requestModel, saveProposalClu, setAuthorizationRequired, setLastUpdated, setParentController, showDefaultView, showView, startSectionRequired
addCommonEditButton, addMenuItem, attachEditLink, generateEditLink, setEditable, setEditMode
addButtonForView, addCommonButton, addCommonButton, addContentWidget, addInfoWidget, addMenu, addMenuItem, addSpecialMenuItem, addStartMenuItem, addStyleName, addTopButtonForView, hideView, removeMenuNavigation, renderView, revealMenuItems, setContentInfo, setContentTitle, setContentWarning, setSideBarWidget, showExport, showNextViewOnMenu, showPrint, updateModel
addStartViewPopup, addView, asWidget, beforeHide, 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, collectHistory, doReportExport, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getHistoryToken, getParentController, getView, getViewContext, registerModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, 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, 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
addButtonForView, addCommonButton, addCommonButton, addMenu, addMenuItem, addSpecialMenuItem, removeMenuNavigation
addContentWidget, setContentInfo, setContentTitle
addStartViewPopup, addView, setDefaultView, showView
collectHistory
protected List<KSButton> cancelButtons
public CourseAdminController()
protected void initializeController()
initializeController
in class CourseProposalController
public KSButton getSaveButton()
getSaveButton
in class CourseProposalController
public KSButton getApproveAndActivateButton()
public KSButton getCancelButton()
protected void handleButtonClick(String state)
state
- The state to set on the course when saving course data. DRAFT=Save, APPROVED=Approve, and
ACTIVE=Approve & Activateprotected void progressiveEnableFields()
CourseProposalController
because end term should always be editable
in admin screens.progressiveEnableFields
in class CourseProposalController
protected void setHeaderTitle()
setHeaderTitle
in class CourseProposalController
public void addMenuItemSection(String parentMenu, String sectionName, String widgetId, com.google.gwt.user.client.ui.Widget widget)
parentMenu
- sectionName
- sectionId
- section
- public void scrollToSection(com.google.gwt.user.client.Element element)
protected void configureScreens(DataModelDefinition modelDefinition, Callback<Boolean> onReadyCallback)
configureScreens
in class CourseProposalController
protected Callback<Boolean> previousEndTermConfigurationCallback(Callback<Boolean> onReadyCallback)
onReadyCallback
- public void setViewContext(ViewContext viewContext)
Controller
setViewContext
in class CourseProposalController
public void addPermissionAttributes(Map<String,String> attributes)
addPermissionAttributes
in class CourseProposalController
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.