|
||||||||||
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.lum.lu.ui.main.client.controllers.HomeController
public class HomeController
Nested Class Summary | |
---|---|
static class |
HomeController.HomeViews
|
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 AcknowledgeView |
ackView
|
private CurriculumHomeController |
curriculumHomeView
|
private HomeView |
defaultView
|
private SpanPanel |
panel
|
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController |
---|
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 | |
---|---|
HomeController(Controller controller,
String name,
Enum<?> viewType)
|
Method Summary | ||
---|---|---|
protected void |
hideView(View view)
Must be implemented by the subclass to hide the view. |
|
protected void |
renderView(View view)
Must be implemented by the subclass to render the view. |
|
private void |
setupViews()
|
|
|
showView(V viewType,
Callback<Boolean> onReadyCallback)
Directs the controller to display the specified view. |
|
void |
updateModel()
|
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController |
---|
addStartViewPopup, addView, asWidget, beforeHide, beforeShow, beforeViewChange, checkForErrors, clear, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, getViewsEnum, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showDefaultView, 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 |
---|
private final CurriculumHomeController curriculumHomeView
private final HomeView defaultView
private final AcknowledgeView ackView
private SpanPanel panel
Constructor Detail |
---|
public HomeController(Controller controller, String name, Enum<?> viewType)
Method Detail |
---|
private void setupViews()
public void updateModel()
updateModel
in interface View
updateModel
in class LayoutController
protected void hideView(View view)
Controller
hideView
in class Controller
protected void renderView(View view)
Controller
renderView
in class Controller
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 |