org.kuali.student.lum.lu.ui.course.client.controllers
Class VersionsController

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.kuali.student.common.ui.client.mvc.Controller
                  extended by org.kuali.student.common.ui.client.configurable.mvc.LayoutController
                      extended by org.kuali.student.common.ui.client.configurable.mvc.layouts.BasicLayoutWithContentHeader
                          extended by org.kuali.student.lum.lu.ui.course.client.controllers.VersionsController
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, ViewLayoutController, BreadcrumbSupport, HistorySupport, View

public class VersionsController
extends BasicLayoutWithContentHeader


Nested Class Summary
static class VersionsController.Views
           
 
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  List<CourseWorkflowActionList> actionDropDownWidgets
           
private  DataModel cluModel1
           
private  DataModel cluModel2
           
private  VerticalSectionView compare
           
private  String currentVersionId
           
(package private)  DataModelDefinition definition
           
private  String groupName
           
private  boolean initialized
           
private  String lastId1
           
private  String lastId2
           
private  BlockingTask loadDataTask
           
private static String MSG_GROUP
           
(package private)  CourseRpcServiceAsync rpcServiceAsync
           
private  SelectVersionsView select
           
private  String state
           
private  KSLabel statusLabel
           
(package private)  CourseSummaryConfigurer summaryConfigurer
           
private  String type
           
private  String versionIndId
           
private  ShowVersionView view
           
private  HorizontalSection workflowVersionInfoSection
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.BasicLayoutWithContentHeader
header, layout, viewContainer
 
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
 
Constructor Summary
VersionsController(Enum<?> viewType)
           
 
Method Summary
 void beforeShow(Callback<Boolean> onReadyCallback)
          Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be done.
private  void configureScreens(Callback<Boolean> onReadyCallback)
           
 com.google.gwt.user.client.ui.Widget generateActionDropDown()
           
private  void getCourseFromCluId(String courseId, int modelNum, ModelRequestCallback callback, boolean id1Model)
           
 String getCurrentVersionId()
           
 DataModelDefinition getDefinition()
           
 String getMessage(String courseMessageKey)
           
 com.google.gwt.user.client.ui.Widget getStatusLabel()
           
 String getVersionIndId()
           
private  void init(Callback<Boolean> onReadyCallback)
           
private  void initialize()
           
 void setCurrentTitle(String currentTitle)
           
 void setCurrentVersionId(String id)
           
 void setVersionIndId(String versionIndId)
           
 void showDefaultView(Callback<Boolean> onReadyCallback)
          Shows the default view.
<V extends Enum<?>>
void
showView(V viewType, Callback<Boolean> onReadyCallback)
          Directs the controller to display the specified view.
private  void updateState(DataModel cluModel)
           
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.BasicLayoutWithContentHeader
getHeader, hideView, renderView, updateModel
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
addStartViewPopup, addView, asWidget, beforeHide, beforeViewChange, checkForErrors, clear, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, getViewsEnum, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, 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, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, setViewContext, 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
 
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
showView
 
Methods inherited from interface org.kuali.student.common.ui.client.mvc.history.HistorySupport
collectHistory, onHistoryEvent
 

Field Detail

select

private SelectVersionsView select

view

private ShowVersionView view

compare

private VerticalSectionView compare

MSG_GROUP

private static final String MSG_GROUP
See Also:
Constant Field Values

type

private String type

state

private String state

groupName

private String groupName

summaryConfigurer

CourseSummaryConfigurer summaryConfigurer

rpcServiceAsync

CourseRpcServiceAsync rpcServiceAsync

definition

DataModelDefinition definition

cluModel1

private DataModel cluModel1

cluModel2

private DataModel cluModel2

lastId1

private String lastId1

lastId2

private String lastId2

workflowVersionInfoSection

private HorizontalSection workflowVersionInfoSection

initialized

private boolean initialized

versionIndId

private String versionIndId

currentVersionId

private String currentVersionId

loadDataTask

private final BlockingTask loadDataTask

actionDropDownWidgets

private List<CourseWorkflowActionList> actionDropDownWidgets

statusLabel

private KSLabel statusLabel
Constructor Detail

VersionsController

public VersionsController(Enum<?> viewType)
Method Detail

setVersionIndId

public void setVersionIndId(String versionIndId)

initialize

private void initialize()

getCourseFromCluId

private void getCourseFromCluId(String courseId,
                                int modelNum,
                                ModelRequestCallback callback,
                                boolean id1Model)

showDefaultView

public void showDefaultView(Callback<Boolean> onReadyCallback)
Description copied from class: Controller
Shows the default view. Must be implemented by subclass, in order to define the default view.

Overrides:
showDefaultView in class LayoutController

beforeShow

public void beforeShow(Callback<Boolean> onReadyCallback)
Description copied from interface: View
Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be done.

Specified by:
beforeShow in interface View
Overrides:
beforeShow in class LayoutController

init

private void init(Callback<Boolean> onReadyCallback)

configureScreens

private void configureScreens(Callback<Boolean> onReadyCallback)

generateActionDropDown

public com.google.gwt.user.client.ui.Widget generateActionDropDown()

updateState

private void updateState(DataModel cluModel)

getStatusLabel

public com.google.gwt.user.client.ui.Widget getStatusLabel()

getDefinition

public DataModelDefinition getDefinition()

setCurrentVersionId

public void setCurrentVersionId(String id)

getCurrentVersionId

public String getCurrentVersionId()

getVersionIndId

public String getVersionIndId()

getMessage

public String getMessage(String courseMessageKey)

showView

public <V extends Enum<?>> void showView(V viewType,
                                         Callback<Boolean> onReadyCallback)
Description copied from class: Controller
Directs the controller to display the specified view. The parameter must be an enum value, based on an enum defined in the controller implementation. For example, a "Search" controller might have an enumeration of: 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.

Overrides:
showView in class Controller
Type Parameters:
V - view enum type
Parameters:
viewType - enum value representing the view to show
onReadyCallback - the callback to invoke when the method has completed execution

setCurrentTitle

public void setCurrentTitle(String currentTitle)


Copyright © 2010 The Kuali Foundation. All rights reserved.