public class VersionsController extends BasicLayoutWithContentHeader implements HasRequirements
Modifier and Type | Class and Description |
---|---|
static class |
VersionsController.Views |
header, layout, viewContainer
defaultView, name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
context, NO_OP_CALLBACK, parentController
exportTemplateName
Constructor and Description |
---|
VersionsController(Enum<?> viewType) |
Modifier and Type | Method and Description |
---|---|
void |
beforeShow(Callback<Boolean> onReadyCallback)
Default implementation does nothing on before show.
|
com.google.gwt.user.client.ui.Widget |
generateActionDropDown() |
String |
getCurrentVersionId() |
DataModelDefinition |
getDefinition() |
String |
getMessage(String courseMessageKey) |
CourseRequirementsDataModel |
getReqDataModel() |
CourseRequirementsDataModel |
getReqDataModelComp() |
com.google.gwt.user.client.ui.Widget |
getStatusLabel() |
String |
getVersionIndId() |
void |
setCurrentTitle(String currentTitle) |
void |
setCurrentVersionId(String id) |
void |
setVersionIndId(String versionIndId) |
void |
showDefaultView(Callback<Boolean> onReadyCallback)
Shows the default view.
|
<V extends Enum<?>> |
showView(V viewType,
Callback<Boolean> onReadyCallback)
Directs the controller to display the specified view.
|
getHeader, hideView, renderView, updateModel
addStartViewPopup, addView, asWidget, beforeHide, beforeViewChange, checkForErrors, clear, clearAllWarnings, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, isExportButtonActive, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showExport, showFirstView, showStartPopup, showWarnings, updateModelFromCurrentView, updateModelFromView
addApplicationEventHandler, beginShowView, collectHistory, doReportExport, finalizeShowView, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getExportDataModel, getExportElementsFromView, getExportTemplateName, getHistoryToken, getParentController, getView, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, setViewContext, 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
showView
collectHistory, onHistoryEvent
public VersionsController(Enum<?> viewType)
public void setVersionIndId(String versionIndId)
public void showDefaultView(Callback<Boolean> onReadyCallback)
Controller
showDefaultView
in class LayoutController
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)
public com.google.gwt.user.client.ui.Widget generateActionDropDown()
public com.google.gwt.user.client.ui.Widget getStatusLabel()
public DataModelDefinition getDefinition()
public void setCurrentVersionId(String id)
public String getCurrentVersionId()
public String getVersionIndId()
public String getMessage(String courseMessageKey)
public <V extends Enum<?>> void showView(V viewType, Callback<Boolean> onReadyCallback)
Controller
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.showView
in class Controller
V
- view enum typeviewType
- enum value representing the view to showonReadyCallback
- the callback to invoke when the method has completed executionpublic void setCurrentTitle(String currentTitle)
public CourseRequirementsDataModel getReqDataModel()
getReqDataModel
in interface HasRequirements
public CourseRequirementsDataModel getReqDataModelComp()
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.