org.kuali.student.lum.lu.ui.tools.client.configuration
Class CluSetsManagementController

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.BasicLayout
                          extended by org.kuali.student.lum.lu.ui.tools.client.configuration.CluSetsManagementController
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, ViewLayoutController, BreadcrumbSupport, HistorySupport, View

public class CluSetsManagementController
extends BasicLayout


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
static String CLUSET_MGT_MODEL
           
(package private)  CluSetManagementRpcServiceAsync cluSetManagementRpcServiceAsync
           
private  DataModel cluSetModel
           
private  WorkQueue cluSetModelRequestQueue
           
private  ClusetView createClusetView
           
private  ClusetView editClusetView
           
private  boolean initialized
           
private  BlockingTask initializingTask
           
private  ClusetView mainView
           
private  BlockingTask retrievingTask
           
private  BlockingTask saving
           
private  ClusetView viewClusetView
           
 
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
CluSetsManagementController()
           
 
Method Summary
private  void afterModelLoaded()
           
 void beforeShow(Callback<Boolean> onReadyCallback)
          Default implementation does nothing on before show.
 void doSaveAction(SaveActionEvent saveActionEvent)
           
private  void doShowDefaultView(Callback<Boolean> onReadyCallback)
           
private  com.google.gwt.user.client.ui.Widget getButtonPanel()
           
 ClusetView getMainView()
           
private  void init(Callback<Boolean> onReadyCallback)
           
private  void init(DataModelDefinition modelDefinition)
           
private  void initialize()
           
protected  void renderView(View view)
          Must be implemented by the subclass to render the view.
 void requestModel(Class modelType, ModelRequestCallback callback)
          Called by child views and controllers to request a model reference.
private  void saveModel(DataModel dataModel, SaveActionEvent saveActionEvent)
           
 void setParentController(Controller controller)
          Sets the controller's parent controller.
 void showDefaultView(Callback<Boolean> onReadyCallback)
          Shows the default view.
<V extends Enum<?>>
void
showView(V viewType)
          Simple Version of showView, no callback
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.BasicLayout
hideView, 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, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showFirstView, showStartPopup, updateModelFromCurrentView, updateModelFromView
 
Methods inherited from class org.kuali.student.common.ui.client.mvc.Controller
addApplicationEventHandler, collectHistory, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getHistoryToken, getParentController, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, 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.mvc.history.HistorySupport
collectHistory, onHistoryEvent
 

Field Detail

cluSetModel

private final DataModel cluSetModel

cluSetModelRequestQueue

private WorkQueue cluSetModelRequestQueue

mainView

private ClusetView mainView

createClusetView

private ClusetView createClusetView

editClusetView

private ClusetView editClusetView

viewClusetView

private ClusetView viewClusetView

initialized

private boolean initialized

cluSetManagementRpcServiceAsync

CluSetManagementRpcServiceAsync cluSetManagementRpcServiceAsync

CLUSET_MGT_MODEL

public static final String CLUSET_MGT_MODEL
See Also:
Constant Field Values

initializingTask

private final BlockingTask initializingTask

retrievingTask

private final BlockingTask retrievingTask

saving

private final BlockingTask saving
Constructor Detail

CluSetsManagementController

public CluSetsManagementController()
Method Detail

getMainView

public ClusetView getMainView()

showView

public <V extends Enum<?>> void showView(V viewType)
Description copied from class: Controller
Simple Version of showView, no callback

Specified by:
showView in interface ViewLayoutController
Overrides:
showView in class Controller
Type Parameters:
V - view enum type
Parameters:
viewType - enum value representing the view to show

afterModelLoaded

private void afterModelLoaded()

getButtonPanel

private com.google.gwt.user.client.ui.Widget getButtonPanel()

initialize

private void initialize()

init

private void init(Callback<Boolean> onReadyCallback)

init

private void init(DataModelDefinition modelDefinition)

renderView

protected void renderView(View view)
Description copied from class: Controller
Must be implemented by the subclass to render the view.

Overrides:
renderView in class BasicLayout

requestModel

public void requestModel(Class modelType,
                         ModelRequestCallback callback)
Description copied from class: Controller
Called by child views and controllers to request a model reference. By default it delegates calls to the parent controller if one is found. Override this method to declare a model local to the controller. Always make sure to delegate the call to the superclass if the requested type is not one which is defined locally. For example:

Overrides:
requestModel in class Controller

doSaveAction

public void doSaveAction(SaveActionEvent saveActionEvent)

saveModel

private void saveModel(DataModel dataModel,
                       SaveActionEvent saveActionEvent)

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 class: LayoutController
Default implementation does nothing on before show. Override to do other things before THIS view is shown.

Specified by:
beforeShow in interface View
Overrides:
beforeShow in class LayoutController
See Also:
View.beforeShow(org.kuali.student.common.ui.client.mvc.Callback)

doShowDefaultView

private void doShowDefaultView(Callback<Boolean> onReadyCallback)

setParentController

public void setParentController(Controller controller)
Description copied from class: Controller
Sets the controller's parent controller. In most cases, this can be omitted as the controller will be automatically detected via the DOM in cases where it is not specified. The only time that the controller needs to be manually set is in cases where the logical controller hierarchy differs from the physical DOM hierarchy. For example, if a nested controller is rendered in a PopupPanel, then the parent controller must be set manually using this method

Overrides:
setParentController in class Controller
Parameters:
controller - the parent controller


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.