|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 org.kuali.student.lum.program.client.variation.VariationController org.kuali.student.lum.program.client.variation.edit.VariationEditController
public class VariationEditController
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 | |
---|---|
private KSButton |
cancelButton
|
private String |
currentId
|
private KSButton |
saveButton
|
Fields inherited from class org.kuali.student.lum.program.client.variation.VariationController |
---|
majorController |
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 | |
---|---|
VariationEditController(DataModel programModel,
ViewContext viewContext,
com.google.gwt.event.shared.HandlerManager eventBus,
MajorController majorController)
|
Method Summary | ||
---|---|---|
void |
beforeShow(Callback<Boolean> onReadyCallback)
Got invoked by framework before showing the view of the controller. |
|
protected void |
configureView()
|
|
private void |
doCancel()
|
|
protected void |
doSave()
|
|
private void |
doSave(Callback<Boolean> okToChange)
|
|
protected void |
fireUpdateEvent(Callback<Boolean> okToChange)
|
|
private void |
initHandlers()
|
|
protected void |
navigateToParent()
|
|
private void |
navigateToParent(ProgramSections parentSection)
|
|
protected void |
resetModel()
|
|
private void |
saveData(DataModel model)
|
|
|
showView(V viewType,
Callback<Boolean> onReadyCallback)
Directs the controller to display the specified view. |
Methods inherited from class org.kuali.student.lum.program.client.variation.VariationController |
---|
collectBreadcrumbNames, getProgramName, loadModel |
Methods inherited from class org.kuali.student.lum.program.client.ProgramController |
---|
afterMetadataLoaded, beforeViewChange, createCommentPanel, createProgramRemoteService, getDataProperty, getExportElementsFromView, getExportTemplateName, getLabel, getLabel, getProgramModel, getStringProperty, isExportButtonActive, loadMetadata, loadMetadataCondition, onModelLoadedEvent, refreshModelAndView, requestModel, resetFieldInteractionFlag, 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, 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 |
Field Detail |
---|
private final KSButton saveButton
private final KSButton cancelButton
private String currentId
Constructor Detail |
---|
public VariationEditController(DataModel programModel, ViewContext viewContext, com.google.gwt.event.shared.HandlerManager eventBus, MajorController majorController)
Method Detail |
---|
private void initHandlers()
protected void fireUpdateEvent(Callback<Boolean> okToChange)
fireUpdateEvent
in class ProgramController
private void doSave(Callback<Boolean> okToChange)
protected void configureView()
configureView
in class VariationController
protected void resetModel()
resetModel
in class ProgramController
private void doCancel()
protected void doSave()
doSave
in class ProgramController
private void saveData(DataModel model)
protected void navigateToParent()
navigateToParent
in class VariationController
private void navigateToParent(ProgramSections parentSection)
public void beforeShow(Callback<Boolean> onReadyCallback)
ProgramController
beforeShow
in interface View
beforeShow
in class ProgramController
View.beforeShow(org.kuali.student.common.ui.client.mvc.Callback)
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 execution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |